Excel Formula Return Empty Cell: Step-by-Step Guide
In this article
To make an Excel formula return an empty cell, wrap the result in IF so that when a condition is met, the formula outputs "" (two double quotes with nothing between them). For example, =IF(A1="","",A1*2) returns blank when A1 is blank, and the calculated value otherwise. This keeps your sheet clean, prevents zeros or errors from cluttering reports, and stops downstream formulas from treating blanks as zeros. You do not need any special add-in—just Excel and a basic formula.
What You'll Need
- Microsoft Excel (any recent version for Windows, Mac, or the web).
- A worksheet with the data you want to test.
- Basic familiarity with entering formulas and using the formula bar.
Step-by-Step
- Identify the condition for “empty.” Decide when the formula should return blank. Common triggers: the source cell is blank (
A1=""), a calculation would produce zero, or an error would occur. Write that condition down before building the formula. - Start with an IF function. In the target cell, type
=IF(. The IF function takes three arguments: the logical test, the value if true, and the value if false. For a blank result, the “value if true” will be"". - Enter the logical test. For example, to check if A1 is empty, type
A1="". Note that this treats cells containing only spaces as non-empty; to catch spaces, useTRIM(A1)=""instead. - Set the true result to an empty string. After the comma, type
""(two double quotes). This is what makes the cell appear blank. Do not type a space between the quotes—that would return a space character, not a true blank. - Set the false result to your desired output. After the next comma, enter the value or calculation you want when the condition is not met. For example,
A1*2orVLOOKUP(...). Close the parenthesis and press Enter. Your complete formula might look like=IF(A1="","",A1*2). - Copy the formula down or across. Drag the fill handle to apply it to other rows. Relative references will adjust automatically. If you need absolute references, use
$signs (e.g.,$A$1). - Verify the result. Clear the source cell and confirm the formula cell becomes blank. Enter a value and confirm the calculated result appears. If you see
0instead of blank, check that you used""and not0or a space. - Handle errors with IFERROR (optional). If your false result might produce an error (e.g., division by zero), wrap the whole formula in
IFERROR:=IFERROR(IF(A1="","",1/A1),""). This returns blank for both empty input and errors. - Use the result in further calculations. Remember that a cell containing
""is not truly empty—it contains a zero-length text string. Functions likeISBLANKwill return FALSE for it. If downstream formulas need to treat it as blank, useCOUNTBLANKor check with=A1="".
Common Mistakes
- Using a space instead of empty quotes.
" "returns a space, which looks blank but is not. Always use""with no space. - Forgetting the false argument. If you omit the third argument, Excel returns FALSE when the condition is not met. Always include a value or calculation for the false branch.
- Assuming ISBLANK works on formula results.
ISBLANKreturns FALSE for a cell containing""because it is not truly empty. Use=A1=""to test for blank-looking results. - Mixing up empty text with zero. A formula like
=IF(A1="","",0)returns 0, not blank. Double-check your true/false branches. - Not accounting for spaces in source cells. A cell with a space is not empty. Use
TRIMorCLEANto normalize data before testing.
Tips
- Use
IFERRORaround your formula to catch unexpected errors and return blank, keeping reports tidy. - To return blank when a calculation results in zero, use
=IF(A1=0,"",A1)or set the worksheet to not display zero values (File > Options > Advanced > Display options for this worksheet). - When using
VLOOKUPorXLOOKUP, wrap them inIFto return blank if the lookup value is empty:=IF(A1="","",VLOOKUP(A1,...)). - For dynamic arrays in Excel 365, use
IFwith a range to spill results, e.g.,=IF(A1:A10="","",A1:A10*2). - Remember that blank-returning formulas still count as non-empty for functions like
COUNTA. UseCOUNTBLANKto count truly empty cells.
Troubleshooting
- Formula returns 0 instead of blank. Check that you used
""and not0or a space. Also ensure the logical test is correct—if the condition is never true, the false result appears. - Cell looks blank but formulas treat it as text. This is expected:
""is a zero-length string. Use=A1=""to test for it, or useIF(A1="",...in downstream formulas. - ISBLANK returns FALSE for a blank-looking cell. That cell likely contains a formula returning
"". ISBLANK only works on truly empty cells. UseLEN(A1)=0to test for zero-length content. - Formula shows an error instead of blank. Wrap the formula in
IFERRORto catch errors and return"". - Blank result not copying correctly. Ensure relative and absolute references are set as needed. Use
$to lock rows or columns.
Frequently Asked Questions
How do I return an empty cell from a formula in Excel?
Use IF with "" as the true result: =IF(condition,"",value_if_false). This outputs a zero-length string that appears blank.
Why does my formula return 0 instead of blank?
You likely used 0 or a space instead of "", or the logical test is never true. Check the formula's arguments.
Can I make VLOOKUP return blank instead of #N/A?
Yes, wrap it in IFERROR: =IFERROR(VLOOKUP(...),""). This returns blank when the lookup fails.
What is the difference between an empty string and a truly empty cell?
An empty string ("") is text with zero characters; a truly empty cell contains nothing. Functions like ISBLANK distinguish them, but most calculations treat both as zero.
How do I return blank when a cell contains only spaces?
Use TRIM in the test: =IF(TRIM(A1)="","",A1). This removes leading/trailing spaces before checking.
Does returning "" affect sorting or filtering?
Yes, zero-length strings are treated as text and may sort differently than true blanks. For critical sorting, consider using true blanks via manual entry or Power Query.