Display a Blank Instead of 0 for Empty Referenced Cells in Excel
Question details
Display a blank result instead of 0 when an Excel formula references an empty cell.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A report references cells on another worksheet and should appear blank when the source cells are empty.
- Observed behavior
- A direct reference such as =Sheet1!C2 displays 0 when the source cell is empty.
Identify the destination formula and the source sheet and cell it references. Check whether the source cell is truly empty or contains a space, since a space counts as content.
Use IF and LEN to return a blank for an empty source cell
Use this formula to hide the result of an empty reference while still displaying a real zero from the source cell.
In Excel, select the cell containing the direct reference, such as =Sheet1!C2.
In the formula bar, enter =IF(LEN(Sheet1!C2)=0,"",Sheet1!C2), replacing Sheet1!C2 with your source reference in both places.
Press Enter. The destination should appear blank when the source is empty and show its value when it contains data.

Show blank referenced cells in WPS Spreadsheet
Use the same IF and LEN formula in WPS Spreadsheet to keep empty source cells from appearing as zeros in your report.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select your workbook.
- 2. Select the destination: Click the cell where you want to display the referenced value.
- 3. Enter the formula: In the formula bar, enter =IF(LEN(Sheet1!C2)=0,"",Sheet1!C2), changing both references to match your source cell.
- 4. Confirm the result: Press Enter and check that the destination appears blank when the source cell is empty.

Frequently Asked Questions
Why does a reference to an empty Excel cell show 0?
A direct formula such as =Sheet1!C2 can evaluate an empty source cell as zero. Wrap the reference in =IF(LEN(Sheet1!C2)=0,"",Sheet1!C2) to display a blank instead.
Will the formula hide a real zero in the source cell?
No. A numeric zero has a length of one when evaluated by LEN, so the formula returns and displays the zero.
What if the source cell contains a formula that returns an empty string?
LEN returns zero for an empty string, so the IF formula displays a blank in the destination cell.
How do I reference a sheet name that contains spaces?
Enclose the sheet name in single quotes in both references, for example: =IF(LEN('Sales Report'!C2)=0,"",'Sales Report'!C2).




