Example 1
Count the numbers in a column
B10 =COUNT(B2:B8)
Result: 4
Four cells hold numbers: 120, 80, 45.5 and 200. The two text entries and the blank are not counted.
B10 =COUNT(B2:B8) returns 4
Counts how many cells in a range contain numbers, including dates. Text, blanks and errors are not counted.
Syntax
=COUNT(, [value2], ...)
All versions of Excel, including Excel for Microsoft 365 and Excel for the web.
Try it
Edit the formula in B10 or change the inputs. The sheet recalculates as you type.
B10 =COUNT(B2:B8) returns 4
COUNT tells you how many numbers there are. It is the function to reach for when you need to know how many readings, prices or dates a column holds, or how many rows an average is really based on.
In a range or cell reference, COUNT counts a cell only when it holds a number. That includes:
COUNT does not count:
"1042"."").#N/A.Numbers typed straight into the formula are treated more generously: =COUNT(B2:B9,10,"5") counts the 10 and the text "5", because Excel can read it as a number.
These three answer different questions:
Subtracting COUNT from COUNTA, as in =COUNTA(B2:B9)-COUNT(B2:B9), finds how many cells hold something that is not a number. That is a fast check for text-numbers, stray notes and error values.
COUNT has no condition of its own. To count numbers that meet a test, such as orders above 100, use COUNTIF or COUNTIFS.
AVERAGE divides by the same count that COUNT returns. If an average looks wrong, check whether COUNT matches the number of rows you expect. If it is lower, some values are probably stored as text. Convert them with VALUE, Text to Columns, or by multiplying by 1, and the count should rise.
COUNT can also count columns or rows of results from other calculations, for example how many cells in a spilled array are numbers: =COUNT(A2#).
B2:B9.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B10 =COUNT(B2:B8)
Result: 4
Four cells hold numbers: 120, 80, 45.5 and 200. The two text entries and the blank are not counted.
B10 =COUNT(B2:B8) returns 4
Example 2
B7 =COUNT(B2:B5)
Result: 3
Three shipments have a real date. The "TBC" text is not counted.
B7 =COUNT(B2:B5) returns 3
Example 3
B10 =COUNTA(B2:B8)-COUNT(B2:B8)
Result: 2
COUNTA finds 6 non-empty cells and COUNT finds 4 numbers, so 2 cells hold text. The blank in row 5 is in neither count.
B10 =COUNTA(B2:B8)-COUNT(B2:B8) returns 2
Example 4
B7 =COUNT(B2:B5,C2:C5)
Result: 6
North has three readings and South has three. COUNT adds the numbers found in both ranges.
B7 =COUNT(B2:B5,C2:C5) returns 6
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B11, count the weeks that have a number in the Calls logged column. A zero is a real result and should be counted.
Answer in B11.
#N/A is skipped without warning, so check errors separately with ISERROR.COUNT counts cells that hold numbers. COUNTA counts every cell that is not empty, including text, errors and empty text from formulas.
Yes. Excel stores dates as numbers, so a real date is counted. A date typed as text, such as `'2025-03-01`, is not.
The values are probably text. Numbers imported from other systems often arrive as text. Convert them with VALUE or Text to Columns and the count will update.
Use COUNTIF for one condition, such as `=COUNTIF(B2:B9,">100")`, or COUNTIFS for several.
It can take many ranges in one formula, such as `=COUNT(B2:B9,D2:D9)`. A range that spans sheets (a 3-D reference) also works in Excel, but this site's practice sheet has one sheet only.
COUNT is taught in Excel foundations, lesson 7: COUNT and COUNTA. Each lesson is a short, graded exercise like the one above.