View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default VLOOKUP Reference Help

Worked like a charm. Thanks David!
--
Thanks!
Max


"David Billigmeier" wrote:

Use the INDIRECT() function, like so:

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

--
Regards,
Dave


"Max" wrote:

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?

--
Thanks!
Max