Compare and Extract VLOOKUP

N Prakash

Active Member
Joined
Nov 7, 2003
Messages
409
Hi,

I am using following to comapre two columns

=IF(ISERROR(VLOOKUP(B2:B8,I2:I14,1,FALSE)),"Not Available",J2)

When data is matching I want the corresponding data available in J2 column. Will some one help me in correcting the formula or let me know if any MACRO CODE is available to compare two columns and extract date from different column for the matched records.

Regards,
Prakash
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
It looks like you want to look up the value in column B to see if it exists in column I. If it exists, get the matching value from column J. If that's the case, you can use the following:

=IF(B2="","",IF(ISNUMBER(MATCH(B2,$I$2:$I$14,0)),VLOOKUP(B2,$I$2:$J$14,2,FALSE),"Not Available"))

Then copy down for each item in column B

Hope that helps,
~tigervatar
 
Upvote 0

Forum statistics

Threads
1,224,526
Messages
6,179,322
Members
452,906
Latest member
Belthazar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top