1
Excel Formulas
IF function
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. So an
IF statement can have two results. The first result is if your comparison is True,
the second if your comparison is False.
=IF ( logical_test , [value_if_true] , [value_if_false])
logical_test : This is the test or logical expression that you want to evaluate.
It can be a comparison between two values, a logical test, or any condition
that results in either "true" or "false.
value_if_true : This is the value that the function returns if the condition
specified in the first argument is true.
value_if_false : This is the value that the function returns if the condition
specified in the first argument is false.
Note: The value can be a function, text, a number, or text enclosed
in quotes.
Example :Put the word Large if the value is greater than
20, and Small if it is less than that:
2
Excel Formulas
COUNTIF
It is used to count the number of cells within a range that meet a specified
condition or criteria
=COUNTIF ( range , criteria )
Range: This is the range of cells you want to count within. It can be a single
column, row, or a larger range.
criteria: This is the condition or criteria you want to apply to the cells in the
specified range. Cells that meet this condition will be counted.
Example: counting the number of people working full time
3
Excel Formulas
SUMIF
used for adding up the values in a range that meet a specified condition or
criteria. It allows you to sum a range of numbers based on a given condition.
=SUMIF ( range , criteria , [sum_range] )
range: This is the range of cells that you want to apply the criteria to. The
SUMIF function will evaluate the condition within this range.
criteria: This is the condition or criteria that you want to use for selecting
cells within the range. For example, ">50" means you want to sum numbers
greater than 50.
[sum_range]: It represents the range of cells that you want to sum. If this
argument is omitted, Excel will sum the values in the range specified in the
first argument (range).
Example: Calculate the total salaries of full-time employees
4
Excel Formulas
AVERAGEIF
used to calculate the average (mean) of a range of numbers that meet a
specified condition or criteria. It allows you to find the average of a set of
values that meet a certain condition.
=AVERAGEIF ( range , criteria , [average_range] )
range: This is the range of cells that you want to apply the criteria to. The
AVERAGEIF function will evaluate the condition within this range.
criteria: This is the condition or criteria that you want to use for selecting
cells within the range.
[average_range]: It represents the range of cells that you want to calculate
the average of. Excel will calculate the average of the values in the range
specified in the first argument (range).
Example: Calculating the average salary of full-time employees.