Counting function
Excel COUNTA function
COUNTA counts how many cells in a range are not empty. Text, numbers, dates, TRUE/FALSE and even errors all count. Use it to see how many people replied, how many rows have data, or how many tasks have an owner.
=COUNTA(value1, [value2], ...)Arguments
value1- The first cell, range or value to count.
value2- Optional. More cells or ranges, up to 255.
COUNTA examples
Every result below was calculated live from this sample sheet.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Guest | RSVP | Meal | Plus one |
| 2 | Hannah Lee | Yes | Fish | 1 |
| 3 | Marcus Webb | No | ||
| 4 | Sofia Ruiz | Yes | Veg | 0 |
| 5 | Ian Park | |||
| 6 | Grace Kim | Yes | Beef | 2 |
Result: 5
The number of guests on the list.
Result: 4
How many guests have replied. Ian has not, so his blank cell is skipped.
Result: 3
A 0 is still an entry, so Sofia's row counts.
Result: 1
Guests who still need to reply.
How to use COUNTA
- Click an empty cell.
- Type =COUNTA(
- Select the range to check.
- Close the bracket and press Enter.
Common COUNTA mistakes
Cells that only look empty
A space, or a formula returning "", counts as an entry. Clear the cell fully, or use COUNTIF(range,"?*") to count only real text.
Using it to count numbers only
COUNTA counts text too. Use COUNT if you only want numeric cells.
Including the header row
COUNTA(A:A) counts the header as well. Subtract 1 or start the range at row 2.
COUNTA FAQ
Why is COUNTA counting blank cells?
Those cells are not truly empty. They may hold a space or a formula that returns "". Select one and check the formula bar.
How do I count cells with text in Excel?
Use =COUNTIF(range,"*") to count text only. COUNTA counts text and numbers together.
What is the difference between COUNTA and COUNTBLANK?
COUNTA counts filled cells. COUNTBLANK counts empty ones. Together they add up to the size of the range.
Practice COUNTA in these lessons
- SUM and friends: Counting
- Data cleanup: Duplicates and uniques
- Dynamic arrays: Spill basics
- Project: Clean a CRM export
Guides that use COUNTA
- How to count unique values in Excel
- How to count cells with text in Excel
- #SPILL! error in Excel
- Excel formulas cheat sheet: the 25 everyone should know
Related functions
COUNTCounts numbersCOUNTBLANKCounts empty cellsCOUNTIFCounts cells that matchISBLANKIs the cell empty?
Updated 2026-10-31