What is the COUNT function?
=COUNT(value1, [value2], ...)COUNT counts the cells that contain numbers. Text and blank cells are not counted.
Use it to count how many scores were entered or how many tests were taken. To include text, use COUNTA; to count blanks, use COUNTBLANK.
Arguments
- value1
- The cells or range to count.
- value2, ...
- Optional. Up to 255 arguments.
COUNT examples
Example 1. Cells with scores
=COUNT(B2:D6)Counts the 11 of 15 cells with numbers. The 2 "Absent" and 2 blank cells are not counted.
Example 2. People who took Test 2
=COUNT(C2:C6)Test 2 has 3 numbers and 2 "Absent", so the result is 3.
Example 3. The name column is 0
=COUNT(A2:A6)Names are text, so there are no numbers. Use COUNTA to count names.
Common mistakes
Expecting text to be counted
COUNT counts numbers only. Use COUNTA to include text.
Numbers stored as text
Numbers formatted as text are not counted. If the result looks low, check the cell format.
Needing a condition
To count cells that meet a condition, such as scores of 80 or more, use COUNTIF.
FAQ
- COUNT vs COUNTA?
- COUNT counts only numbers; COUNTA counts every non-empty cell. Comparing them on the same range tells you how many cells hold text.
- Are dates counted?
- Yes. Excel stores dates as numbers.
- Counting blanks?
- Use COUNTBLANK.