To make a cell appear empty using a formula, use an IF formula that returns an empty string: =IF(condition, "", value). When the condition is met, the cell displays nothing, even though it technically contains a formula. This is useful for hiding zero results, blanking out rows until data is entered, or cleaning up reports. You will need Excel 2016 or later (or Microsoft 365) on Windows or Mac; the steps below apply to both, though menu labels can differ slightly by version and region.
What You'll Need
- Excel 2016 or later, or Microsoft 365 (Windows or Mac). The same formulas work in Excel for the web.
- A worksheet with data and a cell where you want the formula result.
- Basic familiarity with entering formulas and copying them down a column.
Step-by-Step
- Decide the condition for emptiness. For example, show a value only when a source cell is not blank, or when a calculation result is zero. Write the condition as a logical test, such as
A2=""orB2=0. - Enter the IF formula in the target cell. Click the cell, type
=IF(, then the condition, a comma, two double quotes with nothing between them (""), a comma, and the value to show when the condition is false. Close the parenthesis and press Enter. Example:=IF(A2="", "", A2*2). This returns an empty-looking cell when A2 is blank, otherwise twice the value. - Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down the column, or copy the cell and paste it into the range below. Relative references adjust automatically.
- Check the result. The cell should look blank when the condition is true. Click it and look at the formula bar: you will see the formula, not an empty cell. That is expected because the cell contains a formula that returns an empty string.
- Optional: hide zero results. If you want zeros to appear blank, wrap the calculation:
=IF(SUM(B2:B10)=0, "", SUM(B2:B10)). Replace SUM with your actual function. - Optional: use ISBLANK for true blanks. To distinguish an empty cell from one containing an empty string, use
=IF(ISBLANK(A2), "", A2). ISBLANK returns TRUE only for truly empty cells, not for cells with formulas returning "". - Format if needed. If the empty string still shows a border or fill, clear the cell's fill color or border formatting. The formula does not remove formatting.
Common Mistakes
- Using a space instead of empty quotes. Typing
" "(a space) makes the cell look blank but it is not empty; formulas like COUNTA will count it. Use""with no space. - Expecting the cell to be truly blank. A formula returning "" is not the same as an empty cell. Functions like ISBLANK return FALSE for it. If you need a truly empty cell, you must delete the formula or use a different approach (such as filtering and clearing contents).
- Forgetting to copy the formula. Entering the formula in one cell only affects that cell. Copy it down to apply the logic to other rows.
- Mismatched parentheses or commas. Excel will show an error or suggest a correction. Count the opening and closing parentheses and ensure commas separate arguments correctly.
- Using the wrong condition. For example, checking
A2=0when you meantA2="". Test with a few sample rows to confirm the logic.
Tips
- Use
IFERRORto handle errors and show blank instead:=IFERROR(A2/B2, ""). This returns an empty string when division by zero or another error occurs. - To make an entire column appear empty until data is entered, combine IF with a check for blank:
=IF(A2="", "", A2*2)and fill down. The formula stays ready for when data arrives. - If you need to count non-empty cells but your formulas return "", use
COUNTIF(range, "<>")to count cells that are not empty strings. Note that this counts cells with any content, including formulas returning "". - For conditional formatting, you can set a rule to hide the font color when the cell contains "". This makes the cell appear blank even if it has a value.
- Remember that empty strings can affect sorting and filtering. Filtering for blanks may not include cells with "" formulas; use a helper column with
=LEN(A2)=0to identify them.
Troubleshooting
- The cell does not look empty. Check for a space between the quotes. Also check cell formatting: a fill color or border will still show. Clear formatting if needed.
- Formula returns an error. Verify the syntax:
=IF(condition, "", value). Ensure you have commas, not semicolons (unless your region uses semicolons as separators; Excel adjusts automatically based on regional settings). - The empty string is treated as text in calculations. Some functions like SUM ignore text, but others like AVERAGE may error. Wrap the formula in
IFERRORor useN()to convert to zero where appropriate. - You need a truly empty cell for a chart or pivot table. A formula returning "" may still appear as a category. Consider filtering out those rows or using a different layout. Alternatively, copy the formula results and paste as values, then delete the ones you want empty.
- ISBLANK returns FALSE for your formula cell. That is correct because the cell contains a formula. Use
=A2=""to test for empty string instead.
Frequently Asked Questions
Can I make a cell empty with a formula without using IF?
Yes, you can use other functions that return an empty string, such as =IFERROR(1/0, "") or =REPT("", 1), but IF is the most straightforward and readable method.
Why does my formula cell look empty but still count in COUNTA?
COUNTA counts any cell that is not truly empty, including cells with formulas that return "". To count only non-blank text or numbers, use COUNTIF with criteria like "<>" or check with LEN.
How do I make a cell empty based on another cell's value?
Use an IF formula that references the other cell: =IF(A2="Yes", "", "No"). Adjust the condition and return values as needed.
Does an empty string formula work in Excel for the web?
Yes, the same IF formula and empty string syntax work in Excel for the web, with the same behavior.
Can I use conditional formatting to hide the formula result?
Yes, you can set a conditional formatting rule that applies white font color when the cell contains "". This makes the cell appear blank, but the formula still exists.
What is the difference between an empty string and a blank cell?
An empty string is a text value of zero length returned by a formula; a blank cell contains nothing at all. Functions like ISBLANK return TRUE only for truly blank cells.