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

Excel Basic Part 2

calculation count logical avrage etc.

Uploaded by

Manish Panday
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 views14 pages

Excel Basic Part 2

calculation count logical avrage etc.

Uploaded by

Manish Panday
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/ 14

Excel Training by Manish

4. Click OK.

The 'Function Arguments' dialog box appears.

5. Click in the Range box and select the range A1:C2.

6. Click in the Criteria box and type >5.

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

Count and Sum Functions in Excel


Count | Countif | Countifs | Sum | Sumif | Sumifs
The most used functions in Excel are the functions that count and sum. You can count and sum based on one criteria or
multiple criteria.
Count
To count the number of cells that contain numbers, use the COUNT function.

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

Logical Functions in Excel


If | And | Or | Not
Learn how to use Excel's logical functions, such as IF, AND, OR and NOT.
If
The IF function checks whether a condition is met, and returns one value if true and another value if false.

1. For example, take a look at the IF function in cell C2 below.

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.

1. For example, take a look at the AND function in cell D2 below.

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.

1. For example, take a look at the OR function in cell D2 below.

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.

1. For example, take a look at the NOT function in cell D2 below.

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.

1. For example, round a number to three decimal places.

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.

3. Round a number to one decimal place.

4. Round a number to the nearest integer.

5. Round a number to the nearest 10.

Page no.  31
Excel Training by Manish

6. Round a number to the nearest 100.

7. Round a number to the nearest 1000.

8. Round a negative number to one decimal place.

9. Round a negative number to the nearest integer.

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.

1. For example, round a number up to three decimal places.

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

3. Round a number up to one decimal place.

4. Round a number up to the nearest integer.

5. Round a number up to the nearest 10.

6. Round a number up to the nearest 100.

7. Round a number up to the nearest 1000.

8. Round a negative number up to one decimal place.

Note: remember, the ROUNDUP function rounds a number up (away from zero).

9. Round a negative number up to the nearest integer.

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.

1. For example, round a number down to three decimal places.

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.

3. Round a number down to one decimal place.

4. Round a number down to the nearest integer.

5. Round a number down to the nearest 10.

Page no.  34

You might also like