Formula Errors

Display a Blank Instead of 0 for Empty Referenced Cells in Excel

Steve KSteve K Nov 27, 2026 869 views

Question details

Display a blank result instead of 0 when an Excel formula references an empty cell.

Display a Blank Instead of 0 for Empty Referenced Cells in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the destination cell

In Excel, select the cell containing the direct reference, such as =Sheet1!C2.

2
Replace the formula

In the formula bar, enter =IF(LEN(Sheet1!C2)=0,"",Sheet1!C2), replacing Sheet1!C2 with your source reference in both places.

3
Apply and check the result

Press Enter. The destination should appear blank when the source is empty and show its value when it contains data.

Use IF and LEN to return a blank for an empty source cell
Formula-generated blanks: The formula also displays a blank if the source contains a formula that returns an empty string. If the source contains a space, it is not treated as empty.
WPS Spreadsheet

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. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your workbook.
  2. 2. Select the destination: Click the cell where you want to display the referenced value.
  3. 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. 4. Confirm the result: Press Enter and check that the destination appears blank when the source cell is empty.
Display blanks for empty references while preserving actual zero valuesOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and worksheetsCreate and edit spreadsheets for free
QA img-9

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).