COUNT
COUNT(range)
Counts cells that contain numbers. Text, including the word East, is not counted. Blanks are not counted.
COUNTIF counts cells in one range that meet one condition. COUNTIFS counts rows that meet every condition, and each condition has its own range. COUNT counts numbers only and ignores your labels. Use COUNTIF for 'how many East rows' and COUNTIFS for 'how many East rows are also Pen'.
COUNT(range)
Counts cells that contain numbers. Text, including the word East, is not counted. Blanks are not counted.
COUNTIF(range, criteria)
Counts cells in one range that meet one criterion. Text and comparisons go in quotes: "East", ">10".
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Each pair is a range and a test. A row counts only when every test is true. Unlike SUMIFS, there is no separate sum range. The ranges must be the same size.
| Question | COUNT | COUNTIF | COUNTIFS |
|---|---|---|---|
| What it counts | Numeric cells | Cells matching one test | Rows matching every test |
| Conditions | None | One | One or more, as AND |
| A text label such as East | Ignored | Counted if it equals the criterion | Counted when every pair matches |
| OR | Not applicable | Add two COUNTIF results if the groups do not overlap | Add two COUNTIFS results if the groups do not overlap |
| Versions | All current Excel and Google Sheets | All current Excel and Google Sheets | Excel 2007 and later, and Google Sheets |
Three rows are East. Two of those are also Pen. The West Pen is a Pen but not East. COUNT on the region column does not count the labels, because they are text.
| Row | A | B | C |
|---|---|---|---|
| 1 | Region | Product | Amount |
| 2 | East | Pen | 10 |
| 3 | West | Pen | 40 |
| 4 | East | Book | 30 |
| 5 | East | Pen | 20 |
=COUNT(A2:A5) → 0=COUNTIF(A2:A5,"East") → 3=COUNTIFS(A2:A5,"East",B2:B5,"Pen") → 2=COUNTIF(C2:C5,">10") → 3COUNT of the region labels is 0 because none of them are numbers. COUNTIF finds three East cells. COUNTIFS keeps a row only when column A is East and column B is Pen, which is two rows. The amount threshold is a separate COUNTIF: 40, 30, and 20 are greater than 10, and 10 itself is not, so the count is 3.
Both tests refer to different columns, so this is COUNTIFS even though one test is a comparison.
| Row | A | B | C |
|---|---|---|---|
| 1 | Region | Product | Amount |
| 2 | East | Pen | 10 |
| 3 | West | Pen | 40 |
| 4 | East | Book | 30 |
| 5 | East | Pen | 20 |
=COUNTIFS(A2:A5,"East",C2:C5,">10") → 2East rows have amounts 10, 30, and 20. Greater than 10 removes the 10, leaving 30 and 20. The count is 2. The comparison stays in quotes as ">10".
A score column where blanks should not count, and text should not count, is COUNT. The free COUNT and COUNTA drill separates COUNT from COUNTA, which also counts text.
How many orders are East. How many amounts beat the quota. The free region drill and the premium quota drill are that shape.
East and Pen, or East and over 10. Adding another pair never means OR. Add a second COUNTIFS if you need an alternative.
COUNT(A2:A5) on a column of region names is 0. COUNTIF is the function that can see the word East.
COUNTIF(A2:A5, E2) reads the cell. COUNTIF(A2:A5, "E2") looks for the two characters E and 2. Quote the words and the operators, not the cell addresses.
COUNTIFS pairs cells by position. A2 with B2, A3 with B3. If one range is A2:A5 and the other is B3:B6, the pairs are the wrong rows.
A formula that says COUNTIF does not become COUNTIFS because the sheet has two criteria somewhere else. The function name has to be COUNTIFS before a second pair is allowed.
COUNT and COUNTIF are in current and older Excel and in Google Sheets. COUNTIFS is in Excel 2007 and later and in Google Sheets.
The comparison criterion ">10" is written the same way in Google Sheets. Locale differences are the argument separator and, in some locales, the decimal comma. The examples here use a decimal point and comma separators.
COUNTA, not shown in the sheet above, counts non-blank cells and is the one to use when the thing you are counting is text. It is in the free drill with COUNT.
Free drills are open with no account. Premium drills show the problem to everyone and grade the sheet for subscribers.
COUNTIF takes one range and one criterion. COUNTIFS takes pairs, and every pair must be true for the same row. Use COUNTIFS even for a single pair if you want the newer argument style. The result matches COUNTIF for that one test.
Not inside one call. Add two COUNTIFS results when a row cannot fall into both groups. If the groups can overlap, a helper column is safer than addition.
A blank cell is not greater than 10, so COUNTIF(C2:C5, ">10") skips blanks. COUNTIF(C2:C5, 0) does not count blanks either. COUNTBLANK is the function that counts empty cells.
The range started on row 1 and the header text happened to match, or the header was a number. Start the range on the first data row.