Vlookups

lgs1983

New Member
Joined
Jan 16, 2009
Messages
12
Hi Guys,

Hopefully there is a answer to this and will try to explain as best as possible to give you an idea of what I'm after.

I want to try to vlookup over two sheets so if one sheet returns false or #n/a then for it to vlookup to another sheet and search that for the match.

Is this possible or do you require further information from me?

Thanks

LgS
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
One possible way.

Suppose you want to lookup the value in A2 in Sheet1 in the sheets 2 and 3, then

Code:
=IF(ISNUMBER(MATCH(A2,Sheet2!$A$2:$A$100,0)),
          VLOOKUP(A2,Sheet2!$A$2:$D$100,3,0),
              VLOOKUP(A2,Sheet3!$A$2:$D$100,3,0))

Assuming your table range in sheet2 and 3 is columns A to D and 100 rows.
 
Upvote 0
Sandeep, thanks for your response.

What does this part of the script need to look at?

IF(ISNUMBER(MATCH(A2,Sheet2!$A$2:$A$100,0))
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,334
Members
452,907
Latest member
Roland Deschain

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