Google Sheets COUNTA function
Counts how many cells in a range are not empty, whatever they contain.
Syntax
=COUNTA(value1, [value2, ...])
value1 | The first cell or range to count. |
|---|---|
value2, ... | Optional. More ranges. |
Try it
Edit the formula and the result updates instantly. Click a cell to add its reference.
Test scores
Result: 7
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Score | Submitted | Min score | Grade | |
| 2 | Lily | 88 | TRUE | 0 | F | |
| 3 | Omar | 72 | TRUE | 60 | D | |
| 4 | Priya | 95 | TRUE | 70 | C | |
| 5 | Sam | FALSE | 80 | B | ||
| 6 | Tom | 64 | TRUE | 90 | A | |
| 7 | Uma | 59 | TRUE | |||
| 8 | Vic | 81 | TRUE |
Examples
These use the sample sheet above.
→ 7
Seven students are listed.
→ 1
How many students are missing a score.
Tips & common mistakes
- A cell holding a single space looks empty but COUNTA still counts it. TRIM your data if counts look too high.