Quick formula: preserve real zeros
For a genuinely empty source cell A1, use =IF(ISBLANK(A1),"",A1). If A1 contains a formula returning "", ISBLANK returns FALSE because the cell contains a formula. To treat both true blanks and empty-string results as visually blank, consider =IF(A1="","",A1); test it on real zero values and text before applying across a workbook.
Why Do Blank Cells Show as Zero in Excel?
In Excel, a formula such as =A1 can display 0 when A1 is empty. If you want the result to appear blank, you can use an IF formula, custom number formatting, or display settings. Each method behaves differently, especially when the source contains a real zero or a formula returning an empty string.
Choose a method based on whether you want to preserve genuine numeric zeros, hide all zeros visually, or change the underlying data. A formula returning "" looks blank but is not a truly empty cell.
Solutions
Method 1: IF and ISBLANK Functions (Excel 2003 and above)
A straightforward way to display blanks instead of zeros is by using the IF and ISBLANK functions. This method tells Excel to check if a referenced cell is empty before returning a value.
Formula: =IF(ISBLANK(A1),"",A1)
In this example, if cell A1 is blank, Excel will display nothing (""). Otherwise, it displays the content of A1.
Method 2: IF to hide zero values (including real zeros)
If you want a simpler version, you can use an IF formula to test for non-zero values.
Formula: =IF(A1<>0,A1,"")
This formula hides all zero values, including genuine numeric zeros; use it only when that behavior is intentional. To hide an actually empty cell but preserve a real zero, use =IF(ISBLANK(A1),"",A1).
Method 3: Custom Number Formatting (All version)
If you want to avoid formulas, custom number formatting offers a fast, formula-free solution to hide zero values.
- Select the cells you want to format.
- Right click and select Format Cells > Number > Custom or Go to home and click arrow as shown below and go to Number and select Custom.

- Enter the format:
0;-0;;@
This custom format displays positive numbers normally, negative numbers with a minus, and hides numeric zeros visually. The zeros remain in the cells and in calculations. It does not distinguish a zero from a formula referencing an empty cell.
Method 4: Adjust Excel Settings (Global setting for all versions)
For an entire worksheet, use Excel’s advanced options to prevent zero values from appearing as blanks:
- Go to File > Options > Advanced.
- Under Display options for this worksheet, uncheck Show a zero in cells that have zero value and click Ok

This worksheet-level option hides displayed numeric zeros, including genuine zeros. It does not delete values. The illustrated path is for desktop Excel on Windows; controls may differ in Excel for Mac and Excel for the web.
Method 5: Conditional Formatting (hide zero)
For flexible control, conditional formatting can hide zeros without changing formulas.
- Select your cells and go to Home > Conditional Formatting > New Rule.

- Choose Format only cells that contain, set the condition to equal to 0 and click Format…

- Format the font color to match the background (e.g., white) and click Ok.

This method can be customized for specific cell ranges but may slow down large sheets.
Method 6: Use Concatenation with an Empty String (All version)
Concatenation is a formula-based workaround, not a number-format setting. It converts the referenced value to text and may change downstream calculations or sorting.
Formula: =A1&""
Appending &"" tells Excel to treat the value as text, which remains blank if the cell is empty.
Method 7: Create VBA Macro (All version)
Warning: this macro permanently deletes selected cell contents, including legitimate zero values and potentially formulas. It is not recommended merely to hide zeros. Save a backup and select a small test range before considering any destructive macro.
Sub ClearZeroValues()
Dim cell As Range
For Each cell In Selection
If cell.Value = 0 Then cell.ClearContents
Next cell
End SubThe legacy macro above is retained for reference, not recommended for routine use. It can also fail on error-valued cells or mixed selections. Prefer custom number formatting for display-only changes, or an IF formula to preserve real zeros. Never run the macro on the only copy of your data.
Troubleshooting and FAQs
Why Do My Cells Still Show Zeros?
If zeros are still showing, check for formatting conflicts or confirm the worksheet settings are applied correctly. Make sure to verify that the IF or ISBLANK formula is used consistently across related cells.
Can I Apply These Settings to a Pivot Table?
Yes, you can adjust PivotTable options to hide blank cells. In PivotTable Options > Layout & Format, select For empty cells show and leave the box blank to display cells as empty instead of zero.
What Is the Best Method for Large Datasets?
For large datasets, prefer custom number formatting when hiding all zeros is acceptable. Use targeted IF formulas when you must distinguish true blanks from real zeros. Avoid the destructive VBA macro for display-only tasks.
Can I Display Text Instead of Blanks?
Absolutely! Modify any IF formula to return specific text like "N/A" or "Missing Data" by replacing the empty quotes with your desired text
=IF(ISBLANK(A1),"N/A",A1)
Using these approaches, you can create more readable Excel sheets that avoid unnecessary clutter from zeros in blank cell references. Experiment with each method to find what best suits your workflow and dataset size.
Related Posts
Important: blank-looking cells are not always empty
A cell containing a formula that returns an empty string is not physically empty. ISBLANK and COUNTA may therefore behave differently from what the display suggests. Custom number formatting hides values visually but does not remove them from calculations. Worksheet display settings can hide zeros broadly, including legitimate zeros; prefer a targeted formula when only a few referenced cells need special treatment.

C P Gupta is a YouTuber and Blogger. He is expert in Microsoft Word, Excel and PowerPoint. His YouTube channel @pickupbrain is very popular and has crossed 9.9 Million Views.






