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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Order | Customer | Delivered | |
| 2 | O-101 | Aziz | 01.01.2026 | |
| 3 | O-102 | Dilnoza | ||
| 4 | O-103 | Javohir | 03.01.2026 | |
| 5 | O-104 | Malika | ||
| 6 | O-105 | Sardor | 04.01.2026 | |
| 7 | O-106 | Nodira | ||
| 8 | Not delivered | 3 | ||
| 9 |
=СЧИТАТЬПУСТОТЫ(C2:C7) = 3 — three orders have no delivery date yetSyntax
=СЧИТАТЬПУСТОТЫ(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
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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Order | Customer | Delivered | |
| 2 | O-101 | Aziz | 01.01.2026 | |
| 3 | O-102 | Dilnoza | ||
| 4 | O-103 | Javohir | 03.01.2026 | |
| 5 | O-104 | Malika | ||
| 6 | O-105 | Sardor | 04.01.2026 | |
| 7 | O-106 | Nodira | ||
| 8 | Not delivered | 1 | ||
| 9 |
2
Type COUNTBLANK into the search box or choose the Statistical category, select COUNTBLANK and click OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Order | Customer | Delivered | |
| 2 | O-101 | Aziz | 01.01.2026 | |
| 3 | O-102 | Dilnoza | ||
| 4 | O-103 | Javohir | 03.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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Order | Customer | Delivered | |
| 2 | O-101 | Aziz | 01.01.2026 | |
| 3 | O-102 | Dilnoza | ||
| 4 | O-103 | Javohir | 03.01.2026 | |
| 5 | O-104 | Malika | ||
| 6 | O-105 | Sardor | 04.01.2026 | |
| 7 | O-106 | Nodira | ||
| 8 | Not delivered | |||
| 9 |
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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Test 1 | Test 2 | Test 3 | Missing | |
| 2 | Aziz | 85 | 90 | 78 | 0 | |
| 3 | Dilnoza | 92 | 88 | 1 | ||
| 4 | Javohir | 70 | 2 | |||
| 5 | Malika | 0 | 75 | 1 | ||
| 6 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Sales | Bonus 5% | |
| 2 | Aziz | 6 200 000 | 310 000 | |
| 3 | Dilnoza | 4 100 000 | 2 | |
| 4 | Javohir | 5 500 000 | 275 000 | |
| 5 | Malika | 3 900 000 | ||
| 6 | Sardor | 4 800 000 | ||
| 7 | No bonus | 3 | ||
| 8 |
"". COUNTBLANK treats it as blank: 3 people got no bonus (COUNTA on this column would give 5)| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | Phone | ||
| 2 | Aziz | 90 123 45 67 | ||
| 3 | Dilnoza | 3 | ||
| 4 | Javohir | |||
| 5 | Malika | 97 700 88 99 | ||
| 6 | Sardor | 93 555 12 34 | ||
| 7 | COUNTBLANK | 1 | ||
| 8 | Actually | 2 | ||
| 9 |
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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Name | Phone | Address | Status | ||
| 2 | Aziz | 90 123 45 67 | aziz@mail.uz | Chilanzar | Ready | |
| 3 | Dilnoza | 93 555 12 34 | Yunusabad | 1 blank | ||
| 4 | Javohir | Sergeli | 2 blank | |||
| 5 | Malika | 97 700 88 99 | malika@mail.uz | 1 blank | ||
| 6 | Blank % | 25% | 50% | 25% | ||
| 7 |
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).
| 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 | Student | Test 1 | Test 2 | Test 3 | Blank | |||||||||||||||||||
| 2 | Aziz | 85 | 90 | 78 | ||||||||||||||||||||
| 3 | Dilnoza | 92 | 88 | |||||||||||||||||||||
| 4 | Javohir | 70 | ||||||||||||||||||||||
| 5 | Malika | 0 | 75 | |||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | Total blank | |||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.