Thanks:  0
Likes:  0

1. 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 ]

2. 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

3. 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("'"&(SUBSTITUTE(RIGHT(CELL("filename",\$A\$1),2),"]",0)*1)-1&"'!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 ]

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

make 'em green. (even better )

_________________
[b] Mark O'Brien

[ This Message was edited by: Mark O'Brien on 2002-04-22 14:07 ]

5. Smashing, thanks much y'all!

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•