Function Problems

Make HLOOKUP Return a Blank Instead of Zero in Excel

Steven ParkerSteven Parker Nov 20, 2026 869 views

Question details

Display a blank instead of zero when an HLOOKUP formula refers to an empty source cell.

Make HLOOKUP Return a Blank Instead of Zero in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet uses HLOOKUP and MATCH to retrieve a rating from a table.
Observed behavior
The formula displays 0 for an empty source cell, and wrapping the lookup in IFERROR does not remove it.
Before you start

Locate the cell containing the HLOOKUP formula and check the source table and lookup references. Decide whether legitimate zero values should remain visible, because the zero-check methods below hide all zero results.

Solution 1Recommended

Wrap HLOOKUP in an IF zero check

Use this method to display a blank whenever the lookup result is zero, without adding a helper column.

1
Select the formula cell

In Excel, select the cell containing the HLOOKUP formula and click the formula bar.

2
Add the zero check

Replace the formula with =IF(HLOOKUP(Instructor!C6,'Rating Tables'!A3:H17,MATCH(Instructor!A13,'Rating Tables'!A3:A17,0),0)=0,"",HLOOKUP(Instructor!C6,'Rating Tables'!A3:H17,MATCH(Instructor!A13,'Rating Tables'!A3:A17,0),0)). Adjust the sheet names and references if your workbook differs.

3
Check the result

Press Enter and test the cell against an empty source cell and a populated source cell. The formula displays an empty string for a zero result.

Wrap HLOOKUP in an IF zero check
Legitimate zeros are hidden too: This formula cannot distinguish a zero returned from an empty source cell from a genuine numeric zero. Lookup errors, such as #N/A, are not hidden by the zero check.
WPS Spreadsheets

Display Blank HLOOKUP Results in WPS Spreadsheets

Open the workbook in WPS Spreadsheets and wrap its HLOOKUP formula in an IF zero check to display a blank instead of zero.

  1. 1. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
  2. 2. Select the lookup cell: Click the cell containing the HLOOKUP formula, then click the formula bar.
  3. 3. Wrap the formula: Change the formula to the pattern =IF(HLOOKUP(...)=0,"",HLOOKUP(...)), replacing both HLOOKUP expressions with your complete original formula, and press Enter.
  4. 4. Save and test: Check a lookup that points to an empty source cell, then choose File > Save to save the workbook.
Hide zero results from HLOOKUP with a familiar IF formulaOpen and edit Microsoft Excel XLSX and XLS filesUse a helper column when you want to keep the original lookup formula
microsoft office alternative - wps office

Frequently Asked Questions

Why does IFERROR leave the zero in my HLOOKUP result?

IFERROR replaces errors such as #N/A, but zero is a valid result rather than an error. Use an IF zero check if you want to hide zero results.

Will the IF zero check also hide real zero values?

Yes. Both =IF(A2=0,"",A2) and the equivalent HLOOKUP wrapper hide genuine numeric zeros as well as zeros produced by empty source cells.

How can I hide lookup errors as well as zeros?

Wrap the zero-check formula in IFERROR, for example =IFERROR(IF(A2=0,"",A2),""). This also hides errors in the referenced cell, so check the lookup separately if an unexpected blank appears.

Is the result of the IF formula a truly empty cell?

No. The formula returns an empty string, represented by "". The cell still contains a formula, which can matter to other formulas that test whether a cell is empty.