Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: summing sheets

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    Fort McMurray, AB
    Posts
    218
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Calgary, Alberta Canada
    Posts
    3,496
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)

    Default



    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. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Millbank, London, UK
    Posts
    1,790
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #4
    MrExcel MVP Mark O'Brien's Avatar
    Join Date
    Feb 2002
    Location
    Columbus, OH, USA
    Posts
    3,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =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. #5
    Board Regular
    Join Date
    Mar 2002
    Location
    Fort McMurray, AB
    Posts
    218
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Smashing, thanks much y'all!
    Regards, Duane
    Office2010 in Win7

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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