Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JoeM
 
Posts: n/a
Default Using a cells contents to reference a sheet.


Is it possible to use the contents of a cell to reference a different
sheet?

Sheet 1 (Named Master)
Sheet 2 (Named Test)
Sheet 3 (Named Development)
Sheet 4 (Named Production)

I'd like to be able to perform a VLOOKUP on Sheets 2,3,& 4 using the
contents of a cell from sheet 1 as the array.

For Example:
Sheet 1, cell A1 would have one of the names of sheets 2,3,or 4.

=VLOOKUP(A5,*A1!*$A:$F,5,TRUE)

I know the above example won't work. Can it be done?

Thanks!


--
JoeM
------------------------------------------------------------------------
JoeM's Profile: http://www.hightechtalks.com/m491
View this thread: http://www.hightechtalks.com/t2307541

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Using a cells contents to reference a sheet.

Yes, you can do this by using the INDIRECT( ) function - you can build
up the sheet and the range within INDIRECT, something like;

=VLOOKUP(A5,INDIRECT(A1&"!$A:$F"),5,TRUE)

Pete

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Using a cells contents to reference a sheet.

One way:

=VLOOKUP(A5,INDIRECT("'" & A1 & "'!A:F"), 5, TRUE)

In article ,
JoeM wrote:

Is it possible to use the contents of a cell to reference a different
sheet?

Sheet 1 (Named Master)
Sheet 2 (Named Test)
Sheet 3 (Named Development)
Sheet 4 (Named Production)

I'd like to be able to perform a VLOOKUP on Sheets 2,3,& 4 using the
contents of a cell from sheet 1 as the array.

For Example:
Sheet 1, cell A1 would have one of the names of sheets 2,3,or 4.

=VLOOKUP(A5,*A1!*$A:$F,5,TRUE)

I know the above example won't work. Can it be done?

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JoeM
 
Posts: n/a
Default Using a cells contents to reference a sheet.


Thank you very much! That did the trick...


--
JoeM
------------------------------------------------------------------------
JoeM's Profile: http://www.hightechtalks.com/m491
View this thread: http://www.hightechtalks.com/t2307541

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
How do I link cells, sheet to sheet, to recognize row deletions? LeeC Excel Discussion (Misc queries) 30 November 6th 09 10:26 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Macro-Copy various cells in sheet1 into next available row in sheet 2 lunker55 Excel Discussion (Misc queries) 7 October 21st 05 11:05 PM
Lock cells without protecting sheet? RBee Excel Worksheet Functions 2 August 4th 05 10:11 PM
Dynamic reference to a sheet xisque Excel Worksheet Functions 4 June 20th 05 09:04 PM


All times are GMT +1. The time now is 09:39 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"