COUNTA Function
COUNTA returns the count of all non-empty cells in a range, including text, numbers, and logical values.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| value1 | The first item, cell reference, or range to count. | Required |
| value2 | Optional additional items, cell references, or ranges to count. | Optional |
Basic Example
Count all non-empty cells in a range
=COUNTA(A1:A10)Counts all cells in A1:A10 that contain any value (text, numbers, or logical values), ignoring only completely blank cells.
Advanced Examples
Example 1: Count responses in a survey
Survey analysisCount how many respondents answered a question
=COUNTA(B2:B100)How COUNTA Works
COUNTA examines each cell in the range and counts it if it contains any value — numbers, text, logical values (TRUE/FALSE), or error values. Only completely blank cells are excluded.
Important Notes & Limitations
COUNTA counts cells with formulas that return empty strings ("") as non-empty.
For counting only numeric values, use COUNT instead.
Common Errors & Fixes
0All cells in the range are blankFix: Verify your data range is correct.
Download Practice File
COUNTA
countaPractice COUNTA with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the COUNTA function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps