How to Hide Excel #N/A Errors with IFERROR in Lookups
Question details
The user wants to hide #N/A errors generated by an Excel lookup formula that searches multiple columns, ensuring the cell remains blank when no match is found.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Performing a multi-column lookup for a part number where some cells might be blank or lack a matching entry in either lookup column.
- Observed behavior
- The formula returns an #N/A error instead of a clean, blank cell when both the primary and fallback lookups fail to find a match.
Verify your base VLOOKUP or INDEX/MATCH formulas are working correctly for existing data before wrapping them in error-handling functions.
Use Nested IFERROR Functions for Multiple Lookups
Wrap each fallback lookup in an IFERROR function to catch all #N/A errors and output a clean blank cell.
When searching across multiple columns (like a standard part number and an OEM part number), a single IFERROR is not enough if the fallback lookup also fails. Nesting a second IFERROR ensures both lookup attempts are covered.
Select the cell containing your combined lookup formulas.
Modify the formula to start with IFERROR. For example: =IFERROR(INDEX(Pricing!F:F, MATCH(B25, Pricing!A:A, 0)), ...)
In the 'value_if_error' argument of the first IFERROR, place your second lookup formula and wrap it in another IFERROR.
At the end of the second IFERROR, use double quotes ("") to return a blank cell. The final formula should look like: =IFERROR(INDEX(Pricing!F:F,MATCH(B25,Pricing!A:A,0)), IFERROR(INDEX(Pricing!F:F,MATCH(B25,Pricing!B:B,0)), ""))
Press Enter to save the formula, then drag the fill handle down to apply it to the rest of your column.

Use a Single IFERROR for Basic Lookups
If you are only searching a single column, you only need one IFERROR function to hide the #N/A error.
Fix Formula Errors Easily in WPS Spreadsheet
WPS Office fully supports advanced Excel functions, including nested IFERROR, INDEX, and MATCH. You can handle complex data lookups smoothly, keeping your spreadsheets clean and error-free.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the file containing the #N/A errors.
- 2. Edit the formula: Click on the cell with the error and go to the formula bar.
- 3. Apply IFERROR: Type =IFERROR( before your lookup formula, add , "") at the end, and press Enter to hide the error.

Frequently Asked Questions
Why does my INDEX/MATCH formula return #N/A?
The #N/A error occurs when the MATCH function cannot find the specified lookup value within the search array. It commonly happens if the source cell is blank, contains extra spaces, or the item truly does not exist in your data list.
Can I use IFNA instead of IFERROR?
Yes. IFNA specifically targets only #N/A errors, whereas IFERROR catches all formula errors (such as #DIV/0!, #REF!, or #VALUE!). If you only want to hide missing lookup results but still want to be alerted to other mathematical or structural errors, IFNA is the better choice.
How do I make the formula return 'Not Found' instead of a blank cell?
In the last argument of your IFERROR or IFNA function, replace the empty double quotes ("") with your desired text enclosed in quotes. For example, use =IFERROR(your_formula, "Not Found").




