Syntax
| Parameter | Description |
|---|---|
| value1 | Parameter of the COUNTA function. |
| [value2 | (Optional.) Parameter of the COUNTA function. |
| ...] | Parameter of the COUNTA function. |
Examples
Count non-empty cells
=COUNTA(A2:A500)
Find the last row of data
=COUNTA(A:A)
Percentage of fields filled
=COUNTA(B2:B100)/ROWS(B2:B100)
Common Errors
COUNTA counts cells with formulas that return "" (empty string) as non-empty. These look blank but are not truly empty.
Tips
A cell with =IF(A1>0, A1, "") appears blank but COUNTA counts it. Use SUMPRODUCT(1*(B2:B100<>"")) instead.
Use COUNTA to create dynamic ranges: =OFFSET(A1, 0, 0, COUNTA(A:A), 1) expands as data grows.
To count only text cells (no numbers): =SUMPRODUCT(ISTEXT(A2:A100)*1).
Try COUNTA in Viztab
Import your data and use COUNTA with 370+ other formulas. No signup required.
Open Viztab