0% found this document useful (0 votes)
18 views8 pages

SLG CS1 7.2.4 Formulas and Functions (AVERAGEIF, VLOOKUP)

Uploaded by

qwengxvii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views8 pages

SLG CS1 7.2.4 Formulas and Functions (AVERAGEIF, VLOOKUP)

Uploaded by

qwengxvii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Subject Code : CS 1 Computer Science 1

Module Code : 7.0 Integration of Spreadsheet, Word Processing, and Presentation Tools
Lesson Code : 7.2.4 Formulas and Functions: AVERAGEIF and VLOOKUP
Time Frame : 30 minutes

TARGET (TA: 1 minute, ATA: _____)

By the end of this learning guide module, the students should be able to:

1. Correctly identify situations when to use AVERAGEIF and VLOOKUP.


2. Correctly use AVERAGEIF and VLOOKUP functions to solve real-life problems.

HOOK (TA: 2 minutes, ATA: _____)

We have discussed that a formula is an expression that calculates the value of a cell. On the other
hand, we have also discussed that functions are predefined formulas readily available in Excel.

We can use the formulas AVERAGEIF and VLOOKUP in making our job faster, easier, and more
accurate.

For example, you can quickly get your average grade in Science from Grade 1 up to Grade 6 using the
AVERAGEIF function.

You can look up for some values in a range like getting your final grade in Math in your report card
using VLOOKUP.

These are just some of your life's simple problems wherein using MS Excel functions would be most
beneficial.

IGNITE (TA: 11 minutes, ATA: _____)

More Excel commonly used functions include AVERAGEIF and VLOOKUP.

LG-NULLA-CS1-7.2.4 CS 1 Page 1 of 8
AVERAGEIF Function

Purpose: Calculates the average of the numbers in a range that meet the supplied criteria.
Criteria can be supplied as numbers, strings, or references.

Return value: A number representing the average.

Syntax: = AVERAGEIF (range, criteria, [average_range])

Arguments: range
One or more cells, including numbers or names, arrays, or references.

criteria A number, expression, cell reference, or text.

average_range The cells to average. When omitted, range is used.

NOTE

The average_range argument is optional.

If average_range is not provided, AVERAGEIF will calculate the average of numeric values in the
range argument.

When average_range is provided, AVERAGEIF will calculate the average of numbers in


average_range.

AVERAGEIF will automatically ignore empty cells, even when the criteria match. In other words,
AVERAGEIF will not include empty cells that meet criteria as zero in the average. AVERAGEIF
returns #DIV/0! if no cells in the range meet criteria.

How to use the AVERAGEIF function in Excel


https://www.youtube.com/watch?v=39qBSi-H_Vc

LG-NULLA-CS1-7.2.4 CS 1 Page 2 of 8
Figure 1. AVERAGEIF function
Retrieved from https://exceljet.net/excel-functions/excel-averageif-function

VLOOKUP Function

Purpose: Looks for something in a range of cells, then it returns that something that is
in the same row as the value you are looking for in a datasheet that is listed
vertically.

Return Value: The value being looked for.

Syntax: = VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])

Arguments: lookup_value What you are looking for.


table_array Where you are looking.
col_index_num What we want to know.
[range_lookup] Whether we want to be precise or approximate in our
search.

LG-NULLA-CS1-7.2.4 CS 1 Page 3 of 8
VLOOKUP Excel 2010 (Simple)
https://www.youtube.com/watch?v=Ajo3_XSWE0k

Figure 2. VLOOKUP Function


Retrieved from https://spreadsheeto.com/vlookup/

NAVIGATE (TA: 10 minutes, ATA: _____)

Hands-on Activity:

Using your laptop, open a blank new worksheet to be able to do the following activity:

The following data shows the grades of Emmanuel from Grades 1 to Grade 6. Encode these data in an
Excel worksheet. Then, write the correct function to obtain the needed requirements listed below.

