The ISNULL function does not exist in Excel. Excel uses ISBLANK to check for empty cells, and ISNUMBER, ISTEXT, or ISERROR for other data types. If you're trying to detect empty cells or handle null-like values, you need to use the correct function based on your goal. This guide shows you how to properly identify and respond to empty or invalid data in Excel using the actual functions available.
What You'll Need
- Microsoft Excel (any version from 2007 onward)
- A worksheet with data you want to evaluate
- Basic understanding of cell references (like A1, B5)
Step-by-Step
- Open your Excel workbook and navigate to the worksheet containing the data you want to check.
- Identify the cell or range of cells you want to test for emptiness. For example, if you’re checking column C for missing entries, focus on cells like C2, C3, C4, etc.
- Click on an empty cell where you want the result to appear — this will be your formula cell.
- Type
=ISBLANK(A1), replacing A1 with the reference to the cell you want to test. Press Enter. - If the referenced cell is truly empty (no spaces, no formula returning blank), Excel returns TRUE. If it contains any content — even a space or a formula that outputs empty text — it returns FALSE.
- To test multiple cells at once, click the small square in the bottom-right corner of the formula cell (the fill handle) and drag it down or across to copy the formula to adjacent cells.
- If you want to return a custom message instead of TRUE/FALSE, wrap ISBLANK inside an IF statement. For example:
=IF(ISBLANK(A1), "Missing", "Filled"). - For cells that may contain formulas returning blank text (like
=""), ISBLANK still returns FALSE. To catch these, use=LEN(A1)=0, which checks if the character length is zero. - To check for both truly empty cells and zero-length formula results in one formula, combine conditions:
=OR(ISBLANK(A1), LEN(A1)=0). This returns TRUE if the cell is empty or contains only an empty string. - If you’re checking for data types (e.g., is it a number or text?), use ISNUMBER(A1) or ISTEXT(A1). These return TRUE only if the cell’s content matches the type.
- To detect errors (like #N/A, #VALUE!), use ISERROR(A1) or specifically ISNA(A1) for #N/A errors only.
- Always test your formula on a few known examples: one truly empty cell, one with a space, one with text, one with a number, and one with a formula that returns blank. This ensures your logic works as expected.
Common Mistakes
- Typing
=ISNULL(A1)expecting it to work — this function doesn’t exist in Excel and returns a #NAME? error. - Assuming a cell with a space is empty — ISBLANK returns FALSE because a space is a character.
- Using ISBLANK on cells with formulas that return blank text — ISBLANK ignores formula results, only detecting physically empty cells.
- Confusing ISBLANK with ISERROR — ISBLANK checks for absence of data; ISERROR checks for calculation errors.
- Not using absolute references ($) when copying formulas across rows or columns, causing incorrect cell references.
- Trying to use ISNULL in Power Query or VBA and assuming it works the same way in Excel formulas — it doesn’t.
Tips
- Use
=LEN(TRIM(A1))=0to catch cells with only spaces — TRIM removes extra spaces before checking length. - For conditional formatting, apply a rule using
=ISBLANK(A1)to highlight empty cells visually. - Combine ISBLANK with COUNTA to count empty cells in a range:
=COUNTA(A1:A100)-COUNTA(A1:A100)won’t work — instead use=COUNTBLANK(A1:A100)for a direct count. - If you’re cleaning data, use Data > Text to Columns > Delimited > Finish to remove hidden characters that look empty but aren’t.
- Use F9 to evaluate parts of complex formulas in the formula bar — highlight a section like ISBLANK(A1) and press F9 to see its result without exiting edit mode.
- For large datasets, consider using Excel’s Filter feature — click the dropdown arrow in the column header and uncheck "(Blanks)" to hide empty rows.
Troubleshooting
- If you see #NAME? error: You likely typed ISNULL. Replace it with ISBLANK or another valid function.
- If ISBLANK returns FALSE but the cell looks empty: Check for hidden characters by selecting the cell and looking at the formula bar. Press Delete to clear it completely, then retest.
- If your formula works in one cell but not others: Check cell references. Did you drag the formula correctly? Use F2 to edit and verify the cell reference in each instance.
- If the result is always TRUE or always FALSE: Your referenced cell might be locked or the sheet might be in manual calculation mode. Go to Formulas > Calculation Options and ensure it’s set to Automatic.
- If you’re working with imported data from CSV or databases and empty cells aren’t being detected: The data might be imported as text with zero-width characters. Use CLEAN(A1) to remove non-printing characters:
=ISBLANK(CLEAN(A1)). - If Excel crashes or freezes when applying the formula to thousands of rows: Break the range into smaller chunks, or use Power Query to clean data before loading into Excel.
Frequently Asked Questions
Does Excel have an ISNULL function?
No. Excel does not have an ISNULL function. Use ISBLANK to check for empty cells, and other IS functions like ISNUMBER or ISERROR for other conditions.Why does ISBLANK return FALSE when the cell looks empty?
Because the cell may contain a space, non-breaking space, tab, or a formula returning an empty string (like=""). Use LEN(TRIM(A1))=0 to catch these cases.
How do I count how many cells are empty in a range?
Use the COUNTBLANK function. For example,=COUNTBLANK(A1:A50) returns the number of empty cells in that range.
Can I use ISBLANK with conditional formatting?
Yes. Select the range, go to Home > Conditional Formatting > New Rule > Use a formula, then enter=ISBLANK(A1) (adjust A1 to the top-left cell of your selection). Set your formatting style.
What’s the difference between ISBLANK and ISERROR?
ISBLANK returns TRUE only if the cell has no content. ISERROR returns TRUE if the cell contains any error value like #N/A, #VALUE!, #DIV/0!, etc. They serve completely different purposes.Can I use ISBLANK in Power Query or VBA?
In Power Query, useText.IsEmpty or Value.Is with null. In VBA, use IsEmpty(Range("A1")). These are different from Excel worksheet functions and are not interchangeable.