Make HLOOKUP Return a Blank Instead of Zero in Excel
Question details
Display a blank instead of zero when an HLOOKUP formula refers to an empty source cell.

- 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.
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.
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.
In Excel, select the cell containing the HLOOKUP formula and click the formula bar.
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.
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.

Use a helper column to hide zero results
Use a separate display cell if you prefer to keep the original HLOOKUP formula unchanged.
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. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
- 2. Select the lookup cell: Click the cell containing the HLOOKUP formula, then click the formula bar.
- 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. Save and test: Check a lookup that points to an empty source cell, then choose File > Save to save the workbook.

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.




