Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
kojimm
 
Posts: n/a
Default Change sheet name in formula

I use the folowing formula in a summary sheet that looks at specific cells on
other work sheet. =-1*SUM('5-4'!$O$41:$O$45) The worksheets are named 5-1,
5-2, etc. on my summary sheet I have a column that contains the work sheet
names formatted as text. I tried substituting a cell reference and various
text functions for '5-4' with and without the ' ' but when I do, Excel tries
to open a file. How can I make the formula look at the same cells on
different woorksheet without having to edit each formula or pointing to the
cells each time I ad a new worksheet?
  #2   Report Post  
ScottO
 
Posts: n/a
Default

If all of the worksheets are in the same workbook, try using the INDIRECT function (refer to
in-built help for syntax).
Rgds,
ScottO

"kojimm" wrote in message
...
| I use the folowing formula in a summary sheet that looks at specific cells on
| other work sheet. =-1*SUM('5-4'!$O$41:$O$45) The worksheets are named 5-1,
| 5-2, etc. on my summary sheet I have a column that contains the work sheet
| names formatted as text. I tried substituting a cell reference and various
| text functions for '5-4' with and without the ' ' but when I do, Excel tries
| to open a file. How can I make the formula look at the same cells on
| different woorksheet without having to edit each formula or pointing to the
| cells each time I ad a new worksheet?


  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Use

=-1*SUM(INDIRECT("'"&A1&"'!$O$41:$O$45"))

where A1 holds the sheet name.

--
HTH

Bob Phillips

"kojimm" wrote in message
...
I use the folowing formula in a summary sheet that looks at specific cells

on
other work sheet. =-1*SUM('5-4'!$O$41:$O$45) The worksheets are named

5-1,
5-2, etc. on my summary sheet I have a column that contains the work

sheet
names formatted as text. I tried substituting a cell reference and

various
text functions for '5-4' with and without the ' ' but when I do, Excel

tries
to open a file. How can I make the formula look at the same cells on
different woorksheet without having to edit each formula or pointing to

the
cells each time I ad a new worksheet?



  #4   Report Post  
kojimm
 
Posts: n/a
Default

Thank You Very Much!!!

"Bob Phillips" wrote:

Use

=-1*SUM(INDIRECT("'"&A1&"'!$O$41:$O$45"))

where A1 holds the sheet name.

--
HTH

Bob Phillips

"kojimm" wrote in message
...
I use the folowing formula in a summary sheet that looks at specific cells

on
other work sheet. =-1*SUM('5-4'!$O$41:$O$45) The worksheets are named

5-1,
5-2, etc. on my summary sheet I have a column that contains the work

sheet
names formatted as text. I tried substituting a cell reference and

various
text functions for '5-4' with and without the ' ' but when I do, Excel

tries
to open a file. How can I make the formula look at the same cells on
different woorksheet without having to edit each formula or pointing to

the
cells each time I ad a new worksheet?




  #5   Report Post  
kojimm
 
Posts: n/a
Default

Thank You Very Much!!!

"ScottO" wrote:

If all of the worksheets are in the same workbook, try using the INDIRECT function (refer to
in-built help for syntax).
Rgds,
ScottO

"kojimm" wrote in message
...
| I use the folowing formula in a summary sheet that looks at specific cells on
| other work sheet. =-1*SUM('5-4'!$O$41:$O$45) The worksheets are named 5-1,
| 5-2, etc. on my summary sheet I have a column that contains the work sheet
| names formatted as text. I tried substituting a cell reference and various
| text functions for '5-4' with and without the ' ' but when I do, Excel tries
| to open a file. How can I make the formula look at the same cells on
| different woorksheet without having to edit each formula or pointing to the
| cells each time I ad a new worksheet?



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
Does excel recognise names rather than cells? Sue Excel Worksheet Functions 9 May 22nd 05 04:51 AM
How to change a formula in one cell and have these changes appear Sam Excel Worksheet Functions 3 May 18th 05 10:57 PM
Copying a formula with different sheet refs JG Excel Discussion (Misc queries) 0 April 1st 05 08:51 AM
Find a non-blank cell and bring back text a in same row Rod Excel Worksheet Functions 12 March 24th 05 09:43 PM
How do I change the font color of my sheet tabs? DungeonsOfAlcatraz Excel Discussion (Misc queries) 1 January 3rd 05 09:19 PM


All times are GMT +1. The time now is 12:55 AM.

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"