Vlookups from multiple worksheets

SuzieHal

New Member
Joined
Apr 2, 2013
Messages
3
Hi Guys,

Need a bit of advice on m vlookup.

I currently have the following formula =(IFERROR(VLOOKUP($A3,'Tracker 2013.xlsx]Open'!$A:$F,2,0),"")) which looks up various data in a different workbook. I need to extend this to look in to more than one worksheet if the data can not be found in "open".

I came up with the following
=(IF(NOT(ISERROR(VLOOKUP($A7,Open!$A:$Z,4,0))),VLOOKUP(Summary!$A7,Open!$A:$Z,4,0)</SPAN>
,(IF(NOT(ISERROR(VLOOKUP($A7,'On Hold'!$A:$Z,4,0))),VLOOKUP(Summary!$A7,'On Hold'!$A:$Z,4,0)</SPAN>
,(IF(NOT(ISERROR(VLOOKUP($A12,Pending!$A:$Z,4,0))),VLOOKUP(Summary!$A12,Pending!$A:$Z,4,0),""))))))
and while it worked in my testing spreadsheet its coming up blank when I try to apply it where its needed.

Any ideas?

Thanks,
Suzie
</SPAN>

<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
You've left off the other workbook name in the new formula. Also you could continue to use the IFERROR function, like this:

=IFERROR(VLOOKUP($A3,'Tracker 2013.xlsx]Open'!$A:$F,2,0),IFERROR(VLOOKUP($A3,'Tracker 2013.xlsx]On Hold'!$A:$F,2,0),IFERROR(VLOOKUP($A3,'Tracker 2013.xlsx]Pending'!$A:$F,2,0),"")))

You may need to adjust the range and col index # in the above to suit your data.
 
Upvote 0
Hi Ron,

thanks for that.
The formula I have was based on vlookups in the same workbook, hence it didnt have the "tracker" souce in it.
But when I try to adapt it so it to look up info in the tracker workbook I either get a blank cell or "false" result. (range and column index are right)

Thanks,
Suzie
 
Upvote 0
Is this the way you modified the formula I suggested
=IFERROR(VLOOKUP($A3,Open'!$A:$F,2,0),IFERROR(VLOOKUP($A3,On Hold'!$A:$F,2,0),IFERROR(VLOOKUP($A3,'Pending'!$A:$F,2,0),"")))

What is entered in A3? and is it listed in any of the 3 worksheets?
I noticed you are using A7 and A12 as lookup values in the 2nd formula in your original post - does the A3 in my formula need to be changed?
 
Upvote 0
Hi Ron,

A3 contains a vacancy number (P123), which is listed in the worksheets.
The number moves between the various worksheets, depending on the progress of the role, hence the need to be able to look up data from various sources,

A7 and A12 were just typos in the formula.

Thanks,
Suzie
 
Upvote 0
It would help if you could post some sample data.

The formula will return the contents of the cell in Col B next to the matching "P123" on the 1st worksheet it finds a match. Please verify that the cell in Col B is not blank and also confirm that the P123 in A3 does not contain any spaces (and do the same in your Open, On Hold and Pending worksheets. The formula will return a blank if there is not a match in any of the 3 worksheets. Also make sure your 3 worksheet tabs are spelled the same as in the formula.
 
Upvote 0

Forum statistics

Threads
1,203,112
Messages
6,053,577
Members
444,674
Latest member
DWriter9

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