Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
VLOOKUP Reference Help
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 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
VLOOKUP Reference Help
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 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
VLOOKUP Reference Help
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 |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
VLOOKUP Reference Help
Use the INDIRECT function...
=VLOOKUP(A5,INDIRECT("'"&A2&"'!J4:J1998"),1,TRUE) Hope this helps! In article , 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
vlookup to provide row reference instead of value | Excel Worksheet Functions | |||
Using single cell reference as table array argument in Vlookup | Excel Worksheet Functions | |||
Vlookup will not reference a validation/drop down box | Excel Discussion (Misc queries) | |||
Using a cell reference of a sheet in Vlookup | Excel Worksheet Functions | |||
Convert VLOOKUP to absolute cell reference | Excel Discussion (Misc queries) |