vlookup, change aray if

G

Guest

I have data in about 8 different sheets. I am creating a master sheet that
consolidates some of the data from the 8 sheets (while keeping active
links/vlookups to the data). I would like to change my vlookup array based
on the "ID number". For example, if id number="abc", then vlookup(a1,
sheet1!A:C, 2, false), if id number =xzy, then vlookup(a1, sheet2A:C, 3,
false). The problem is that I have 24 different ID's (hence arrays) to lto
work with. I tossed around the idea of creating a reference table for the
IDs/Arrays, and doing a lookup to find the array within the lookup to grab
the data, but it dosen't seem to work. Anyone know of a good way to do this?
 
G

Guest

Are you using the indirect function with the results of the table lookup

=Vlookup(A1,Indirect(vlookup(A2,Table,2,False)),2,False)

Where A2 holds the ID and the inner Lookup returns something like

sheet2!A:C
 
G

Guest

I am geeting a REF error. It seems to be resulting from the the indirect
function... any suggestions. Thanks.

=VLOOKUP(A7, INDIRECT(VLOOKUP(G7, 'Lookup Table'!A:B, 2, FALSE)), 5, FALSE)
where the lookup returns: k & rel m Correctn w earnng!$A:$AO
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

vlookup issue 2
Vlookup in multiple arrays 1
another Vlookup question 3
vlookup 2
Excel Excel Vlookup formula based on cell data 7
VLOOKUP 3
Excel Trying to do a vlookup with a nested right function on the array 3
Vlookup - multiple tabs 5

Top