+ Reply to Thread
Results 1 to 20 of 20

Summing across multiple sheets

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-04-2011
    Location
    Cape Town
    MS-Off Ver
    MS 365 Apps for Business
    Posts
    111

    Summing across multiple sheets

    Can someone please help.

    Im trying to sum across multiple sheet into a 'parent' sheet. Problem is, on each of the 'child' sheets, the range/cell could change either up or down, but still in the same columns. I would want to do this for a number ranges/cell in the parent sheet.I also want to be able to add new child sheets and the parent needs to accommodate this. I might also want to swap the order of the sheets - forward or backwars.

    I have a spreadsheet with an example of what I want to do attached.

    Any help will be appreciated
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Summing across multiple sheets

    Do you want the value of cell D3 from "Property 1" tab to appear in D5 of the "summary" tab or the whole range D5:M5 of "property 1" tab

    You can use =sum(D5:M5) to sum a specific range
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Forum Contributor
    Join Date
    02-04-2011
    Location
    Cape Town
    MS-Off Ver
    MS 365 Apps for Business
    Posts
    111

    Re: Summing across multiple sheets

    Blake 7

    I want D13 to sum all of the corresponding cells in the relevant column i.e.year 1 must sum only year 1 from each child sheet, etc. The important thing is - that I must be able to add sheets in at a later date and the parent sheet formulae must be able to add these sheets in automatically, no matter what order they are in i.e sheets 'Property 5' to perhaps 'Property 100'

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Summing across multiple sheets

    Quote Originally Posted by markvdh View Post
    Blake 7

    I want D13 to sum all of the corresponding cells in the relevant column i.e.year 1 must sum only year 1 from each child sheet, etc. The important thing is - that I must be able to add sheets in at a later date and the parent sheet formulae must be able to add these sheets in automatically, no matter what order they are in i.e sheets 'Property 5' to perhaps 'Property 100'

    Mark - here is some advice going forward re posting on forums. You should always assume that no one understands your data so refering to child and parent and years (which don't exist or are not named within your sheet) make it harder for people to understand or follow your requirement. Put it this way, it takes more time to help if things aren't clear.

    You Said D13 above, is it D13 or D5?

    So to be absolutley clear about this - in tab "property 1" cells d2:m2 represent years and in tab "property 2" D10:M10 reprent years and D19:M19 in "property 3". is there any reason they dont appear on same line in all sheets?

    The very simple sum formula below will do what you want but i would advise re-visting the layout of you workbook to make it tidier.

    =SUM('PROPERTY 1'!D3+'PROPERTY 2'!D11+'PROPERTY 3'!D20)

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Summing across multiple sheets

    All, I think the question is effectively:

    "how to perform 3D SUMIF with variable number of sheets"

    If so then the reality is such that neither 3D referencing nor individual cell aggregation will suffice.

    Performing conditional calculations in 3D is non trivial, inefficient and are invariably volatile.

    If you want the sheet listing to be adaptive then in terms of the standard 3D approaches things are further complicated.

    Questions:

    1. are all sheets (with exception of summary itself) to be included in the aggregation ?

    2. are you willing/able to use VBA ?


    @blake7: re:

    =SUM('PROPERTY 1'!D3+'PROPERTY 2'!D11+'PROPERTY 3'!D20)
    note the use of SUM negates need for + within the SUM and vice-versa, either:

    =SUM('PROPERTY 1'!D3,'PROPERTY 2'!D11,'PROPERTY 3'!D20)
    or

    ='PROPERTY 1'!D3+'PROPERTY 2'!D11+'PROPERTY 3'!D20
    the "advantage" of the former is that it does not explicitly coerce the precedents ... using + within the SUM removes that benefit

    though again to reiterate I don't think this is a viable approach in this instance.
    Last edited by DonkeyOte; 02-16-2011 at 08:25 AM.

  6. #6
    Forum Contributor
    Join Date
    02-04-2011
    Location
    Cape Town
    MS-Off Ver
    MS 365 Apps for Business
    Posts
    111

    Re: Summing across multiple sheets

    DonkeyOte
    Yes, I would like all sheets, with the exception of the summary sheet to be included (this includes future sheets which I might add, in any particular order). I'm new to VBA, so I wouldnt be comfortable trying to do this/understand yet. Further, Im not sure that its a conditional . . I just want to sum.

  7. #7
    Forum Contributor
    Join Date
    02-04-2011
    Location
    Cape Town
    MS-Off Ver
    MS 365 Apps for Business
    Posts
    111

    Re: Summing across multiple sheets

    Blake 7
    My apologies - suitably reprimanded. Yes it should have been D5 and, yes, those are all years 1 to 10 for each tab. The reason that they are not on the same line . . is that, each of those sheets will may have varying amounts of data above it (I havent put the data in yet). In other words 'Property 1' only has 2 rows of data, 'Property 2' has 10 rows and 'Property 3' has 19 rows. I also havent put the formula in, but each "NET OPERATING INCOME" row is supposed to have a SUM formula in it to sum the rows above it. The difficulty is when you need to add a new tab, for instance 'Property 4', you dont want to have to amend the 'Summary' page formula.

  8. #8
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Summing across multiple sheets

    Hi Mark - thanks for your response. I see that a forum guru has picked up on this thread and asked a couple of q's. You are safe hands with DO! as such I will bow out.

    But I will watch and learn...

    All the best

  9. #9
    Registered User
    Join Date
    07-25-2008
    Location
    Wales
    MS-Off Ver
    2007
    Posts
    64

    Re: Summing across multiple sheets

    The simplest way to sum acroos a range of worksheets is to use the "=sum(First:Last!A1)" formulae.

    ie you creat a "blank" worksheet witht he name "first" (for example), and a blank worksheet namned "last" (for example). You positin these at the extreme left (first), and extreme right (last), of the worksheets you want to "sum"...."A1" is the cell reference you want to add.

    In addition, you would then need to find a way to ensure that the cell you wanted always appeared in the same cell reference.....maybe by using a "lookupo" function on the top row?


    hope this helps ...

    Stu

  10. #10
    Registered User
    Join Date
    07-25-2008
    Location
    Wales
    MS-Off Ver
    2007
    Posts
    64

    Re: Summing across multiple sheets

    ..Hi there,

    ..agian, by usingn the "Summary / First/ ws1 / ws2 / ws3 / Last" method, you simply add another worksheet in between, and the summary will automatically update.

    ie:- "Summary / First/ "new ws" / ws1 / ws2 / ws3 / Last"

    Stu

  11. #11
    Forum Contributor
    Join Date
    02-04-2011
    Location
    Cape Town
    MS-Off Ver
    MS 365 Apps for Business
    Posts
    111

    Re: Summing across multiple sheets

    Stu - I understand what you are saying, but what if the cell position that you are summing is not the same in each of those sheets?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1