Excel Formula Return Null: How to Show Blank Cells
In this article
To make an Excel formula return a null (blank) value, wrap the part that would otherwise show an error or a zero in the IF function, or use a function that natively returns an empty string. The simplest working pattern is =IF(A1="","",A1*2), which shows nothing when A1 is empty. For error cases, use =IFERROR(your_formula,""). Both return a truly empty-looking cell rather than the text "null" or a zero.
What You'll Need
- Excel 2016 or later, or Microsoft 365 (the steps also work in Excel for the web and Excel for Mac; labels may differ slightly by version and platform).
- A worksheet with at least one formula you want to return blank.
- Basic familiarity with cell references and the formula bar.
Step-by-Step
- Identify why the formula is not blank. Click the cell and look at the formula bar. If it shows
#N/A,#DIV/0!or another error, you needIFERROR. If it shows0when a source cell is empty, you needIFwith an empty-string test. If it shows the wordnull, the source data literally contains that text, so you need to clean the source or test for it. - For errors, wrap the formula in IFERROR. Select the cell, press F2 (or click the formula bar), and change
=A1/B1to=IFERROR(A1/B1,""). Press Enter. The cell now shows nothing when the calculation fails. The two double quotes with nothing between them are the empty string, which is Excel's closest equivalent to null. - For unwanted zeros, use IF with an empty-string test. Change
=A1*2to=IF(A1="","",A1*2). Press Enter. When A1 is blank, the result is blank; otherwise the multiplication runs normally. Repeat the same pattern for text:=IF(A1="","",UPPER(A1)). - Test for the text "null" explicitly. If a source cell contains the word null, use
=IF(OR(A1="",A1="null"),"",A1). This treats both an empty cell and the literal text as blank. Adjust the comparison to match the exact spelling and case in your data. - Copy the pattern down the column. Drag the fill handle from the bottom-right corner of the edited cell, or copy the cell and paste it into the range below. Relative references adjust automatically, so each row tests its own source cell.
- Confirm the result is truly blank, not a space. Click an affected cell and check the formula bar: it should show only the formula, with no stray space inside the quotes. A space would make the cell look blank but count as text in
COUNTAandISBLANKchecks. - Decide whether you need a real empty cell. Formulas cannot return a true null; they return an empty string. If a downstream tool or pivot table needs genuinely empty cells, copy the formula results, then use Paste Special > Values to replace the formulas, and delete the contents of the cells that show blank. Note that deleting removes the formula, so keep a backup copy of the sheet first.
Common Mistakes
- Typing
NULLornullwithout quotes. Excel treats that as a name and returns#NAME?. The empty string must be two double quotes:"". - Putting a space between the quotes.
" "is not blank; it is a one-character text value that breaksISBLANKand sorting. - Using IFERROR for everything. IFERROR hides all errors, including typos in your own formula. Use it only where a failure is expected, such as a lookup that may not match.
- Forgetting that empty-string results still count as non-empty in some functions.
COUNTAcounts a cell containing""as non-empty, andISBLANKreturns FALSE for it. UseCOUNTBLANKor test=A1=""instead. - Assuming a blank result is a real null for exports. When you export to CSV or connect to another system, the empty string may appear as an empty field or as two quote marks. Check the receiving system's behaviour.
Tips
- Use
IFERRORaround the whole formula, not around individual pieces, so the blank result applies to any failure in the chain. - For lookups,
=IFERROR(VLOOKUP(A1,Sheet2!A:B,2,FALSE),"")is the standard pattern for returning blank when no match exists. - If you want blank instead of zero for arithmetic on empty cells, test the source cells first:
=IF(COUNT(A1:B1)=0,"",SUM(A1:B1)). - To make blank results easier to spot, apply conditional formatting that highlights cells equal to
""while you are building the sheet. - Keep a helper column with the original formula while you test the blank-returning version, so you can compare results side by side.
Troubleshooting
- The cell still shows 0. The formula is probably not wrapped in IF, or the source cell contains a space rather than being empty. Test with
=LEN(A1)=0to confirm true emptiness. - The cell shows
#NAME?. You likely typedNULLwithout quotes or misspelledIFERROR. Check the spelling and use"". - The cell shows
#VALUE!. One of the arguments is the wrong type, often because the empty string was placed where a number is required. Move the""into the result argument of IF, not the test argument. - ISBLANK says FALSE for a cell that looks blank. That is expected for a formula returning
"". Use=A1=""orCOUNTBLANKinstead. - Pivot tables or charts treat the blanks as zero. Replace the formulas with values and clear the blank cells, or set the pivot table to ignore empty strings if the option is available in your version.
- If none of that works, copy the formula into a new blank cell and evaluate it step by step using Formulas > Evaluate Formula (on the Formulas tab; the exact location varies by version). That shows which part produces the unwanted result.
Frequently Asked Questions
Can Excel return a true null value?
No. Excel formulas return an empty string (""), which looks blank but is technically text. A genuinely empty cell has no formula at all.
What is the difference between "" and NULL in Excel?
"" is an empty text string and is valid in a formula. NULL without quotes is not a recognised value and produces #NAME?.
Why does my IF formula return 0 instead of blank?
The source cell is probably not truly empty, or the formula has no explicit blank result. Add "" as the true or false result and test the source with =A1="".
Does IFERROR work in all Excel versions?
IFERROR is available in Excel 2007 and later, including Microsoft 365, Excel for the web and Excel for Mac. Very old versions need IF(ISERROR(...),"",...) instead.
How do I make a blank result stay blank after copying?
Copy the cells, then use Paste Special > Values to replace the formulas with their results, and delete the contents of any cells that show blank. Keep a backup first, because the formulas are lost.
Can I return blank from a lookup when no match is found?
Yes. Wrap the lookup in IFERROR with an empty string as the second argument, for example =IFERROR(VLOOKUP(A1,B:C,2,FALSE),"").