+ Reply to Thread
Results 1 to 10 of 10

Sum through dissimilar sheets

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Sum through dissimilar sheets

    I am trying to sum a total sheet where the products vary and the site names getted added. The attached sample gives a getter idea.

    Thanks for any ideas. I have used INDIRECT but becuase of the size of the sheet (up to 50 sites) it is far too slow. SUMIF falls over becuase the new site names are not known in advance and this mean having to re-write the SUMIF formula.
    Attached Files Attached Files
    Last edited by BRISBANEBOB; 01-07-2012 at 03:54 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sum through dissimilar sheets

    I remember doing this some years back. If you have an estimate on how many sites may get added in the coming year, you can prepare dummy tabs for them and keep with all formulae intact. You can include these tabs in the sumif formula as well. Once the site name is known, you just change the tab name, the fomula will automatically get updated with the new name.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    02-22-2011
    Location
    Rhône Alpes, France
    MS-Off Ver
    Excel 2007
    Posts
    201

    Re: Sum through dissimilar sheets

    Hi,
    A solution can be done with pivot table
    See attached file with sheet PT consolidate all site names
    Make a table on all site names sheets : automatic recognition by PT, automatic add product if necessary
    The empty cells are for new entry : after new entry refresh the whole PT
    You can add a new sheet site names and transform the data in table
    After adding a new sheet, you need to use the pivot table wizard, go to previous and add the new sheet site names range and the field name
    Don't forget to refresh the whole PT
    Hope this will helps
    Best regards
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    Re: Sum through dissimilar sheets

    I feel the other way is to run a macro, which takes care of all worksheets irrespective of number of sheets in the file.

  5. #5
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Sum through dissimilar sheets

    Dear BrisbaneBob,

    THis is a solution I reearched for your query...
    http://www.mcgimpsey.com/excel/threedsumif.html

    I have made a small list of all the Tab Names in the cOLUMN O from 06 till O9 which can also be automated but that you can do a ta later stage..

    Please Login or Register  to view this content.
    This is just a single formula which gives the result for all the sheets....

    Now you can work on getting the SHeet Names automatically in the Lists of Column O and also use an extended INDIRECT FUNCTION TO update the Range "'!$B$6:$B$17" so that you could drag the formula sideways..

    Please Login or Register  to view this content.
    For getting the Range $B$6:$B$17

    Hope this helps..

    Warm REgards
    e4excel

  6. #6
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Sum through dissimilar sheets

    For some strange reason the Column Alphabet is not changing, let me come back on tht

  7. #7
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Sum through dissimilar sheets

    I think thats the problem with your sheet as when I closed your file and tried afresh on my own file it worked...

    You can alternatively use an MATCH FUNCTION instead of the COLUMN () to get more accurate results incase the columns are changed, however for all pratical purposes this should work..

    Please check you settings as to why the COLUMN () function gives the same result for all the COLUMNS even after dragging sideways..

    SOmeone please advise on the oddity...

    ANS : Automatic from MANUAL

    Regards
    e4excel
    Last edited by e4excel; 01-06-2012 at 09:07 AM.

  8. #8
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Sum through dissimilar sheets

    I think Brisbane this should work but I am just thinking a little ahead of complete Automation but which unfortunately I am unable to do...

    In my formula the Range $O$6:$O$9 contains the Sheet Names excluding the Active SHeet Name "Total"...Now incase this list expands on increase in more sheets then WHat kind of formula should be used to include the same as the range expands with 2 more SHeets then the Range $O$6:$O$9 will change to $O$6:$O$11 so what formula should be used to include this change..

    I have tried using the INDIRECT function but in vain..
    Please do not hink that I am trying to hijack this thread I am just trying to help BBane to get an Unchanged formula which works even the NO of SHeets increases.

    So, please gurus advise..

    Warm REgards
    e4excel

  9. #9
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Sum through dissimilar sheets

    Thanks to all for suggestions. They all work great so I will try them in the field. All responses much appreciated.

  10. #10
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Sum through dissimilar sheets

    Brisbane,

    I think you need to look at this thread as it will be helpful..

    http://www.excelforum.com/excel-prog...html?p=2676542

    I have used your sample file as an example so that it completes the Automation..

    Warm Regards
    e4excel

+ 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