Using ISERROR along with VLOOKUP function

In this article, we will learn how to use ISERROR function along with VLOOKUP function to ignore the error as result in Microsoft Excel.

Considering we have this situation where we want to create a formula to check for each successful search. The formula should return that number, when the match is found. And, if an exact match is not found, the formula should return a text message to that effect, rather than an error in Microsoft Excel.

If it is error in Excel Vlookup formula, we will use IF, Iserror and Vlookup function to prevent the #N/A error.

Let’s take an example to understand how we can prevent a Vlookup function from returning an error when an exact match is not found.

Example: We have 2 employees’ data sets. 1st data set in range A2:E13 with contains the details like employee code, date of joining, employee name, designation, contact number. The 2nd data set contains the employee code and the date of joining is to be obtained from the 1st data set

 

image 1

 

Follow below given steps:

  • Enter the formula in cell H3
  • =IF(ISERROR(VLOOKUP(G3,$A$2:$B$13,2,FALSE)),”Number Not Found”, VLOOKUP(G3,$A$2:$B$13,2,FALSE))
  • Press Enter
  • The function will return joining date

image 2

 

  • Copy the same formula in the range

image 3

home button
Previous VLOOKUP with ISNA function
Next VLOOKUP with IFERROR function

 

image 48

 

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.

We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com

Users are saying about us...

  1. can you please explain the below formula –>

    =IF(ISERROR(VLOOKUP($B18,’Profit Projections’!$A$11:$AB$110,’Profit Projections’!$AB$2,FALSE)),0,VLOOKUP($B18,’Profit Projections’!$A$11:$AB$110,’Profit Projections’!$AB$2,FALSE))

    questions–
    what is the formula trying to do?
    why is the range defined twice ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube