summing sheets

Duane

Board Regular
Joined
Mar 14, 2002
Messages
229
Okay, I've got 12 sheets, named 1 through 12.

On 1!, A1, a number is entered.
On 1!, B1, the YTD is accumulated.

On 2!, A1, a number is entered for that month.
On 2!, B1 the YTD is ='1'!B1+'2'!A1
And so on.

How can I rewrite the formula in 2!B1 that can be copy|paste special|formulas to all B1 cells (grouping sheets 2-12) so that each B1 will read the "previous" sheet's value and add the "current" sheet's value? (I think this has something to do with using the sheet names in the formula, but I don't know how to do that).

Thanks for the help.



_________________
Regards, Duane
This message was edited by Duane on 2002-04-21 22:40
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You could consider using a summary page

The formula on summary page could accumulate all the detail numbers or selected numbers.

examples

=SUM('1:12'!A15:A15) single cell
=SUM('1:12'!A16:D16) range
 
Upvote 0
On 2002-04-21 22:38, Duane wrote:
How can I rewrite the formula in 2!B1 that can be copy|paste special|formulas to all B1 cells (grouping sheets 2-12) so that each B1 will read the "previous" sheet's value and add the "current" sheet's value? (I think this has something to do with using the sheet names in the formula, but I don't know how to do that).
This message was edited by Duane on 2002-04-21 22:40

You thought right,

try this then copy it through the sheets :

=INDIRECT("'"&(SUBSTITUTE(RIGHT(CELL("filename",$A$1),2),"]",0)*1)-1&"'!B1")+A1

please note the single quotes in this formula.... I'll repost and try to bold them

=INDIRECT("'"&(SUBSTITUTE(RIGHT(CELL("filename",$A$1),2),"]",0)*1)-1&"'!B1")+A1



_________________
Hope this helps,
Chris
:)

fat lot of good bolding.... let me underline them :

=INDIRECT("<U>'</U>"&(SUBSTITUTE(RIGHT(CELL("filename",$A$1),2),"]",0)*1)-1&"<U>'</U>!B1")+A1
This message was edited by Chris Davison on 2002-04-22 13:00
This message was edited by Chris Davison on 2002-04-22 13:01
 
Upvote 0
=INDIRECT("<font color = green>'</font>"&(SUBSTITUTE(RIGHT(CELL("filename",$A$1),2),"]",0)*1)-1&"<font color = green>'</font>!B1")+A1

make 'em green. (even better :wink: )

_________________<font color = green> Mark O'Brien
This message was edited by Mark O'Brien on 2002-04-22 14:07
 
Upvote 0

Forum statistics

Threads
1,213,553
Messages
6,114,279
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top