Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Contents of a cell refer to sheet name
Hello there
I would like to do something like this: in sheet1 the value of cell A1="sheet2" in sheet1 the formula in cell B1 should be something like: ='A1!'C5 so that it will look in sheet2 because that's the value in A1. Doesn't work, does it? Thanks Peter |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Contents of a cell refer to sheet name
Hi
try in cell B1 =INDIRECT("'" & A1 & "'!C5") -- Regards Frank Kabel Frankfurt, Germany Audio_freak wrote: Hello there I would like to do something like this: in sheet1 the value of cell A1="sheet2" in sheet1 the formula in cell B1 should be something like: ='A1!'C5 so that it will look in sheet2 because that's the value in A1. Doesn't work, does it? Thanks Peter |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Contents of a cell refer to sheet name
=Indirect("'" & A1 & "'!C5")
the single quote is to the left of the exclamation point. -- Regards, Tom Ogilvy "Audio_freak" wrote in message . 2.2... Hello there I would like to do something like this: in sheet1 the value of cell A1="sheet2" in sheet1 the formula in cell B1 should be something like: ='A1!'C5 so that it will look in sheet2 because that's the value in A1. Doesn't work, does it? Thanks Peter |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Contents of a cell refer to sheet name
"Tom Ogilvy" wrote in
: Indirect("'" & A1 & "'!C5") That works fellows. Thanks very much! P |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Use cell contents to refer to a sheetname in a formula | Excel Worksheet Functions | |||
Refer to a worksheet/name using cell contents? | Excel Worksheet Functions | |||
Refer to a sheet using a cell value | Excel Worksheet Functions | |||
Refer to sheet name specified in other cell | Excel Discussion (Misc queries) | |||
Using contents of cell to refer to a worksheet | Excel Programming |