Skip to content

ISBLANK

Returns TRUE when a cell is completely empty. A cell holding a space, or a formula that returns empty text, is not blank.

Syntax

=ISBLANK()

Information

Every version of Excel, including Microsoft 365, Excel 2024, 2021, 2019, 2016 and earlier, Excel for the web and the mobile apps.

Try it

Edit the formula in C2 or change the inputs. The sheet recalculates as you type.

C2
A
B
C
D
1
Order
Delivery date
Blank?
2
O-1
TRUE
3
O-2
45700
4
5

C2 =ISBLANK(B2) returns TRUE

How ISBLANK works

ISBLANK answers one question: is this cell completely empty? =ISBLANK(B2) returns TRUE if B2 has nothing in it, and FALSE if it holds anything at all, even a space or a zero.

The argument

value is normally a single cell. In Microsoft 365 and Excel 2021 or later, a range returns an array with one answer per cell, which you can total with SUMPRODUCT or pass to another function.

What counts as blank

The test is strict:

  • An empty cell: TRUE.
  • A cell with 0: FALSE. Zero is a value.
  • A cell with a space, or text such as "n/a": FALSE.
  • A cell with a formula that returns empty text (=""): FALSE, even though it looks empty. The cell isn't empty, because it holds a formula.
  • A cell whose value was deleted with the Delete key: TRUE. The cell is empty again.

The formula case catches many people. A column built with =IF(A2="", "", A2*2) looks blank in rows without input, but ISBLANK returns FALSE for those cells.

The practical alternative: A2=""

=A2="" is TRUE for a truly empty cell and also for a cell that holds empty text. It is the better test when some of the cells come from formulas. =LEN(TRIM(A2))=0 goes further and also treats a cell with only spaces as empty, which is useful for imported data.

Use ISBLANK when you specifically need to separate a genuinely empty cell from other values, for example to tell "no value entered" from "entered zero".

Common uses

  • A missing-data flag. =IF(ISBLANK(B2), "Missing", B2) labels gaps instead of showing 0.
  • Validation. =IF(ISBLANK(B2), "Required", "") next to an input form.
  • Counting empties. =SUMPRODUCT(--ISBLANK(B2:B20)) counts truly empty cells. COUNTBLANK also counts cells with "", so the two can differ.
  • Choosing the right default. A formula that uses a cell for a calculation can fall back when the cell is empty: =IF(ISBLANK(C2), B2, C2).

Pairing with NOT

For "is not empty", use NOT: =NOT(ISBLANK(B2)). Or B2<>"" if empty text should also count as empty.

ISBLANK and other IS functions

ISBLANK belongs to a family: ISNUMBER, ISTEXT and ISERROR each test one kind of value. A blank cell is none of number, text or error, so all three return FALSE for it. A blank cell used in arithmetic counts as 0, and in text joining as empty text.

Arguments

value
The cell to check, such as B2. ISBLANK is TRUE only if the cell has nothing in it: no value, no formula and no space. A formula that returns "" makes the cell non-blank.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

A truly empty cell

C2 =ISBLANK(B2)

Result: TRUE

B2 has nothing in it. For O-2, B3 holds a date, so ISBLANK(B3) would be FALSE.

C2
A
B
C
D
1
Order
Delivery date
Blank?
2
O-1
TRUE
3
O-2
45700
4
5

C2 =ISBLANK(B2) returns TRUE

Example 2

A formula returning "" is not blank

B2 =ISBLANK(A2)

Result: FALSE

A2 looks empty, but it contains a formula that returns empty text, so ISBLANK is FALSE. Use A2="" to treat both kinds of empty as empty.

B2
A
B
C
D
1
Note
Blank?
2
FALSE
3
4
5

B2 =ISBLANK(A2) returns FALSE

Example 3

Replace a gap with a label

C2 =IF(ISBLANK(B2),"Not delivered",B2)

Result: Not delivered

B2 is empty, so IF returns the message instead of the 0 that a plain =B2 would show.

C2
A
B
C
D
1
Order
Delivery date
Status
2
O-1
Not delivered
3
4
5

C2 =IF(ISBLANK(B2),"Not delivered",B2) returns Not delivered

Example 4

Count the empty cells in a range

C2 =SUMPRODUCT(--ISBLANK(A2:A7))

Result: 2

ISBLANK returns an array of TRUE and FALSE for A2:A7, and the double minus turns each into 1 or 0. A4 and A6 are empty, so the total is 2.

C2
A
B
C
D
1
Survey answers
Unanswered
2
Yes
2
3
No
4
5
Yes
6
7
No
8

C2 =SUMPRODUCT(--ISBLANK(A2:A7)) returns 2

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, return Pending when the delivery date in column B is empty and Delivered otherwise. Fill down to C7.

Answer in C2, then it fills down to C7.

C2
A
B
C
D
E
F
1
Order
Delivery date
Status
2
O-01
12-Feb-2025
3
O-02
4
O-03
24-Feb-2025
5
O-04
6
O-05
04-Mar-2025
7
O-06
8
9
Orders not yet delivered
10
11

Common mistakes

  • A cell with a formula that returns "" is not blank. ISBLANK is FALSE for it, even though it looks empty. Test A2="" to catch both.
  • A cell that holds a space is not blank either. Imported data often has them. Use LEN(TRIM(A2))=0 to treat them as empty.
  • Zero is a value. ISBLANK of a cell that shows 0 is FALSE.
  • ISBLANK is built for one cell at a time. To count blanks across a range, use SUMPRODUCT with ISBLANK, or COUNTBLANK.
  • COUNTBLANK counts cells that contain "" as well as empty cells, so it can be higher than the number of cells where ISBLANK is TRUE.

Questions people ask

What is the difference between ISBLANK and =""?

ISBLANK is TRUE only for a truly empty cell. `A2=""` is TRUE for an empty cell and for a cell holding empty text, such as the result of a formula that returns "".

Why does ISBLANK return FALSE for a cell that looks empty?

The cell isn't really empty: it may hold a formula returning empty text, a space, or a character you can't see. Check it in the formula bar, or use `LEN(TRIM(A2))=0`.

How do I test that a cell is not empty?

Use `=NOT(ISBLANK(A2))`, or `=A2<>""` if empty text should count as empty.

How do I count blank cells?

COUNTBLANK counts empty cells and cells with empty text. To count only truly empty cells, use `=SUMPRODUCT(--ISBLANK(A2:A20))`.

Learn ISBLANK in a real sheet.

ISBLANK is taught in Logic and text, lesson 6: ISBLANK, ISNUMBER and ISTEXT. Each lesson is a short, graded exercise like the one above.