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 =ISBLANK(B2) returns TRUE
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()
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 =ISBLANK(B2) returns TRUE
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.
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.
The test is strict:
0: FALSE. Zero is a value.=""): FALSE, even though it looks empty. The cell isn't empty, because it holds a formula.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.
=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".
=IF(ISBLANK(B2), "Missing", B2) labels gaps instead of showing 0.=IF(ISBLANK(B2), "Required", "") next to an input form.=SUMPRODUCT(--ISBLANK(B2:B20)) counts truly empty cells. COUNTBLANK also counts cells with "", so the two can differ.=IF(ISBLANK(C2), B2, C2).For "is not empty", use NOT: =NOT(ISBLANK(B2)). Or B2<>"" if empty text should also count as empty.
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.
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.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
C2 =ISBLANK(B2)
Result: TRUE
B2 has nothing in it. For O-2, B3 holds a date, so ISBLANK(B3) would be FALSE.
C2 =ISBLANK(B2) returns TRUE
Example 2
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 =ISBLANK(A2) returns FALSE
Example 3
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 =IF(ISBLANK(B2),"Not delivered",B2) returns Not delivered
Example 4
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 =SUMPRODUCT(--ISBLANK(A2:A7)) returns 2
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.
"" is not blank. ISBLANK is FALSE for it, even though it looks empty. Test A2="" to catch both.LEN(TRIM(A2))=0 to treat them as empty.ISBLANK of a cell that shows 0 is FALSE."" as well as empty cells, so it can be higher than the number of cells where ISBLANK is TRUE.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 "".
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`.
Use `=NOT(ISBLANK(A2))`, or `=A2<>""` if empty text should count as empty.
COUNTBLANK counts empty cells and cells with empty text. To count only truly empty cells, use `=SUMPRODUCT(--ISBLANK(A2:A20))`.
ISBLANK is taught in Logic and text, lesson 6: ISBLANK, ISNUMBER and ISTEXT. Each lesson is a short, graded exercise like the one above.