Excel tutorial
/

Functions

Beginner

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.

Книга1 - Excel
—☐✕
B9fx=СЧЁТЗ(B2:B7)
ABCD
1CustomerPhoneCity
2Aziz90 123 45 67Tashkent
3DilnozaSamarkand
4Javohir93 555 12 34Tashkent
5Malika97 700 88 99
6SardorBukhara
7Nodira99 404 20 20Andijan
8Customers6
9With phone4
10
Готово
=СЧЁТЗ(A2:A7) = 6 customers, =СЧЁТЗ(B2:B7) = 4 — two customers have no phone entered yet

Syntax

=СЧЁТЗ(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

AB
1TaskOwner
2ReportAziz
3Presentation
4ContractDilnoza
5StocktakeJavohir

Formula:

=COUNTA(B2:B5)

→ result: 3 — tasks that have an owner

Entering COUNTA

1

Select the result cell (B8). On the Формулы tab click Вставить функцию (fx).

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
B8fx
ABCD
1CustomerPhone
2Aziz90 123 45 67
3Dilnoza
4Javohir93 555 12 34
5Malika97 700 88 99
6Sardor
7Nodira99 404 20 20
8Customers1
9
Готово

2

Type COUNTA into the search box or choose the Statistical category, select COUNTA in the list and click OK.

Книга1 - Excel
—☐✕
B5fx
ABCD
1CustomerPhone
2Aziz90 123 45 67
3Dilnoza
4Javohir93 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.

Книга1 - Excel
—☐✕
B8fx
ABCD
1CustomerPhone
2Aziz90 123 45 67
3Dilnoza
4Javohir93 555 12 34
5Malika97 700 88 99
6Sardor
7Nodira99 404 20 20
8Customers
9
ГотовоКоличество: 6

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.

Книга1 - Excel
—☐✕
F3fx=СЧЁТЗ(B3:E3)
ABCDEFG
1StudentMonTueWedThuAttended
2Azizxxxx4
3Dilnozaxxx3
4Javohirx1
5Malikaxxx3
6Total3233
7
Готово
Example 1: an attendance sheet. “x” means present. On the right — days each student attended; at the bottom — students present each day
Книга1 - Excel
—☐✕
E4fx=СЧЁТЗ(B4:D4)/ЧИСЛСТОЛБ(B4:D4)
ABCDEF
1NamePhoneEmailAddressCompleted
2Aziz90 123 45 67aziz@mail.uzChilanzar100%
3Dilnoza93 555 12 34Yunusabad67%
4JavohirSergeli33%
5Malika97 700 88 99malika@mail.uz67%
6
Готово
Example 2: how complete each form is. COUNTA/COLUMNS gives the share of filled fields: Javohir has only 1 of 3 (33%)
Книга1 - Excel
—☐✕
B6fx=СЧЁТЗ(B2:B5)
ABCD
1TaskOwner
2ReportAziz
3Presentation 1
4ContractDilnoza
5Stocktake
6COUNTA32
7Actually2
8
Готово
Example 3 (trap): B3 looks empty but holds a space — COUNTA says 3, while only 2 tasks really have an owner

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).
Книга1 - Excel
—☐✕
C3fx=ЕСЛИ(B3>=5000000;B3*5%;"")
ABCD
1EmployeeSalesBonus 5%
2Aziz6 200 000310 000
3Dilnoza4 100 000
4Javohir5 500 000275 000
5Malika3 900 000
6Sardor4 800 000
7COUNTA5
8COUNT2
9
Готово
C3 looks empty but contains a formula. =СЧЁТЗ(C2:C6) = 5 (the wrong question), =СЧЁТ(C2:C6) = 2 — employees who got a bonus

Try 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).

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1NamePhoneEmailAddressCompleted
2Aziz90 123 45 67aziz@mail.uzChilanzar
3Dilnoza93 555 12 34Yunusabad
4JavohirSergeli
5Malika97 700 88 99malika@mail.uz
6
7Customers
8
9
10
11
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

73 / 154