Excel COUNTA function: counting non-empty cells
COUNTA counts every filled cell — text, numbers, dates: customers in a list, attendance, form completion as a percentage, and the hidden-space trap.
COUNTA counts how many cells in a range are not empty. It doesn’t care what’s inside: a name, a number, a date, TRUE/FALSE — even an error counts.
In practice this is the count you need most: how many customers are in the list, how many employees have a phone number, how many tasks have an owner, how many days a student attended. COUNT counts only numbers; COUNTA counts every filled cell.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | Phone | City | |
| 2 | Aziz | 90 123 45 67 | Tashkent | |
| 3 | Dilnoza | Samarkand | ||
| 4 | Javohir | 93 555 12 34 | Tashkent | |
| 5 | Malika | 97 700 88 99 | ||
| 6 | Sardor | Bukhara | ||
| 7 | Nodira | 99 404 20 20 | Andijan | |
| 8 | Customers | 6 | ||
| 9 | With phone | 4 | ||
| 10 |
=СЧЁТЗ(A2:A7) = 6 customers, =СЧЁТЗ(B2:B7) = 4 — two customers have no phone entered yetSyntax
=СЧЁТЗ(value1; [value2]; ...)
- value1 — required: a cell, a range or a value.
- value2, ... — optional: up to 254 more ranges, separated by commas.
Counted: text, numbers (0 too), dates, TRUE/FALSE, errors (#N/A), a space and a formula that returns `""`.
Not counted: only truly empty cells that nothing was ever typed into.
Those last two cases are the biggest COUNTA trap: the cell *looks* empty, but to Excel it is filled.
Example
Formula:
=COUNTA(B2:B5)→ result: 3 — tasks that have an owner
Entering COUNTA
1
Select the result cell (B8). On the Формулы tab click Вставить функцию (fx).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | Phone | ||
| 2 | Aziz | 90 123 45 67 | ||
| 3 | Dilnoza | |||
| 4 | Javohir | 93 555 12 34 | ||
| 5 | Malika | 97 700 88 99 | ||
| 6 | Sardor | |||
| 7 | Nodira | 99 404 20 20 | ||
| 8 | Customers | 1 | ||
| 9 |
2
Type COUNTA into the search box or choose the Statistical category, select COUNTA in the list and click OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | Phone | ||
| 2 | Aziz | 90 123 45 67 | ||
| 3 | Dilnoza | |||
| 4 | Javohir | 93 555 12 34 | ||
| 5 |
3
In the Function Arguments window type the range into Value1 or select it on the sheet (A2:A7). The result appears at the bottom of the window — click OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | Phone | ||
| 2 | Aziz | 90 123 45 67 | ||
| 3 | Dilnoza | |||
| 4 | Javohir | 93 555 12 34 | ||
| 5 | Malika | 97 700 88 99 | ||
| 6 | Sardor | |||
| 7 | Nodira | 99 404 20 20 | ||
| 8 | Customers | |||
| 9 |
4
The faster way is to type it: =СЧЁТЗ(A2:A7) and Enter. To check without a formula, just select the cells: Count on the status bar counts non-empty cells exactly like COUNTA.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Student | Mon | Tue | Wed | Thu | Attended | |
| 2 | Aziz | x | x | x | x | 4 | |
| 3 | Dilnoza | x | x | x | 3 | ||
| 4 | Javohir | x | 1 | ||||
| 5 | Malika | x | x | x | 3 | ||
| 6 | Total | 3 | 2 | 3 | 3 | ||
| 7 |
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Name | Phone | Address | Completed | ||
| 2 | Aziz | 90 123 45 67 | aziz@mail.uz | Chilanzar | 100% | |
| 3 | Dilnoza | 93 555 12 34 | Yunusabad | 67% | ||
| 4 | Javohir | Sergeli | 33% | |||
| 5 | Malika | 97 700 88 99 | malika@mail.uz | 67% | ||
| 6 |
COUNTA/COLUMNS gives the share of filled fields: Javohir has only 1 of 3 (33%)| A | B | C | D | |
|---|---|---|---|---|
| 1 | Task | Owner | ||
| 2 | Report | Aziz | ||
| 3 | Presentation | 1 | ||
| 4 | Contract | Dilnoza | ||
| 5 | Stocktake | |||
| 6 | COUNTA | 32 | ||
| 7 | Actually | 2 | ||
| 8 |
Pro level: COUNTA in real work
- List length:
=СЧЁТЗ(A:A)-1— records without the header; updates itself as the list grows (don’t put the formula in column A). - Is the row complete?
=ЕСЛИ(СЧЁТЗ(B2:D2)=3;"Complete";3-СЧЁТЗ(B2:D2)&" missing")also tells you how many fields are missing. - Counting a specific value: for “how many x” or “how many Tashkent” use
=СЧЁТЕСЛИ(C2:C7;"Tashkent"), not COUNTA. - Number of empty cells:
=ЧСТРОК(B2:B7)-СЧЁТЗ(B2:B7). With""formulas it differs from COUNTBLANK, which treats them as blank. - Counting real results: in a column of formulas that return
"", COUNTA counts everything. If the results are numbers use COUNT; if text, use=СЧЁТЕСЛИ(C2:C6;"?*")(text with at least one character). - After filtering: only visible filled cells —
=ПРОМЕЖУТОЧНЫЕ.ИТОГИ(3;A2:A100).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Sales | Bonus 5% | |
| 2 | Aziz | 6 200 000 | 310 000 | |
| 3 | Dilnoza | 4 100 000 | ||
| 4 | Javohir | 5 500 000 | 275 000 | |
| 5 | Malika | 3 900 000 | ||
| 6 | Sardor | 4 800 000 | ||
| 7 | COUNTA | 5 | ||
| 8 | COUNT | 2 | ||
| 9 |
=СЧЁТЗ(C2:C6) = 5 (the wrong question), =СЧЁТ(C2:C6) = 2 — employees who got a bonusTry it in the simulator
Type =СЧЁТЗ(B2:D2) in E2 and drag the fill handle down to E5 — you’ll see how many fields each customer has filled. Then type =СЧЁТЗ(A2:A5) in B7 to get the number of customers (4).
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Phone | Address | Completed | ||||||||||||||||||||
| 2 | Aziz | 90 123 45 67 | aziz@mail.uz | Chilanzar | ||||||||||||||||||||
| 3 | Dilnoza | 93 555 12 34 | Yunusabad | |||||||||||||||||||||
| 4 | Javohir | Sergeli | ||||||||||||||||||||||
| 5 | Malika | 97 700 88 99 | malika@mail.uz | |||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | Customers | |||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.