What COUNT does
COUNT tells you how many cells in a range hold numbers, dates included. =COUNT(B2:B20) skips empty cells, text, TRUE or FALSE and errors, so a column with five sales figures and two notes saying “n/a” has a COUNT of 5.
Dates and times are numbers to Excel, so COUNT counts them too. That makes it a quick way to see how many rows have a date filled in, such as deliveries made or payments received.
COUNT is also a good test of your data. When a column should be all numbers, comparing COUNT with the number of rows shows right away whether some entries are really text.
Syntax
value1Required- The first cell or range to count in, such as
B2:B6. value2Optional, can repeat- More cells or ranges, separated by commas, up to 255 in all. COUNT adds up how many numbers it finds across all of them.
Example: how many reps have reported
Sales figures for the month are in B2 to B6. One rep hasn’t reported and another wrote “n/a”.
Example: count the orders already delivered
A delivery date goes in column B once an order arrives. Some rows say “Pending” or are still empty.
COUNT vs COUNTA and other ways to count
| To count | Use |
|---|---|
| cells with numbers or dates | COUNT |
| cells that aren’t empty, text included | COUNTA |
| empty cells | COUNTBLANK |
| cells that meet one condition | COUNTIF |
| rows that meet several conditions | COUNTIFS |
On the reps’ sales in B2:B6 above, with three figures, one “n/a” and one empty cell, COUNT gives 3, COUNTA gives 4 and COUNTBLANK gives 1. The free lesson Count what matches with COUNTIF and COUNTIFS practices the last two.
Common mistakes
- Names, codes and statuses are text, so
=COUNT(A2:A50)over a column of names returns 0. Use COUNTA to count any cell that isn’t empty, or COUNTIF to count one particular value. - Figures imported as text look like numbers but aren’t counted. A COUNT lower than you expect is often the first sign.
- “2nd March” isn’t a date Excel recognizes, so it’s text and isn’t counted. Enter dates in a form Excel reads, such as Mar 2, 2026.
- COUNT tells you how many numbers there are. For their total, use SUM.
Frequently asked questions
What is the difference between COUNT and COUNTA?
COUNT counts only cells with numbers (dates included). COUNTA counts every cell that isn’t empty: numbers, text, TRUE or FALSE and error values.
Why does COUNT return 0?
The cells hold text, such as names or numbers stored as text, and COUNT counts only numbers. Use COUNTA to count every cell that isn’t empty, or convert the text to numbers if they’re meant to be figures.
Does COUNT count zeros?
Yes. 0 is a number, so a cell holding 0 is counted. Only empty cells and non-numbers are skipped.
Can COUNT count text?
No, COUNT counts only numbers and dates. =COUNTIF(B2:B20,"*") counts the cells that hold any text, and =COUNTIF(B2:B20,"Paid") counts the ones that say Paid.