Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
David Billigmeier
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default 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?

  #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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup to provide row reference instead of value Graham Tritton Excel Worksheet Functions 2 September 29th 05 05:28 AM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
Vlookup will not reference a validation/drop down box Dave Excel Discussion (Misc queries) 2 August 19th 05 09:52 PM
Using a cell reference of a sheet in Vlookup crazybass2 Excel Worksheet Functions 3 August 12th 05 07:51 PM
Convert VLOOKUP to absolute cell reference Rich Excel Discussion (Misc queries) 2 August 6th 05 03:49 AM


All times are GMT +1. The time now is 12:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"