Formula Errors

Hide VLOOKUP #N/A Errors in Excel

Jason MillerJason Miller Nov 20, 2026 868 views

Question details

The user wants to hide #N/A errors returned by VLOOKUP when the lookup cell is blank.

Hide VLOOKUP #N/A Errors in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the formula cell

Click the cell showing #N/A, then select its formula in the formula bar.

2
Wrap the formula in IFERROR

Change the formula to =IFERROR(VLOOKUP(A2,$E$2:$F$100,2,FALSE),""). Replace the example VLOOKUP arguments with those from your existing formula.

3
Apply the formula

Press Enter, then drag the cell's fill handle down if other rows need the same formula.

Use IFERROR to return a blank instead of an error
IFERROR hides all formula errors: IFERROR also hides errors unrelated to a blank lookup cell. To leave only blank lookup cells empty while keeping other errors visible, use =IF(A2="","",VLOOKUP(A2,$E$2:$F$100,2,FALSE)) with your own lookup arguments.
Work with spreadsheets in WPS Office

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. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your workbook.
  2. 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. 3. Apply the change: Press Enter and drag the fill handle down to apply the formula to other rows if needed.
  4. 4. Save the workbook: Choose Menu > Save As and select XLSX if you want to save an Excel-compatible copy.
Replace VLOOKUP errors with a blank display using IFERROROpen and save Microsoft Excel XLSX filesEdit spreadsheet formulas in a familiar interfaceUse WPS Office for free
microsoft office alternative - wps office

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.