Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Combining cell Ref into formulae


Hi There

Sheet 1 has formulae in cell a1 that says "=sheet2!b2"
Thus value in cell b2 in sheet2 is displayed in a1 in sheet1

Problem I need to change sheet2 to sheet 3 sheet 4 etc etc, so I wanted
to make the text "sheet2" within the formulae above relative, ie
instead of saying "sheet2!b2" I wanted to refer Excel to a cell Say Z1
and then combine it with b2. (sortof like ="z1!&b2" - but this doesnt
work)
In Z1 I would then type Sheet2 or whatever I wanted, it would make
duplicating it much easier.

any ideas welcomed (hope its not all too confusing...

Thanks

D







*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Combining cell Ref into formulae

=INDIRECT(Z1&"!B2")

--

HTH

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


"Darin Kramer" wrote in message
...

Hi There

Sheet 1 has formulae in cell a1 that says "=sheet2!b2"
Thus value in cell b2 in sheet2 is displayed in a1 in sheet1

Problem I need to change sheet2 to sheet 3 sheet 4 etc etc, so I wanted
to make the text "sheet2" within the formulae above relative, ie
instead of saying "sheet2!b2" I wanted to refer Excel to a cell Say Z1
and then combine it with b2. (sortof like ="z1!&b2" - but this doesnt
work)
In Z1 I would then type Sheet2 or whatever I wanted, it would make
duplicating it much easier.

any ideas welcomed (hope its not all too confusing...

Thanks

D







*** Sent via Developersdex http://www.developersdex.com ***



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
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Excel Discussion (Misc queries) 0 June 26th 09 06:01 PM
Formulae: Paste value formulae after doing an average operation Lim Excel Discussion (Misc queries) 4 April 20th 08 07:31 PM
Combining (nesting) 2 formulae AndyB Excel Worksheet Functions 3 October 19th 07 06:41 PM
Searching TEXT in formulae, rather than results of formulae AndyE Excel Worksheet Functions 1 July 15th 05 10:57 AM


All times are GMT +1. The time now is 04:14 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"