Dynamic Formula?

A

atran

Is it possible to have a sheet reference in a formula that is based on
referenced cell?

For example, if I have the following formula in cell A1(Sheet1):
=Sheet2!A1, then I have a list of Sheets ie. Sheet 3, Sheet 4, Sheet
in cells C1:C3 respectively, can I create a formula that will look a
C1:C3 for the corresponding "sheet reference" to look up?

Many thanks
 
B

Bob Phillips

Look at INDIRECT in Help.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
R

RagDyeR

Try this:

=INDIRECT(C1&"!A1")

And copy down.
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


message
Is it possible to have a sheet reference in a formula that is based on a
referenced cell?

For example, if I have the following formula in cell A1(Sheet1):
=Sheet2!A1, then I have a list of Sheets ie. Sheet 3, Sheet 4, Sheet 5
in cells C1:C3 respectively, can I create a formula that will look at
C1:C3 for the corresponding "sheet reference" to look up?

Many thanks!
 
D

Domenic

Try...

A1, copied down:

=INDIRECT("'"&C1&"'!A1")

...where C1 contains the sheet name.

Hope this helps!
 
A

atran

RagDyeR,
Your formula worked well - however, is there a way the A1 portion can
be a relative reference as I pull down?

Thanks!
 
D

Domenic

Try...

=INDIRECT(C1&"!"&CELL("address",A1))

OR

=INDIRECT("'"&C1&"'!"&CELL("address",A1))

...if your sheet name contains a space.

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top