Excel Basic Part 2
Excel Basic Part 2
4. Click OK.
7. Click OK.
Result. The COUNTIF function counts the number of cells that are greater than 5.
Page no. 21
Excel Training by Manish
Note: instead of using the Insert Function feature, simply type =COUNTIF(A1:C2,">5"). When you arrive at:
=COUNTIF( instead of typing A1:C2, simply select the range A1:C2.
Page no. 22
Excel Training by Manish
Note: to count blank and nonblank cells in Excel, use COUNTBLANK and COUNTA.
Countif
To count cells based on one criteria (for example, greater than 9), use the following COUNTIF function.
Note: visit our page about the COUNTIF function for many more examples.
Countifs
To count rows based on multiple criteria (for example, green and greater than 9), use the following COUNTIFS
function.
Page no. 23
Excel Training by Manish
Sum
To sum a range of cells, use the SUM function.
Note: visit our page about the SUM function for many more examples.
Sumif
To sum cells based on one criteria (for example, greater than 9), use the following SUMIF function (two arguments).
To sum cells based on one criteria (for example, green), use the following SUMIF function (three arguments, last
argument is the range to sum).
Page no. 24
Excel Training by Manish
Note: visit our page about the SUMIF function for many more examples.
Sumifs
To sum cells based on multiple criteria (for example, circle and red), use the following SUMIFS function (first
argument is the range to sum).
General note: in a similar way, you can use the AVERAGEIF function to average cells based on one criteria and the
AVERAGEIFS function to average cells based on multiple criteria.
Page no. 25
Excel Training by Manish
Explanation: if the score is greater than or equal to 60, the IF function returns Pass, else it returns Fail. Visit our page
about the IF function for many more examples.
And
The AND Function returns TRUE if all conditions are true and returns FALSE if any of the conditions are false.
Explanation: the AND function returns TRUE if the first score is greater than or equal to 60 and the second score is
greater than or equal to 90, else it returns FALSE.
Or
The OR function returns TRUE if any of the conditions are TRUE and returns FALSE if all conditions are false.
Page no. 26
Excel Training by Manish
Explanation: the OR function returns TRUE if at least one score is greater than or equal to 60, else it returns FALSE.
Visit our page about the OR function for many more examples.
Not
The NOT function changes TRUE to FALSE, and FALSE to TRUE.
Explanation: in this example, the NOT function reverses the result of the OR function (see previous example).
Page no. 27
Excel Training by Manish
AVERAGEIF in Excel
The AVERAGEIF function in Excel calculates the average of cells that meet one criteria. AVERAGEIFS calculates the
average of cells that meet multiple criteria.
1. For example, the AVERAGEIF function below (two arguments) calculates the average of all values in the range
A1:A7 that are greater than 0.
2. The AVERAGEIF function below (three arguments, last argument is the range to average) calculates the average of
all values in the range B1:B7 if the corresponding cells in the range A1:A7 contain exactly Apple.
3. The AVERAGEIF function below calculates the average of all values in the range B1:B7 if the corresponding cells
in the range A1:A7 do not contain exactly Banana.
Page no. 28
Excel Training by Manish
4. The AVERAGEIF function below calculates the average of all values in the range B1:B7 if the corresponding cells
in the range A1:A7 contain a series of zero or more characters + berry. An asterisk (*) matches a series of zero or more
characters.
5. The AVERAGEIF function below calculates the average of all values in the range B1:B7 if the corresponding cells
in the range A1:A7 contain exactly 4 characters. A question mark (?) matches exactly one character.
The AVERAGEIFS function (with the letter S at the end) in Excel calculates the average of cells that meet multiple
criteria.
Page no. 29
Excel Training by Manish
6. The AVERAGEIFS function below calculates the average of all values in the range A1:A7 that are greater than or
equal to 500 and less than or equal to 1000.
Note: first argument is the range to average, followed by two or more range/criteria pairs.
7. The AVERAGEIFS function below calculates the average of all values in the range C1:C7 if the corresponding cells
in the range A1:A7 contain exactly Apple and the corresponding cells in the range B1:B7 contain exactly Red.
Note: again, the first argument is the range to average, followed by two or more range/criteria pairs.
Page no. 30
Excel Training by Manish
Round in Excel
Round | RoundUp | RoundDown
This chapter illustrates three functions to round numbers in Excel. ROUND, ROUNDUP and ROUNDDOWN.
Before your start: if you round a number, you lose precision. If you don't want this, show fewer decimal places without
changing the number itself.
Round
The ROUND function in Excel rounds a number to a specified number of digits. The ROUND function rounds up or
down. 1, 2, 3 and 4 get rounded down. 5, 6, 7, 8 and 9 get rounded up.
Note: 114.7261, 114.7262, 114.7263 and 114.7264 get rounded down to 114.726 and 114.7265, 114.7266, 114.7267,
114.7268 and 114.7269 get rounded up to 114.727.
2. Round a number to two decimal places.
Page no. 31
Excel Training by Manish
RoundUp
The ROUNDUP function in Excel always rounds a number up (away from zero). 1, 2, 3, 4, 5, 6, 7, 8 and 9 get rounded
up.
Note: 114.7261, 114.7262, 114.7263, 114.7264, 114.7265, 114.7266, 114.7267, 114.7268 and 114.7269 get rounded up
to 114.727.
2. Round a number up to two decimal places.
Page no. 32
Excel Training by Manish
Note: remember, the ROUNDUP function rounds a number up (away from zero).
Page no. 33
Excel Training by Manish
Note: again, the ROUNDUP function rounds a number up (away from zero).
RoundDown
The ROUNDDOWN function in Excel always rounds a number down (toward zero). 1, 2, 3, 4, 5, 6, 7, 8 and 9 get
rounded down.
Note: 114.7261, 114.7262, 114.7263, 114.7264, 114.7265, 114.7266, 114.7267, 114.7268 and 114.7269 get rounded
down to 114.726.
2. Round a number down to two decimal places.
Page no. 34