Vous êtes sur la page 1sur 10

IF, SUMIF, COUNTIF, AVERAGEIF

Review
What is Function?

What are the Common Functions in MS Excel?

Explain each use of MS Excel Function?


What is Function?
A function is a preset formula in Excel. Like formulas, functions begin with the equal sign
( = ) followed by the function's name and its arguments. The function name tells Excel what calculation
to perform. The arguments are contained inside round brackets.

Five Basic Functions in Excel

Excel has a variety of functions available. Here are some of the most common functions you'll use:

SUM: This function adds all of the values of the cells in the argument.
AVERAGE: This function determines the average of the values included in the argument. It calculates
the sum of the cells and then divides that value by the number of cells in the argument.
COUNT: This function counts the number of cells with numerical data in the argument. This function is
useful for quickly counting items in a cell range.
MAX: This function determines the highest cell value included in the argument.
MIN: This function determines the lowest cell value included in the argument.
What is the meaning of the word IF?
What if we add IF to SUM, AVERAGE, COUNT ?
What do you think will happen?
Link:
https://www.youtube.com/watch?v=LQby0g5KWMo
Guide Questions

Based on the video, what happen if functions are


being paired with IF?
When you will use IF function?
Why will you combine IF with other function?
Think About This!
The IF function is one of the most popular functions in Excel, and it allows you to
make logical comparisons between a value and what you expect. In its simplest
form, the IF function says:
Syntax: IF(Something is True, then do something, otherwise do something else)
You use the SUMIF function to sum the values in a range that meet criteria that
you specify. For example, suppose that in a column that contains numbers, you
want to sum only the values that are larger than 5. You can use the following
formula: =SUMIF(B2:B25,">5")
Syntax: SUMIF( range, criteria, [sum_range])
Use COUNTIF, one of the statistical functions, to count the number of cells that
meet a criterion; for example, to count the number of times a particular city
appears in a customer list.
Syntax: COUNTIF(range, criteria)
AVERAGEIF - Returns the average (arithmetic mean) of all the cells in a range that
meet a given criteria.
Syntax: AVERAGEIF(range, criteria, [average_range])
Lets Practice!
Exercise 19-Using Excel Logical Functions
1. Write an IF function in Cell C82 that
compares the sales in Quarters 1 and 2
Sales ($ millions)
and returns the text "Q1 better than 2"
Quarter 1 500
or
Quarter 2 350 "Q2 better than Q1". Your formula
Quarter 3 495 should
Quarter 4 620 look like this:
=IF(C77>C78, "Q1 better than Q2",
Which did "Q2 better than Q1.")
better? 2. Write an IF statement in Cell C84 that
includes a nested MAX function and
that
Met $600M
returns the text "Exceeded $600M sales
Q goal?
in one quarter" if any quarter meets that
criteria or "Quota not met" if not. Your
Q1 vs. Q2: formula should look like this:
=IF(MAX(C77:C80)>600, "Exceeded
$600M sales in 1 quarter","Quota not
met")
3. Write an IF statement in Cell 86 that
compares sales in Q1 and Q2. If Q1
sales are greater, return the difference.
If Q1 sales are less, return the increase.
Your formula should look like this:
=IF(C77>C78, C77-C78, C78-C77)
APPLICATION OF SUMIF, AVERAGEIF, COUNTIF
Name Gender Salary Department

Ana Lee F 39,524.00 Accounting

Samuel Penn M 45,000.00 Sales

Lara Dor F 51,260.00 Sales

Fran Stewart F 42,125.00 Marketing

Leslie Slone F 29,000.00 Administrative

Ken West M 47,000.00 Finance

Joe Dean M 54,000.00 Management

Salma Jean F 37,800.00 Administrative

COUNTIF

SUMIF

AVERAGEIF

Vous aimerez peut-être aussi