Hide VLOOKUP #N/A Errors in Excel
Question details
The user wants to hide #N/A errors returned by VLOOKUP when the lookup cell is blank.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet uses VLOOKUP to find values, but some lookup cells are empty.
- Observed behavior
- The VLOOKUP formula displays #N/A when a lookup cell is blank.
Identify the cell containing the VLOOKUP formula and the cell it uses as the lookup value. Note the existing lookup range and column number so you can preserve them when editing the formula.
Use IFERROR to return a blank instead of an error
Use this approach to replace VLOOKUP errors with an empty string rather than hiding them with formatting.
Click the cell showing #N/A, then select its formula in the formula bar.
Change the formula to =IFERROR(VLOOKUP(A2,$E$2:$F$100,2,FALSE),""). Replace the example VLOOKUP arguments with those from your existing formula.
Press Enter, then drag the cell's fill handle down if other rows need the same formula.

Hide #N/A text with conditional formatting
Use this method if you want to keep the existing VLOOKUP formula and hide the displayed #N/A text.
Hide VLOOKUP errors in WPS Spreadsheets
Use IFERROR in WPS Spreadsheets to display an empty string instead of a VLOOKUP error, then save your workbook in an Excel-compatible format.
- 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your workbook.
- 2. Edit the lookup formula: Select the cell containing VLOOKUP and edit it in the formula bar to use =IFERROR(VLOOKUP(A2,$E$2:$F$100,2,FALSE),""). Substitute your existing lookup arguments.
- 3. Apply the change: Press Enter and drag the fill handle down to apply the formula to other rows if needed.
- 4. Save the workbook: Choose Menu > Save As and select XLSX if you want to save an Excel-compatible copy.

Frequently Asked Questions
Why does VLOOKUP return #N/A for a blank lookup cell?
VLOOKUP returns #N/A when it cannot find the lookup value in the first column of the lookup range. A blank lookup cell can therefore produce #N/A if no matching blank is found.
Can I hide errors only when the lookup cell is blank?
Yes. Use an IF check before VLOOKUP, such as =IF(A2="","",VLOOKUP(A2,$E$2:$F$100,2,FALSE)). Replace the references with your own. Errors for nonblank lookups remain visible.
Does conditional formatting remove the #N/A error?
No. A conditional formatting rule can make the error text match the background, but the cell still contains #N/A and other formulas can still encounter it.
Will IFERROR hide errors other than #N/A?
Yes. IFERROR replaces any error returned by the wrapped formula. If you only want to replace #N/A, you can use IFNA instead, where supported.




