Excel has no ISNULL function. The function you are looking for is ISBLANK, which returns TRUE when a cell is empty and FALSE when it contains anything at all — including a formula that returns an empty string. If you came from SQL or Power BI, where ISNULL exists, the Excel equivalent is a combination of ISBLANK and IF, or IFERROR when the "null" you are chasing is actually an error value. The shortest working formula is =IF(ISBLANK(A1),"blank","not blank"). Below is how to use it properly, what it does and does not catch, and the fixes for the cases where it appears to fail.
What You'll Need
- Excel for Microsoft 365, Excel 2021/2019, Excel for Mac, or Excel for the web. ISBLANK works in all of them; labels in menus can differ slightly by version and region.
- A worksheet with at least one cell you want to test, and a second cell to hold the formula.
- Optional: a helper column if you plan to apply the test down a long list.
Step-by-Step
- Pick the cell to test. Click an empty cell next to your data, for example B2 if your value sits in A2. Formulas can live anywhere; they do not need to be adjacent.
- Type the basic test. Enter
=ISBLANK(A2)and press Enter. The result is TRUE if A2 is genuinely empty, FALSE if it contains text, a number, a space, an apostrophe, or a formula — even one that returns "". - Wrap it in IF for a readable answer. Replace the formula with
=IF(ISBLANK(A2),"Missing","Provided"). This is the pattern you will use most: the first argument is what to show when blank, the second when not blank. - Return a zero or a default instead of a label. If you are doing arithmetic, use
=IF(ISBLANK(A2),0,A2)so the blank becomes a usable number. For text, swap 0 for "" or a default string such as "Not supplied". - Fill the formula down. Drag the fill handle from the bottom-right corner of the formula cell, or double-click it to fill to the end of the adjacent data. Relative references adjust automatically, so A2 becomes A3, A4 and so on.
- Test for an error value instead, if that is what you mean. If your source cell shows #N/A, #VALUE! or #DIV/0!, ISBLANK will return FALSE because the cell is not empty. Use
=IFERROR(A2,"Missing")to catch errors, or=IF(OR(ISBLANK(A2),ISERROR(A2)),"Missing",A2)to treat both as missing. - Test for an empty string returned by a formula. A cell containing
=""looks blank on screen but is not blank to ISBLANK. Use=IF(A2="","Missing",A2)or=IF(LEN(A2)=0,"Missing",A2)to catch it. LEN is the more reliable of the two because it counts characters after any trimming. - Apply it to a whole column with conditional formatting, if you want visual flags. Select the range, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter
=ISBLANK(A2)with A2 being the top-left cell of the selection. Choose a fill colour and confirm. Labels vary slightly by version. - Use it inside COUNTIF or SUMPRODUCT for totals.
=SUMPRODUCT(--ISBLANK(A2:A100))counts genuinely empty cells in the range.=COUNTBLANK(A2:A100)is simpler and also counts cells containing "", which is often what people actually want. - Check your result before relying on it. Click a cell that returned FALSE and look at the formula bar. If it shows a formula, an apostrophe or a space, that is why ISBLANK said FALSE — the cell is not empty, it just looks that way.
Common Mistakes
- Typing =ISNULL(). Excel will offer no such function and the formula returns #NAME?. There is no ISNULL in Excel; use ISBLANK, IFERROR or a comparison to "".
- Assuming a formula returning "" is blank. It is not. ISBLANK returns FALSE. Use LEN(A2)=0 or A2="" instead.
- Assuming a cell with a space is blank. A single space makes ISBLANK return FALSE. If your data was pasted from elsewhere, trailing spaces are common; TRIM the value first with
=IF(ISBLANK(TRIM(A2)),...)— but note TRIM on a truly blank cell still returns "", so combine with LEN if you need both cases. - Confusing blank with zero. A cell containing 0 is not blank. ISBLANK returns FALSE. If you want to treat zero as missing, test
=IF(OR(ISBLANK(A2),A2=0),...). - Forgetting that COUNTBLANK and ISBLANK disagree. COUNTBLANK counts cells with "" as blank; ISBLANK does not. Pick the one that matches your definition of missing.
- Filling a formula without checking the reference style. If you copied a formula with absolute references ($A$2), every row tests the same cell. Remove the dollar signs if you want the test to move down the column.
Tips
- Use a named range or a table column reference so formulas stay readable when you add rows.
- Combine ISBLANK with AND or OR for multi-condition checks, for example
=IF(AND(ISBLANK(A2),ISBLANK(B2)),"Incomplete","OK"). - If you are building a dashboard, use ISBLANK in the display formula rather than deleting rows — the underlying data stays intact and the sheet still totals correctly.
- For imported data, run a quick check with
=SUMPRODUCT(--(LEN(A2:A100)=0))to see how many cells are truly empty versus formula-empty before you decide which test to use. - Remember that labels in the ribbon and formula names are the same across platforms, but menu locations can differ between Excel for Windows, Excel for Mac and Excel for the web.
Troubleshooting
The formula returns #NAME?. You typed ISNULL or another function Excel does not recognise. Replace it with ISBLANK and re-enter the formula.
ISBLANK says FALSE but the cell looks empty. Click the cell and read the formula bar. A space, an apostrophe, a zero or a formula returning "" all count as content. Clean the data or switch to LEN(A2)=0.
ISBLANK says TRUE but you expected data. The cell may reference an empty cell elsewhere, or your lookup returned nothing. Check the source and confirm the reference points where you think it does.
The fill-down produced the same answer in every row. Your reference is absolute ($A$2). Edit the first formula to use a relative reference and fill again.
Conditional formatting highlights the wrong cells. The formula in the rule must be written relative to the top-left cell of the selected range, without dollar signs on the row unless you want the whole row tested against one cell.
If that did not work, copy the formula into a fresh cell and test it against a known blank cell and a known filled cell. If both behave correctly, the problem is in the range or the reference, not the function.
Frequently Asked Questions
Does Excel have an ISNULL function?
No. Excel uses ISBLANK for empty cells and IFERROR for error values. ISNULL exists in SQL and Power Query, not in worksheet formulas.
What is the difference between ISBLANK and COUNTBLANK?
ISBLANK tests one cell and returns TRUE only if it is truly empty. COUNTBLANK counts a range and also counts cells containing an empty string returned by a formula.
How do I treat a formula that returns "" as blank?
Use =IF(LEN(A2)=0,"Missing",A2) or =IF(A2="","Missing",A2). ISBLANK will not catch it.
Can I use ISBLANK in conditional formatting?
Yes. Create a rule with "Use a formula to determine which cells to format" and enter =ISBLANK(A2), where A2 is the top-left cell of the selected range.
Why does ISBLANK return FALSE for a cell with a space?
A space is a character, so the cell is not empty. Use TRIM or LEN to detect and clean it.
Is ISBLANK available in Excel for the web and Mac?
Yes, it works the same in Excel for Windows, Mac and the web. Only the menu locations for conditional formatting and similar features vary slightly.