vlookup over two or more tables

deonh911

New Member
Joined
Dec 18, 2013
Messages
11
Hi all

I know this might seem like a silly question but i am at a loss at the moment.

i have three tabs called old stock new stock and locations

In locations i have my column (code) (description) (department) and (location).In my description field i have a vlookup for my code and it then pulls in my data from new stock.
is it possible to do a vlookup so it go look for the code in oldstock and new stock sheet .

Any and all help appreciated

I am not an expert and im using excel 13
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi

If an exact VLOOKUP() doesn't find a result it returns an error. As such, you want to say "if this is an error, do this other lookup". One way is using IFERROR() like this:

Code:
=IFERROR(VLOOKUP(A2, Table1, 2, 0), IFERROR(VLOOKUP(A2, Table2, 2, 0), VLOOKUP(A2, Table3, 2, 0))

Where A2 contains your lookup value and Table1 Table2 and Table3 are your three areas. Change the column number (currently 2) as appropriate.

(Note: the above formula will return an error if A2 is not in any of the three tables)

Hope that helps

Mackers
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,541
Latest member
iparraguirre89

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