1. Give the correct formula to get the average grade of Emmanuel in Science from Grade 1 to
Grade 6.
2. Give the correct formula to get the average grade of Emmanuel in Math from Grade 5 and
Grade 6.
3. Give the correct formula to get the average grade of Emmanuel in English from Grade 1 to
Grade 4.
4. Give the correct formula to get the grade of Emmanuel in Math when he was in Grade 6.
5. Give the correct formula to get the grade of Emmanuel in English when he was in Grade 2.

LG-NULLA-CS1-7.2.4 CS 1 Page 4 of 8
Figure 3. Use Emmanuel’s grade from Grade 1 to 6.

KNOT (TA: 2 minutes, ATA: _____)

In summary, the following are the purposes and syntax of AVERAGEIF and VLOOKUP:

The AVERAGEIF function calculates the average of the numbers in a range that meet the supplied
criteria. Criteria can be supplied as numbers, strings, or references.

Syntax: =AVERAGEIF (range, criteria, [average_range])

The VLOOKUP function looks for something in a range of cells; then it returns that something that’s
in the same row as the value you’re looking for in a datasheet that is listed vertically.

Syntax: =VLOOKUP (Lookup_value, Lookup_value, Col_index_num, [range_lookup])

LG-NULLA-CS1-7.2.4 CS 1 Page 5 of 8
Exercise 1
Sales Data.

Last summer vacation, Leila decided to sell some goodies that her mother prepared. To keep track of
her sales and profit, Leila used MS Excel to store her sales data daily. Her three days sales data look
like this:

Figure 4. Sales Data

From this data as reference, answer the following questions:

A. Choose all correct problem scenarios that can be solved by the AVERAGEIF function:
1. Leila would like to know the average sales of puto cheese.
2. Leila would like to know the average sales of pichi-pichi for sales greater than 500.
3. Leila would like to know the average sales of kutsinta during Sundays.
4. Leila would like to know the average sales of puto cheese for sales ranging from 1-300.

LG-NULLA-CS1-7.2.4 CS 1 Page 6 of 8
Exercise 2
Human Resource.

Kate was hired as the new Human Resource Secretary. She encoded the following data of newly hired
employees, as shown in the table below.

Figure 5. Sample Table (Support.Microsoft.com, 2020)

Using this data, answer the following questions:

B. Choose all correct problem scenarios that can be solved by the VLOOKUP function.
1. The birthdate of employee ID 106.
2. The last ID number recorded.
3. The title of Mr. Fontana.
4. The no. of sales rep among the employees.
5. The first name of Mr. Patten.
6. The oldest employee.

REFERENCES

1. How to use the Excel AVERAGEIF function | Exceljet. (n.d.). https://exceljet.net/excel-


functions/excel-averageif-function
2. Langmann, K. (2020). The last guide to vlookup in excel you’ll ever need. Spreadsheeto.
https://spreadsheeto.com/vlookup/
3. Pous, M. (2011). Vlookup excel 2010 (simple). YouTube. https://www.youtube.com/watch?
v=Ajo3_XSWE0k
4. TechOnTheNet. (2019). How to use the averageif function in excel. YouTube. https://
www.youtube.com/watch?v=39qBSi-H_Vc
5. VLOOKUP function. (n.d.). https://support.microsoft.com/en-us/office/vlookup
-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1#:~:
text=In%20its%20simplest%20form%2C%20the,%2C%20or% 200%2FFALSE

LG-NULLA-CS1-7.2.4 CS 1 Page 7 of 8
Prepared by : MARIA MILAGROSA A. NULLA Reviewed by : GRACESON CUYASEN
Position : SST III Position : SST III
Campus : PSHS- SRC Campus : PSHS- CARC

© 2020 Philippine Science High School System. All rights reserved. This document may contain proprietary information and may only be
released to third parties with approval of management. Document is uncontrolled unless otherwise marked; uncontrolled documents
are not subject to update notification.

LG-NULLA-CS1-7.2.4 CS 1 Page 8 of 8

You might also like