Syntax
=COUNTA(value1, [value2, ...])
value1- A cell, range or value to count.
value2, ...- Optional. More ranges or values.
COUNTA counts every cell that isn't empty: numbers, text, TRUE/FALSE, even errors. Use it to count names, responses, or rows of data.
=COUNTA(value1, [value2, ...])
value1value2, ...How many guests have replied (any answer at all)? Answer in D2.
Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.
Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Class | Score | Passed |
| 2 | Priya | A | 92 | TRUE |
| 3 | Leo | B | 67 | FALSE |
| 4 | Chloe | A | 48 | FALSE |
| 5 | Mateo | B | 81 | TRUE |
| 6 | Ines | C | FALSE | |
| 7 | Kai | C | 75 | TRUE |
| Formula | Result | What it shows |
|---|---|---|
=COUNTA(A2:A7) | 6 | Number of students listed. |
=COUNTA(C2:C7) | 5 | Scores entered. The blank cell is skipped. |
=COUNTA(A1:D1) | 4 | Number of column headers. |
Learning step by step? COUNTA is covered in Lesson 5: COUNT, COUNTA & COUNTBLANK of the free course.