Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to ignore errors with Vlookup function in Excel?

Normally if error cells exist in a reference table, the Vlookup function will return the errors too. See the screen shot below. Some users may not want to show the errors in the new table, therefore, how to ignore errors of original reference table when applying Vlookup function in Excel? Here we recommend two methods to solve it quickly.

doc vlookup error 1

Ignore errors with Vlookup by modifying original reference table

Ignore errors with Vlookup by combining Vlookup and IF functions

Easily replace formula errors with blank or certain text strings in Excel

Sometimes, formulas may return errors in Excel. In this case, you can apply Kutools for Excel's Error Condition Wizard feature to easily replace the formula errors with blank, with any text strings, or text string in the specified cell as you need. Full Feature Free Trial 60-day!

ad error conditon wizard blank

arrow blue right bubbleIgnore errors with Vlookup by modifying original reference table

This method will walk you through changing the original reference table and get a new column/table without error values, and then applying the Vlookup function in this new column/table in Excel.

Step 1: Besides original reference table, insert a blank column and enter a column name for it.

In our case, I insert a blank column right to Age column, and enter the column name of Age (Ignore Error) in the Cell D1.

Step 2: Now in the Cell D2 enter =IF(ISERROR(C2),"",C2), and then drag the Fill Handle to the range you need.

doc vlookup error 2

Now in the new Age (Ignore Error) column, the error cells are replaced by blank.

Step 3: Now go to the cell (Cell G2 in our case) where you will get the vlookup values, enter the formula =VLOOKUP(F2,$A$2:$D$9,4,FALSE), and drag the Fill Handle to the range you need.

doc vlookup error 3

Now you will see if it's error in the original reference table, the Vlookup Function will return blank.

arrow blue right bubbleIgnore errors with Vlookup by combining Vlookup and IF functions

Sometimes, you may not want to modify the original reference table, therefore, combining the Vlookup function, IF function, and ISERROR function can help you check whether the vlookup returns errors and ignore these errors with ease.

Go to a blank cell (in our case we go to the Cell G2), enter the formula =IF(ISERROR(VLOOKUP(F2,$A$2:$C $9,3,FALSE)),"",VLOOKUP(F2,$A$2:$C $9,3,FALSE)), and then drag the Fill Handle to the range you need.

doc vlookup error 5

Note: In the formula of =IF(ISERROR(VLOOKUP(F2,$A$2:$C $9,3,FALSE)),"",VLOOKUP(F2,$A$2:$C $9,3,FALSE)), the F2 is the cell containing content you want to match in the original reference table, the $A$2:$C $9 is the original reference table. And this formula will return blank if matched value is error in the original reference table.

note ribbon Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future!
Read more…     Free trial

Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.