ISBLANK vs ="" in Excel: Which Test for Empty
By ExcelReady TeamUpdated 7 min read
The short answer
ISBLANK(A2) returns TRUE only when A2 is truly empty, with nothing typed and no formula. A2="" returns TRUE when A2 is empty or holds an empty string, such as a formula that returns "". Use A2="" for most checks, because cells that look empty often contain formulas. Use ISBLANK when you must know that nothing was entered.
Key takeaways
- ISBLANK is FALSE for a formula that returns "", even though the cell looks empty.
- A2="" is TRUE for both truly empty cells and empty-string results.
- Neither treats a cell with a space as empty; use TRIM(A2)="" for that.
- COUNTBLANK counts empty cells and empty strings, matching the ="" test.
On this page+
The short answer to ISBLANK vs empty string: ISBLANK(A2) is TRUE only when a cell is truly empty, while A2="" is TRUE when a cell is empty or holds an empty string, such as a formula that returns "". Because many cells that look empty actually contain formulas, A2="" is the safer everyday test. This comparison is for anyone whose blank check works on some rows and fails on others.
ISBLANK vs ="" at a glance#
ISBLANK checks whether a cell has any content; ="" checks whether its value is empty text.
| Feature | ISBLANK(A2) | A2="" |
|---|---|---|
| What it tests | The cell has no content at all | The cell's value is empty |
| Truly empty cell | TRUE | TRUE |
Formula returning "" | FALSE | TRUE |
| A single space | FALSE | FALSE |
| The number 0 | FALSE | FALSE |
| Any text or number | FALSE | FALSE |
| Opposite test | NOT(ISBLANK(A2)) | A2<>"" |
| Matches which counter | No direct match | COUNTBLANK |
| Excel versions | All versions | All versions |
An empty string is text with no characters, written as two double quotes with nothing between them: "". Formulas return it to leave a cell looking blank.
How ISBLANK works#
ISBLANK is one of Excel's IS functions. It takes one value and returns TRUE or FALSE.
=ISBLANK(A2)It returns TRUE only when A2 has nothing in it: no number, no text, no formula. The moment the cell holds a formula, ISBLANK returns FALSE, even when that formula displays nothing. That is the source of most confusion.
The IS family also includes ISNUMBER, ISTEXT and ISERROR, which test what kind of value a cell holds. The ISNUMBER function guide shows a useful alternative: if a cell should hold a date or amount, =ISNUMBER(A2) is TRUE only when a real number is there, which rules out blanks, empty strings, spaces and text in one go. The overview of Excel's IS functions covers the rest of the family.
How the ="" test works#
A2="" is a comparison. It asks: "is the value of A2 equal to empty text?" and returns TRUE or FALSE.
=A2=""
=IF(A2="","Missing","Received")For a truly empty cell, Excel treats the value as empty when compared with text, so the result is TRUE. For a formula that returns "", the value is empty text, so the result is also TRUE. In practice, ="" answers the question people usually mean: "does this cell show anything?"
The opposite test is A2<>"", which reads "A2 is not empty". It is the usual way to write "only if something has been entered" inside IF, COUNTIFS or FILTER.
The same cells tested both ways#
Here are five cells that might all look "empty-ish":
| Cell contains | Looks like | =ISBLANK(A2) | =A2="" | =TRIM(A2)="" |
|---|---|---|---|---|
| Nothing | Empty | TRUE | TRUE | TRUE |
=IF(B2>0,B2,"") with B2 = 0 | Empty | FALSE | TRUE | TRUE |
| A single space | Empty | FALSE | FALSE | TRUE |
| 0 | 0 | FALSE | FALSE | FALSE |
| Paid | Paid | FALSE | FALSE | FALSE |
Row 2 is the key difference. A formula that returns "" looks empty, but ISBLANK says it isn't. Row 3 catches both tests: a space is a character, so the cell isn't empty. Wrapping the cell in TRIM, which removes extra spaces, treats it as empty.
A status column built both ways#
Suppose column B holds a paid date, and column C should say "Missing" or "Received".
=IF(ISBLANK(B3),"Missing","Received")
=IF(B3="","Missing","Received")If B3 is truly empty, both return Missing. Now suppose column B is filled by a lookup that returns "" when nothing is found. The ISBLANK version now says Received for every unpaid invoice, while the ="" version still says Missing. Nothing on screen warns you that the first formula has broken.
Counting empty cells on the same data#
The same split shows up when you count. Say B2:B6 holds two paid dates, one truly empty cell and two lookup formulas that return "".
=COUNTBLANK(B2:B6)
=COUNTA(B2:B6)
=SUMPRODUCT(--ISBLANK(B2:B6))COUNTBLANK returns 3, because it counts the empty cell and both empty strings, just like the ="" test. COUNTA returns 4, because it counts every cell with content, including the two formulas. The SUMPRODUCT version counts cells where ISBLANK is TRUE and returns 1. Three formulas, three answers, all "correct" for the question they ask. Decide which question you mean before you build a report on it.
When to use ISBLANK#
Use ISBLANK when you need to know that a cell has no content at all. It fits:
- Data-entry checks, where a person must type a value and a formula in the cell would itself be a problem.
- Finding cells to fill, such as gaps under a heading in an exported report. The guide to filling blank cells uses Go To Special > Blanks, which selects truly empty cells, the same ones ISBLANK sees.
- Auditing a sheet, to spot cells that contain formulas even though they look empty.
- Conditional formatting that highlights cells someone forgot to fill in, where the column has no formulas.
When to use =""#
Use ="" for most everyday checks of whether a cell shows a value. It fits:
- Columns filled by formulas, such as lookups or IF formulas that return
""when there is nothing to show. - Status and flag columns, like "Missing" or "Done".
- Filtering and counting, such as the FILTER condition
B2:B20<>""or=SUMPRODUCT(--(B2:B20<>""))to count cells that show a value. - Data pasted as values from formulas, which can leave empty-string cells that ISBLANK doesn't treat as empty.
If spaces might sneak in, use TRIM(A2)="". If the cell should hold a number, ISNUMBER(A2) is stricter still.
Common mistakes when testing for empty cells#
- Using ISBLANK on formula results. A formula returning
""is never blank to ISBLANK. Use="". - Forgetting about spaces. A space looks empty but isn't. Clean the data with TRIM, or test
TRIM(A2)="". - Testing with =0.
=A2=0returns TRUE for an empty cell, so blanks get counted as zeros. Test for empty first:=IF(A2="","",A2*2). - Mixing COUNTA and COUNTBLANK. COUNTA counts
""formula cells as filled, while COUNTBLANK counts them as blank. On the same range, the two can add up to more than the number of cells. - Writing " " instead of "".
=A2=" "tests for a single space, not empty. The two quotes must touch. - Expecting a lookup to return blank. A lookup that hits an empty cell returns 0, not an empty value. Add
&""to the end, or wrap it in IF, to show an empty string instead.
When you have more than two outcomes to return, SWITCH can replace a chain of IF tests; see the SWITCH function and CHOOSE vs SWITCH.
Our recommendation#
Use A2="" as your default test for "is this cell empty?", and A2<>"" for "has something been entered?". It treats truly empty cells and empty-string formulas the same way, which matches what you see on screen. Reach for ISBLANK only when you specifically need to know that a cell has no content at all, such as when auditing formulas or checking typed input. Add TRIM when spaces might be present, and use ISNUMBER when the cell must hold a number.
In short: ="" for what you see, ISBLANK for what is really there.
Practise it#
Try the exercise on this page: build a status column with the ="" test. Then practise the IS functions and SWITCH in a live spreadsheet: you type each formula, and it checks your answer instantly.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Column B shows the date each invoice was paid. In C3, use IF with the ="" test to return Missing when B3 is empty, or Received when it has a value.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Status | |||
| 2 | ||||
| 3 | INV-202 | |||
| 4 | ||||
| 5 | INV-204 | |||
| 6 | ||||
| 7 | ||||
| 8 |
Tip: The test is B3="". If it is TRUE, return "Missing"; otherwise return "Received".
Practise this in a lesson
Frequently asked questions
Why does ISBLANK return FALSE for a cell that looks empty?
The cell probably contains a formula that returns an empty string, such as =IF(B2>0,B2,""), or a space. ISBLANK is TRUE only when the cell has no content at all. Use =A2="" or =TRIM(A2)="" instead.
How do I check if a cell is not empty in Excel?
Use =A2<>"", which returns TRUE when the cell has any value. =NOT(ISBLANK(A2)) also works but treats formulas that return "" as not empty.
What is an empty string in Excel?
An empty string is text with no characters, written as two double quotes: "". Formulas often return it to leave a cell looking blank, for example when there is nothing to show yet.
Does COUNTBLANK count cells with formulas that return ""?
Yes. COUNTBLANK counts truly empty cells and cells that contain an empty string. COUNTA does the opposite and counts those formula cells as filled.
Does ISBLANK treat zero as blank?
No. A cell containing 0 is not blank, so ISBLANK returns FALSE and A2="" returns FALSE. Be careful with A2=0, though: an empty cell counts as 0 in that comparison.