Excel: Set Cell to Empty in Formula (Easy Guide)
In this article
To make a formula return an empty cell instead of a zero, a blank, or an error, wrap the result in an IF that outputs an empty string: =IF(A1="","",A1*2). The double quotes with nothing between them ("") produce a zero-length text string that looks blank in the cell. Excel has no true "empty" value you can return from a formula, so "" is the standard workaround. This guide shows exactly where to put it, how to avoid the common traps, and how to make the blank behave like a real empty cell for charts, counts, and lookups.
What You'll Need
- Excel for Microsoft 365, Excel 2021, 2019, or 2016 on Windows or Mac (the steps are the same on both; menu labels can differ slightly by version and region).
- A worksheet with at least one formula you want to blank out conditionally.
- Basic familiarity with cell references (A1, B2) and the IF function.
Step-by-Step
- Identify the condition that should produce a blank. Decide what makes the cell empty. Common triggers: the source cell is empty (
A1=""), the result is zero, or a lookup found nothing. Write that condition down before you touch the formula. - Build the normal formula first. For example,
=A1*2or=VLOOKUP(D1,A:B,2,FALSE). Confirm it works when data is present. This makes debugging much easier than writing everything at once. - Wrap it in IF. The pattern is
=IF(condition, "", normal_formula). So=A1*2becomes=IF(A1="","",A1*2). The two double quotes with nothing inside are the empty string. - Press Enter and test both cases. Type a value in A1 — the formula should calculate. Delete A1 — the cell should look blank. If you see a zero instead, the condition is not matching; check for spaces or formulas returning
""in the source cell. - For lookups, handle not-found results. Wrap VLOOKUP or XLOOKUP in IFERROR and return an empty string:
=IFERROR(VLOOKUP(D1,A:B,2,FALSE),""). This hides #N/A when no match exists. - Copy the formula down. Drag the fill handle or copy and paste. Relative references adjust automatically; use
$if a reference must stay fixed. - Check downstream formulas. A cell containing
""is not truly empty —ISBLANK()returns FALSE andCOUNTBLANK()may not count it. If other formulas depend on the cell being empty, adjust them to test for""as well (see Tips). - Optionally hide zero-length strings. If you want
""results to display as truly blank, go to File > Options > Advanced (Windows) or Excel > Preferences (Mac) and look for the setting that shows zero values in cells; note this only affects zeros, not"". For"", conditional formatting with a white font is the usual visual fix.
Common Mistakes
- Using
" "instead of"". A space inside the quotes is a real character; the cell looks blank butLEN()returns 1 and comparisons fail. Always use two quotes with nothing between them. - Forgetting the comma.
=IF(A1="""",A1*2)is invalid. The empty string must be its own argument:IF(A1="","",A1*2). - Testing with
ISBLANKon a formula cell.ISBLANK(A1)is TRUE only when A1 is genuinely empty. If A1 contains a formula returning"", ISBLANK is FALSE. Use=A1=""instead. - Expecting
""to behave like a deleted cell in charts. Line charts may plot""as zero or connect across it. UseNA()if you want a gap, or set the chart to show empty cells as gaps. - Returning
""from a lookup and then summing. SUM ignores text, so""is fine, but AVERAGE and some array formulas may error. Wrap with IFERROR or filter the range. - Leaving the condition too broad.
=IF(A1="","",A1*2)blanks only when A1 is empty. If A1 contains 0, the result is 0, not blank. AddOR(A1="",A1=0)if zero should also blank.
Tips
- Use
""for display, not for data. If you need a truly empty cell for export or another system, copy the results and paste as values, then use Find & Select > Go To Special > Blanks to delete the""cells. - Combine conditions.
=IF(OR(A1="",B1=""),"",A1+B1)blanks whenever either input is missing. - Use XLOOKUP's built-in if_not_found argument.
=XLOOKUP(D1,A:A,B:B,"")returns blank when no match is found, no IFERROR needed. This is available in Microsoft 365 and Excel 2021. - Test with
LEN().=LEN(A1)returns 0 for""and for a truly empty cell, but 1 for a space. Use it to confirm your blank is clean. - Keep formulas readable. For long formulas, use Alt+Enter (Windows) or Ctrl+Option+Enter (Mac) to add line breaks inside the formula bar.
Troubleshooting
- Formula shows 0 instead of blank. The condition is not matching. Check the source cell for trailing spaces with
=LEN(A1), or for a formula returning""— in that case testA1=""rather thanISBLANK(A1). - #VALUE! error. Usually a missing comma or mismatched quotes. Count the quotes: each string needs an opening and closing quote, and
""counts as two. - Blank cells still show in charts. Select the chart, open Chart Design > Select Data, and check how empty cells are plotted. Set to gaps if you want a break.
- COUNTBLANK does not count your blanks. COUNTBLANK counts truly empty cells and cells with
""in most versions, but results vary with array formulas. Use=SUMPRODUCT(--(A1:A10=""))for a reliable count. - Paste Special breaks. If you copy a formula returning
""and paste as values, the cell contains an empty string, not a blank. Delete those cells with Go To Special > Blanks if another system needs true blanks.
Frequently Asked Questions
Can a formula return a truly empty cell in Excel?
No. Excel formulas can only return values, and the closest to empty is the zero-length string "". It looks blank but is technically text. To get a genuinely empty cell, you must delete the cell contents or paste values and clear the "" entries.
Why does ISBLANK return FALSE for my blank-looking cell?
Because the cell contains a formula that returns "". ISBLANK only returns TRUE for cells with nothing in them. Use =A1="" to test for both empty cells and "" results.
How do I make a VLOOKUP show blank instead of #N/A?
Wrap it: =IFERROR(VLOOKUP(D1,A:B,2,FALSE),""). In Microsoft 365 and Excel 2021, XLOOKUP has a built-in if_not_found argument: =XLOOKUP(D1,A:A,B:B,"").
Does "" affect SUM and AVERAGE?
SUM ignores text, so "" does not change the total. AVERAGE also ignores text in a range, but if you feed a single "" cell directly into AVERAGE you may get a #DIV/0! error. Use IFERROR or filter the range.
How do I return blank when the result is zero?
Use =IF(A1*2=0,"",A1*2) or set the cell's number format to 0;-0;;@ to hide zeros without changing the value. The number format is display-only; the underlying zero remains.
Can I use "" in conditional formatting?
Yes. Create a rule with the formula =A1="" to format cells that look blank, including those returning "". This is useful for shading or borders on empty rows.