COUNT
Count how many cells in a range contain numbers with Excel's COUNT function.
Spreadsheet editor
Spreadsheet editor
Syntax
=COUNT(value1, [value2], ...)
Returns: Number Arguments
| Argument | Required | Description |
|---|---|---|
| value1 | Yes | The first value or range of cells where you want to count numbers. |
| value2 | No | Additional values or ranges to include. You can pass up to 255 arguments in total. |
About
Dates count too, since Excel stores them as numbers behind the scenes. The catch is how COUNT treats different inputs: numbers, dates, and number-like text typed straight into the formula are counted, but text, logical values (TRUE/FALSE), and errors sitting inside a referenced range are ignored. That is what makes COUNT handy for separating filled-in numbers from notes or blanks.
If you want to count every non-empty cell instead, including text, use COUNTA. To count cells that match a rule, use COUNTIF, and to add up the numbers rather than count them, use SUM.
Exercises using COUNT
Examples
COUNT skips text and blanks
Spreadsheet editor
COUNT vs COUNTA
Spreadsheet editor
Average only the days with data
Spreadsheet editor
Watch out for
Numbers stored as text are skipped
If a cell holds "150" formatted as text (often after an import), COUNT does not see it as a number, so your total comes up short.
→ Convert the entries to real numbers first, for example with VALUE or by multiplying the column by 1, then run COUNT again.
Expecting COUNT to include text or blanks
COUNT ignores text, empty cells, and error values inside a range, so it will not count names, labels, or notes.
→ Use COUNTA to count every non-empty cell, or COUNTBLANK to count the empty ones.
TRUE/FALSE in a range are not counted
Logical values stored in cells are skipped by COUNT, even though TRUE and FALSE typed directly into the formula would be counted.
→ If you need to tally logical results from a range, convert them to numbers or use SUMPRODUCT on the test instead.