Google Sheets function · Statistical
COUNT in Google Sheets: syntax and examples
COUNT counts the numeric values in its arguments, including dates. Text, blank cells and errors are not counted, so it answers how many cells hold a number, not how many cells are filled.
Syntax
COUNT(value1, [value2, ...])
Arguments
| Argument | Type | Required | What it does |
|---|---|---|---|
value1 | any | yes | A value or a range to count numbers in. |
value2, ... | any | no | More values or ranges to count numbers in. |
Examples
The examples use this table, starting in A1:
| Qty |
| 12 |
| n/a |
| 7.5 |
| 20 |
=COUNT(A2:A6)Result: 3
Three cells hold numbers (12, 7.5 and 20). The text n/a and the empty cell are skipped.
Run in a Google Sheet (English US locale) on .
=COUNT(A1:A6)Result: 3
The header row is text, so including it does not change the count.
Run in a Google Sheet (English US locale) on .
=COUNT(A2:A6, 100, "x")Result: 4
Range and loose values together: the number 100 adds one, the text x adds nothing.
Run in a Google Sheet (English US locale) on .
=COUNT(DATE(2026,11,29), A2)Result: 2
Dates are numbers in Sheets, so a date counts like any other number.
Run in a Google Sheet (English US locale) on .
=COUNT(A2:A6) / ROWS(A2:A6)Result: 0.6
Share of rows that hold a number: 3 of 5.
Run in a Google Sheet (English US locale) on .
Common errors
- Numbers stored as text are not counted. COUNT over a column of values passed through TO_TEXT returns 0. Convert them with VALUE first.
- Text and blank cells are skipped without any warning, so a column with mixed content gives a smaller count than the number of rows.
- To count filled cells of any type use COUNTA. To count by condition use COUNTIF.
- At least one argument is required: =COUNT() returns #N/A.
Compared with Excel
Same syntax as Excel COUNT.