Count and countif
Count and countif
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
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
Learn how to count the number of cells that contain logical values (TRUE
and FALSE) in Excel.
img13
3. For example, to count the number of cells that contain TRUE or FALSE.
img15
img17
5. Sumproduct
To calculate the sum of the products of corresponding numbers in one or
more ranges, use Excel's powerful SUMPRODUCT function.
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