VLOOKUP Reference Help

G

Guest

Currently, I have a cell referencing a table on another sheet like so:

=VLOOKUP(A5,'Sheet2'!$J$4:$J$1998,1,TRUE)

But what I want to do is instead of referencing the sheet explicitly (i.e.
Sheet2), I'd like to reference a sheet based on another cell's value. E.g.:

=VLOOKUP(A5,'A2'!$J$4:$J$1998,1,TRUE)
where A2 would have the value "Sheet2".

Is this possible within excel?
 
G

Guest

Use the INDIRECT() function, like so:

=VLOOKUP(A5,INDIRECT(A2&"!$J$4:$J$1998"),1,TRUE)
 
P

Pete

You need to use the INDIRECT( ) function, details of which you can find
it in Help. If you are still stuck, then post back.

Pete
 
D

Domenic

Use the INDIRECT function...

=VLOOKUP(A5,INDIRECT("'"&A2&"'!J4:J1998"),1,TRUE)

Hope this helps!
 

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

Top