How to Create a VLOOKUP Formula That Returns a Blank If Not Found
Question details
The user needs a single VLOOKUP formula that retrieves a previous drawing revision with a comment or leaves the cell completely blank if no revision exists.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Looking up values from another sheet or external workbook and avoiding the default error messages when the lookup value does not exist.
- Observed behavior
- A standard VLOOKUP returns an #N/A error when there is no match, but the goal is to output an empty cell or specific text instead.
Verify that your lookup value and table array ranges are correctly referenced, and decide whether you want the cell to appear completely empty or display custom text when the lookup fails.
Use the IFERROR Function with VLOOKUP
Wrap your VLOOKUP formula inside an IFERROR function to replace the default #N/A error with a blank cell or custom text strings.
The IFERROR function evaluates a formula and returns a specified value if the formula results in an error. By setting the specified value to empty quotation marks (""), you force the cell to remain blank when VLOOKUP cannot find a match.
Click on the cell where you want the result to appear, such as cell J4.
Type the formula =IFERROR("Previous Version: "&VLOOKUP($C$2,'Order Log'!$B:$BK,MATCH('Formula Drivers'!A11,'Order Log'!$B$2:$BK$2,0),0),"") into the formula bar.
Press the Enter key. The cell will now display the VLOOKUP result with the text prefix, or it will remain completely blank if no matching record is found.

Multiply VLOOKUP Results While Returning Blank on Error
If you need to multiply the VLOOKUP result by another cell (like a quantity) while still avoiding error messages, structure the formula to handle the math inside the IFERROR wrapper.
Master VLOOKUP and Data Analysis with WPS Spreadsheet
WPS Spreadsheet provides powerful tools and functions, allowing you to easily manage complex data lookups, handle errors, and automate your workflows without the high costs of traditional software.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your data workbook.
- 2. Initiate the formula: Click the cell where you want the formula and type =IFERROR( to start handling potential errors.
- 3. Insert VLOOKUP: Add your VLOOKUP formula as the first argument, followed by a comma.
- 4. Define the error output: Type "") to tell WPS Spreadsheet to output a blank cell on error, then press Enter.

Frequently Asked Questions
Why does my standard VLOOKUP return an #N/A error?
The #N/A error indicates that the VLOOKUP function cannot find the exact lookup value in the first column of your specified table array. This commonly happens if the data doesn't exist, contains trailing spaces, or if the formatting is mismatched.
Can I return a 0 instead of a blank cell when a VLOOKUP fails?
Yes. In the formula =IFERROR(VLOOKUP(...), ""), simply replace the empty quotation marks "" with a 0. The formula will then display a zero when the lookup value is not found.
Does IFERROR hide all errors in the formula?
Yes, IFERROR catches all standard spreadsheet formula errors including #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, and #NULL!. While helpful for cleaning up a sheet, use it carefully so it doesn't mask genuine syntax or reference errors that need fixing.
Can I use IFNA instead of IFERROR?
Yes, using =IFNA(VLOOKUP(...), "") is an excellent alternative. IFNA specifically targets the #N/A error, leaving other errors (like #REF! or #DIV/0!) visible, which makes troubleshooting other parts of your spreadsheet easier.




