![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Toronto
Posts: 173
|
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 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
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 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Quote:
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 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
=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 |
|
Board Regular
Join Date: Mar 2002
Location: Toronto
Posts: 173
|
Smashing, thanks much y'all!
__________________
Regards, Duane h. Office2003 in WinXP o. Office2007 in Win7 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|