I have a cell that currently has a name typed into it that matches a
worksheet name. Can I refer to the contents of that cell (INDIRECT) and use
the content to refer to the correct worksheet and then go to that worksheet
for the data?
eg. Sheet called Christmas. In cell H2 value = Pudding
on another sheet cell B2 value = Christmas. I want the formula in cell J12
to go to Sheet Christmas and give value of cell H2
Thanks
Chris
This will get the value in cell H2 of the sheet specified in B2:
=INDIRECT(B2&"!H2")
Regards,
Per
"Chris" <chris...@zeronet.co.uk> skrev i meddelelsen
news:%23NRrGV2...@TK2MSFTNGP06.phx.gbl...
=INDIRECT("'"&B2&"'!H2")
The ("'"&B2&"'!H2") builds the text you want so 'christmas'!H2 and
indirect makes it a literal reference.
--
etaf
------------------------------------------------------------------------
etaf's Profile: http://www.thecodecage.com/forumz/member.php?userid=1223
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=156270
[url="http://www.thecodecage.com"]Microsoft Office Help[/url]
"Per Jessen" <per.j...@mail.dk> wrote in message
news:OYz05c2a...@TK2MSFTNGP04.phx.gbl...
Regards
Chris
"etaf" <etaf....@thecodecage.com> wrote in message
news:etaf....@thecodecage.com...
=INDIRECT(B2 & "!" & "H2")
--
Gary''s Student - gsnu200909
"Chris" wrote:
> .
>
"Chris" <chris...@zeronet.co.uk> wrote in message
news:eHds3j2a...@TK2MSFTNGP05.phx.gbl...