0% found this document useful (0 votes)
10 views

Count and countif

Uploaded by

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

Count and countif

Uploaded by

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

1.

Count and Sum Functions


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.

img1

Countif
To count cells based on one criteria (for example, higher than 9), use the
following COUNTIF function.

img2

Countifs
To count cells based on multiple criteria (for example, green and higher
than 9), use the following COUNTIFS function.
img3

Sum
To sum a range of cells, use the SUM function.

img4

Sumif
To sum cells based on one criteria (for example, higher than 9), use the
following SUMIF function (two arguments).

img5
To sum cells based on one criteria (for example, green), use the following
SUMIF function (three arguments, last argument is the range to sum).

img6

Sumifs
To sum cells based on multiple criteria (for example, blue and green), use
the following SUMIFS function (first argument is the range to sum).

img7

General note: in a similar way, you can use the AVERAGEIF and
AVERAGEIFS function to average cells based on one or multiple criteria.
2. Count Text Occurrences

This example teaches you how to count the number of occurrences of


text in a range.

1. For example, to count the number of cells that contain exactly star.

img8

2. For example, to count the number of cells that contain exactly star + 1
character. A question mark (?) matches exactly one character.

img9

3. For example, to count the number of cells that contain exactly star + a
series of zero or more characters. An asterisk (*) matches a series of zero
or more characters.
img10

4. For example, to count the number of cells that contain star in any way.
No matter what is before or after star, this function finds all the cells that
contain star in any way.

img11

5. For example, to count the number of cells that contain text.


img12

3. Count Logical Values

Learn how to count the number of cells that contain logical values (TRUE
and FALSE) in Excel.

1. For example, to count the number of cells that contain TRUE.

img13

2. For example, to count the number of cells that contain FALSE.


img14

3. For example, to count the number of cells that contain TRUE or FALSE.

img15

4. Count Blank/Nonblank Cells

This example shows you how to count the number


of blank and nonblank cells in Excel.

1. The COUNTBLANK function counts the number of blank cells.


img16

2. The COUNTA function counts the number of nonblank cells. COUNTA


stands for count all.

img17

5. Sumproduct
To calculate the sum of the products of corresponding numbers in one or
more ranges, use Excel's powerful SUMPRODUCT function.

1. For example, the SUMPRODUCT function below calculates the total


amount spent.
img18

Note: the SUMPRODUCT function performs this calculation: (2 * 1000) + (4


* 250) + (4 * 100) + (2 * 50) = 3500.

2. The ranges must have the same dimensions or Excel will display the
#VALUE! error.

img19

3. The SUMPRODUCT function treats any entries that are not numeric as if
they were zeros.
img20

You might also like