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
Related Tutorials
Convert Text to Number in Excel and Google Sheets
Convert text to number in Excel and Google Sheets with VALUE, multiplication and Paste Special. Handles currency symbols, hidden spaces and #VALUE! errors.
COUNTIF with Wildcard: Count Cells by Text Pattern
COUNTIF with wildcard patterns counts cells by prefix, suffix or length. Learn the * and ? rules, how to escape a literal asterisk, and where numbers fail.
Excel Sales Dashboard: Build One That Updates Itself
Build an Excel sales dashboard that keeps itself current: one flat sales table, SUMIFS KPIs, XLOOKUP targets and FILTER drill-downs that grow with the data.