Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I link cells, sheet to sheet, to recognize row deletions? | Excel Discussion (Misc queries) | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Macro-Copy various cells in sheet1 into next available row in sheet 2 | Excel Discussion (Misc queries) | |||
Lock cells without protecting sheet? | Excel Worksheet Functions | |||
Dynamic reference to a sheet | Excel Worksheet Functions |