Counting function
Excel COUNT function
COUNT tells you how many cells in a range contain numbers. Dates count too, because Excel stores them as numbers. Text, blanks and errors are ignored, so it is great for counting how many results have actually come in.
=COUNT(value1, [value2], ...)Arguments
value1- The first cell, range or value to count.
value2- Optional. More cells or ranges, up to 255.
COUNT examples
Every result below was calculated live from this sample sheet.
| A | B | C | |
|---|---|---|---|
| 1 | Invoice | Amount | Paid |
| 2 | INV-301 | 1250 | 1250 |
| 3 | INV-302 | 860 | pending |
| 4 | INV-303 | 2400 | |
| 5 | INV-304 | disputed | 600 |
| 6 | INV-305 | 515 | 515 |
Result: 4
Four invoices have a numeric amount. "disputed" is text, so it is skipped.
Result: 3
Invoices with a payment recorded. "pending" and the blank cell are ignored.
Result: 0
The invoice IDs are text, so COUNT finds nothing to count.
Result: 7
Count across two columns at once: four amounts plus three payments.
How to use COUNT
- Click an empty cell.
- Type =COUNT(
- Select the range to check.
- Close the bracket and press Enter.
Common COUNT mistakes
Counting text with COUNT
COUNT ignores text, so a column of names returns 0. Use COUNTA to count any non-empty cell.
Numbers stored as text
Imported numbers are often text, and COUNT skips them. Convert them to real numbers first.
Using COUNT to count matches
COUNT has no condition. Use COUNTIF to count cells equal to a value, like "Paid".
COUNT FAQ
What is the difference between COUNT and COUNTA in Excel?
COUNT only counts cells with numbers or dates. COUNTA counts every cell that is not empty, including text.
Why does COUNT return 0 in Excel?
The range contains text, not numbers. That includes numbers stored as text. Use COUNTA or convert the values.
Does COUNT include dates?
Yes. Excel stores dates as serial numbers, so COUNT treats them as numbers.
Practice COUNT in these lessons
Guides that use COUNT
Related functions
COUNTACounts non-empty cellsCOUNTIFCounts cells that matchCOUNTBLANKCounts empty cellsISNUMBERIs it a number?
Updated 2026-10-31