Excel has no ISNULL function. To replicate an "if isnull" test you use ISBLANK for an empty cell, or ISNA and IFNA for a failing lookup, wrapped in an IF statement. The shortest working pattern is =IF(ISBLANK(A2),"Missing",A2), which returns "Missing" when A2 is empty and the cell's own value when it is not. That single line handles most of what people mean by "if isnull" in a spreadsheet, and the rest of this guide covers the variants that catch the cases ISBLANK misses.
What You'll Need
- Any modern desktop version of Excel (Microsoft 365, Excel 2019 or later, or Excel for Mac). The functions here also work in Excel for the web.
- A sheet with at least one column of data to test, and one spare column for the formula.
- A basic understanding that TRUE/FALSE results can sit inside IF as the logical test.
- Familiarity with the difference between an empty cell and a cell containing a formula that returns an empty string. This trips people up constantly and is explained below.
Step-by-Step
- Pick the column that may contain blanks. Suppose your data starts in A2. Click the first empty cell in a neighbouring column, say B2, and type the formula there. On desktop you can also press Alt+= to drop a SUM formula and then overwrite it, but typing directly into the cell is simpler.
- Write the basic blank test. Enter =IF(ISBLANK(A2),"Missing",A2) and press Enter. ISBLANK returns TRUE only when the referenced cell is completely empty — nothing typed, no spaces, no formula. If A2 holds a zero, a space, or an apostrophe, ISBLANK returns FALSE and the original value is shown. The text "Missing" is yours to choose; keep it short so the column stays readable.
- Decide what you want on the true branch. Instead of a label you can return a zero with =IF(ISBLANK(A2),0,A2), a blank-looking result with =IF(ISBLANK(A2),"",A2), or another cell's value. Returning "" keeps the cell tidy but produces an empty text string rather than a genuinely blank cell, which matters later if you count blanks.
- Handle cells that contain an empty string. A formula like =IF(C2="","",C2) in another sheet can leave a cell looking blank while ISBLANK says FALSE. In that case test the text instead: =IF(A2="","Missing",A2). Compare LEN too if you want a strict check: =IF(LEN(A2)=0,"Missing",A2) catches the empty-string case but treats a cell containing one space as non-empty. Choose the test that matches how your data was made.
- Copy the formula down. Drag the fill handle at the bottom-right corner of B2, or double-click it to fill to the end of the adjacent data. Alternatively copy B2, select the range, and press Ctrl+D on Windows or Command+D on Mac.
- Test the FALSE branch. Type something into a blank A-cell and watch B update immediately. Clear the cell with Delete and confirm the TRUE branch appears again. A cell containing a space will not trigger ISBLANK — that is the most common surprise and is covered in the mistakes section.
- Use it to catch failed lookups. "If isnull" in Excel often means "what do I show when VLOOKUP finds nothing?" Wrap the lookup: =IF(ISNA(VLOOKUP(A2,Sheet2!$A$2:$D$100,3,FALSE)),"Not found",VLOOKUP(A2,Sheet2!$A$2:$D$100,3,FALSE)). ISNA returns TRUE only for the #N/A error. Use ISERROR instead if you also want to catch #VALUE! or #REF! mistakes, but be aware it will hide real formula bugs.
- Try the shorter modern option. If you are on Excel 2013 or later, =IFNA(VLOOKUP(A2,Sheet2!$A$2:$D$100,3,FALSE),"Not found") does the same job in one pass and calculates faster than running the lookup twice. In Microsoft 365, =XLOOKUP(A2,Sheet2!$A$2:$A$100,Sheet2!$C$2:$C$100,"Not found") supplies the fallback as its fourth argument with no wrapper at all.
- Combine blank and error handling when both are possible. Nest the tests: =IF(ISBLANK(A2),"No ID",IFNA(VLOOKUP(A2,Sheet2!$A$2:$D$100,3,FALSE),"Not found")). Excel evaluates the outer IF first, so a truly empty cell never reaches the lookup and you avoid a pointless #N/A.
- Check the results before you rely on them. Press Ctrl+` (the key left of 1) to toggle formula view and scan the whole column, then press it again to return to values. Use Ctrl+Home to jump back to A1.
- Convert to values if the formulas must travel. Select the column, copy, then use Paste Special > Values to replace formulas with fixed results. Do this only after you are satisfied with them — the formula logic is lost and cannot be undone with Ctrl+Z once you have closed and reopened the file.
Common Mistakes
- Typing =ISNULL(A2) and getting #NAME?. That function does not exist in Excel. It exists in SQL and in some other spreadsheet languages, which is why people search for it. Use ISBLANK, ISNA or IFNA.
- Assuming ISBLANK catches a cell with a space. It does not. A cell containing " " is text. Trim incoming data first with TRIM, or test =IF(TRIM(A2)="","Missing",A2).
- Forgetting that a zero-length string is not blank. Formulas returning "" look empty but fail ISBLANK. If your source column is itself formula-driven, always test with ="" or LEN instead.
- Comparing with ISNULL-style logic on numbers. ISBLANK never treats 0 as missing. If zero should count as missing, write =IF(OR(ISBLANK(A2),A2=0),"Missing",A2).
- Double-calculating lookups. The ISNA-plus-VLOOKUP pattern runs the lookup twice. On large sheets that visibly slows recalculation; IFNA or the XLOOKUP fallback argument avoids it.
- Catching errors too broadly. ISERROR around a lookup hides genuine broken references and typos, so a correct-looking output column can hide a real problem for weeks.
- Using the wrong reference style. Copying =IF(ISBLANK(A2),...) without dollar signs shifts the reference as intended, but copying the lookup range without $ anchors makes the table range creep down with every row.
Tips
- Name the column of results something obvious like "Status" so anyone reading the sheet understands what "Missing" refers to.
- Use Find & Select > Go To Special > Blanks to locate genuinely empty cells in a range before writing formulas — it is faster than scanning visually and marks all of them at once.
- Conditional formatting on the result column, with a rule such as "Cell Value equal to Missing", makes the gaps stand out far better than a plain text label.
- When you want a count rather than a label, skip IF entirely and use =COUNTBLANK(A2:A100) for truly empty cells, or =COUNTIF(A2:A100,"") when you need to include empty-string results.
- Keep the fallback text consistent. Mixing "Missing", "N/A", "none" and "-" makes later filtering and pivot tables harder to read.
Troubleshooting
If the formula shows #NAME?, the function name is misspelled or you are using ISNULL, which Excel does not have. Check the spelling and switch to ISBLANK or IFNA. If you see #VALUE!, one of the arguments is the wrong type — usually a text fallback where a number is required by a downstream calculation; the label is fine for display but will break any SUM that includes the column.
If the result column looks correct but a COUNT or SUM at the bottom is wrong, the fallback text is being ignored by number functions, which is expected. Wrap the sum area or keep the fallback as 0 where the value feeds a total. If the TRUE branch never appears even though cells look empty, select one of those cells, press F2, and look at the formula bar: anything visible there — a space, an apostrophe, a formula returning "" — explains the FALSE result. Delete the contents and re-test.
If formulas stop updating, check that calculation is set to automatic under Formulas > Calculation Options and that you have not accidentally typed the formula as text by formatting the cell as Text beforehand. Reformat to General and re-enter the formula by pressing F2 then Enter.
If your lookup returns "Not found" for values you know are present, check for leading or trailing spaces in either the source or the lookup table, and confirm that numbers are not stored as text in one place and as numbers in the other. TRIM and VALUE are the usual fixes.
Frequently Asked Questions
Does Excel have an ISNULL function?
No. Excel has ISBLANK for empty cells and ISNA and IFNA for #N/A errors. ISNULL is a SQL function and appears in other database tools, which is why it is often searched for alongside Excel.
What is the difference between ISBLANK and =""?
ISBLANK is TRUE only for a completely empty cell. ="" is TRUE for empty cells and for cells holding a zero-length string produced by a formula. ISBLANK never treats 0 or a space as blank.
How do I return a blank instead of zero for missing values?
Use =IF(ISBLANK(A2),"",A2). The result looks empty but is technically a zero-length text string, so it will not be counted by COUNTBLANK and may break arithmetic that assumes numbers.
Can I use IFERROR instead?
Yes, but carefully. IFERROR catches every error type, including broken references and typos, so it can mask real problems. Use IFNA or ISNA when you only want to handle missing lookup results.
Why does ISBLANK return FALSE for a cell that looks empty?
The cell contains something invisible to the eye: a space, a non-breaking space, an apostrophe, or a formula returning "". Press F2 to inspect the formula bar and remove the hidden content, or switch to a LEN or TRIM test.
Does this work in Google Sheets?
Yes. Google Sheets also lacks ISNULL and supports ISBLANK, ISNA, IFNA, IFERROR and XLOOKUP, so the same formulas carry over with the same behaviour for empty strings and spaces.