Checking If Matching Numbers Exist in Different Ranges

In this article, you’ll learn how to check if matching numbers exist in different ranges in Microsoft Excel.

When we want to pick the values from first data to second data, we use Vlookup function. But, when Vlookup function does not get the common values in second data, Vlookup gives #N/A error. To avoid the #N/A error, we can use IFNA function.

  • Vlookup function helps to pick the value from 1st data to 2nd data.
  • IFNA function helps to define the value at the place of #N/A error.

 

Let’s take an example and understand how we can use these formulas to get the result.

We have 2 data sets. 1st is main data and 2nd is updated data. Now, we want to update the main data from the updated data.

image 1

 

Main Data:-

image 2

 

Updated Data:-

image 3

 

In the main data, we want to update the manufacturer details from the updated sheet.

Follow below given steps:-

  • Enter the formula in cell F4 of Main data
  • =IFNA(VLOOKUP(A4,$H$4:$M$19,6,0),”Not Found”)
  • Press Enter

image 4

 

  • Copy the same formula and paste in the range.
  • Manufacturer detail will get updated, and also, where the data is not available in the sheet, formula will return “Not Found” as output.

image 5

 

In this way, we can ignore #N/A error by using IFNA function in Microsoft Excel. Also, this function is compatible with 2007 and later versions of Microsoft Excel.

If you are using 2003 Microsoft Excel, then you can use below given function:-

=IF(ISERROR(VLOOKUP(A4,$H$4:$M$19,6,FALSE)),”Not Found”, VLOOKUP(A4,$H$4:$M$19,2,FALSE))

 

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

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