Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ant
 
Posts: n/a
Default Dynamic cell reference

I have the following formula:

='Sheet1'!A1

Is it possible to enhance the formula so that the tab name( Sheet1) becomes
dynamic? ie. Can I link the name 'Sheet1' to a cell which changes? eg If the
formula in say, A2 returns various sheet names, can I enhance the formula to
reflect this? So, if A2 shows Sheet2, can my formula above reflect this?
Something like:

='A2'!A1

which is actually now:

='Sheet2'!A1


  #2   Report Post  
Posted to microsoft.public.excel.misc
Zack Barresse
 
Posts: n/a
Default Dynamic cell reference

Hi Ant,

Yes, check out the INDIRECT function. Ex:

=INDIRECT"'"&A2&"'!A1")

Note that the cell reference is hardcoded, but the sheet will change. The '
signs are included if you have any spaces in your sheet name (else an error
will arise).

HTH

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)
To email, remove the NO SPAM. Please keep correspondence to the board, as
to benefit others.



"Ant" wrote in message
...
I have the following formula:

='Sheet1'!A1

Is it possible to enhance the formula so that the tab name( Sheet1)
becomes
dynamic? ie. Can I link the name 'Sheet1' to a cell which changes? eg If
the
formula in say, A2 returns various sheet names, can I enhance the formula
to
reflect this? So, if A2 shows Sheet2, can my formula above reflect this?
Something like:

='A2'!A1

which is actually now:

='Sheet2'!A1




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
Making path of linked cell dynamic Negentropy Excel Discussion (Misc queries) 3 September 24th 05 09:02 PM
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM
dynamic cell reference within a text string gvm Excel Worksheet Functions 4 July 25th 05 02:40 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Flexible Cell Reference Brandt Excel Discussion (Misc queries) 5 June 2nd 05 10:23 PM


All times are GMT +1. The time now is 10:30 PM.

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"