Excel tutorial
/

Functions

Beginner

Excel COUNTBLANK function: counting empty cells

COUNTBLANK counts empty cells: undelivered orders, missing grades, and the difference between "", a space and zero — explained with examples.

COUNTBLANK counts how many cells in a range are empty. It answers the question “what’s missing?”: how many orders have no delivery date, how many students have no grade yet, how many form fields were left blank.

Before you send a report to your manager, one COUNTBLANK formula finds the gaps — no need to scan hundreds of rows by eye.

Книга1 - Excel
—☐✕
C8fx=СЧИТАТЬПУСТОТЫ(C2:C7)
ABCD
1OrderCustomerDelivered
2O-101Aziz01.01.2026
3O-102Dilnoza
4O-103Javohir03.01.2026
5O-104Malika
6O-105Sardor04.01.2026
7O-106Nodira
8Not delivered3
9
Готово
=СЧИТАТЬПУСТОТЫ(C2:C7) = 3 — three orders have no delivery date yet

Syntax

=СЧИТАТЬПУСТОТЫ(range)

  • range — required: one range in which empty cells are counted.

Unlike COUNT and COUNTA, COUNTBLANK takes only one argument: you can’t enter =СЧИТАТЬПУСТОТЫ(B2:B7;D2:D7) — Excel complains about too many arguments.

Counted as blank: a cell nothing was typed into, and a formula that returns `""`.
Not blank: 0, a space, any text or number.

Example

AB
1StudentScore
2Aziz85
3Dilnoza
4Javohir0
5Malika

Formula:

=COUNTBLANK(B2:B5)

→ result: 2 — Javohir’s 0 is not counted as blank

Entering COUNTBLANK

1

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

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
C8fx
ABCD
1OrderCustomerDelivered
2O-101Aziz01.01.2026
3O-102Dilnoza
4O-103Javohir03.01.2026
5O-104Malika
6O-105Sardor04.01.2026
7O-106Nodira
8Not delivered1
9
Готово

2

Type COUNTBLANK into the search box or choose the Statistical category, select COUNTBLANK and click OK.

Книга1 - Excel
—☐✕
C5fx
ABCD
1OrderCustomerDelivered
2O-101Aziz01.01.2026
3O-102Dilnoza
4O-103Javohir03.01.2026
5
Готово

3

In the Function Arguments window enter C2:C7 in the Range box or select it on the sheet, then click OK.

Книга1 - Excel
—☐✕
C8fx
ABCD
1OrderCustomerDelivered
2O-101Aziz01.01.2026
3O-102Dilnoza
4O-103Javohir03.01.2026
5O-104Malika
6O-105Sardor04.01.2026
7O-106Nodira
8Not delivered
9
ГотовоСреднее: 46024,6667Количество: 3Сумма: 138074

4

Typing is just as easy: =СЧИТАТЬПУСТОТЫ(C2:C7) and Enter. Start typing the function name and Excel suggests it in a list — pick it with Tab.

Книга1 - Excel
—☐✕
E4fx=СЧИТАТЬПУСТОТЫ(B4:D4)
ABCDEF
1StudentTest 1Test 2Test 3Missing
2Aziz8590780
3Dilnoza92881
4Javohir702
5Malika0751
6
Готово
Example 1: how many tests each student is missing. Malika’s 0 is a result, not a blank, so she has just 1 missing
Книга1 - Excel
—☐✕
C3fx=ЕСЛИ(B3>=5000000;B3*5%;"")
ABCD
1EmployeeSalesBonus 5%
2Aziz6 200 000310 000
3Dilnoza4 100 0002
4Javohir5 500 000275 000
5Malika3 900 000
6Sardor4 800 000
7No bonus3
8
Готово
Example 2: C3 holds a formula whose result is "". COUNTBLANK treats it as blank: 3 people got no bonus (COUNTA on this column would give 5)
Книга1 - Excel
—☐✕
B7fx=СЧИТАТЬПУСТОТЫ(B2:B6)
ABCD
1CustomerPhone
2Aziz90 123 45 67
3Dilnoza 3
4Javohir
5Malika97 700 88 99
6Sardor93 555 12 34
7COUNTBLANK1
8Actually2
9
Готово
Example 3 (trap): B3 looks empty but holds a space — COUNTBLANK skips it and says 1. In fact 2 customers have no phone

Pro level: data quality checks

  • Is the row ready? =ЕСЛИ(СЧИТАТЬПУСТОТЫ(B2:D2)=0;"Ready";СЧИТАТЬПУСТОТЫ(B2:D2)&" blank") tells you how many fields are missing.
  • Share of gaps: =СЧИТАТЬПУСТОТЫ(B2:B5)/ЧСТРОК(B2:B5) in percent format shows how complete each column is.
  • Block the report: =ЕСЛИ(СЧИТАТЬПУСТОТЫ(C2:C100)>0;"Fill in first!";СУММ(C2:C100)) — while gaps remain, no total is shown.
  • Treat spaces as blank: =СУММПРОИЗВ(--(ДЛСТР(СЖПРОБЕЛЫ(B2:B6))=0)) — TRIM removes the spaces, then cells of zero length are counted.
  • Fill all blanks at once: select the range → F5 → Special → Blanks → type, say, “—” and press Ctrl + Enter — every empty cell is filled in one go.
Книга1 - Excel
—☐✕
E4fx=ЕСЛИ(СЧИТАТЬПУСТОТЫ(B4:D4)=0;"Ready";СЧИТАТЬПУСТОТЫ(B4:D4)&" blank")
ABCDEF
1NamePhoneEmailAddressStatus
2Aziz90 123 45 67aziz@mail.uzChilanzarReady
3Dilnoza93 555 12 34Yunusabad1 blank
4JavohirSergeli2 blank
5Malika97 700 88 99malika@mail.uz1 blank
6Blank %25%50%25%
7
Готово
Per row — status with IF + COUNTBLANK; at the bottom — the share of gaps in each column: half of the Email column is empty

Try it in the simulator

Type =СЧИТАТЬПУСТОТЫ(B2:D2) in E2 and fill it down to E5 — you’ll see how many tests are missing for each student. Then type =СЧИТАТЬПУСТОТЫ(B2:D5) in B7 to count every gap in the table (4).

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1StudentTest 1Test 2Test 3Blank
2Aziz859078
3Dilnoza9288
4Javohir70
5Malika075
6
7Total blank
8
9
10
11
Лист1
Готово

Has ExcelLab been useful?

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

Support us
Previous

74 / 154