+ Reply to Thread
Results 1 to 19 of 19

Is it possible to subtotal over 100 spreadsheets in a workbook at one

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Morning all, I have a workbook with over 100 tabs (all with same heading).

    Is there a way to subtotal all tabs at once? I obviously want to perform the same exact subtotal for all but all spreadsheets have different number of lines.

    I'm new on here and I've searched for the answer with no success.
    Last edited by skettler; 01-08-2013 at 03:51 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    HI skettler and welcome to the forum

    are you saying that the layout of each worksheet is not the same? and if thats the case, is there any way to make them the same?

    because if you can make the layout/format identical on each sheet, you can use this trick to very quickly summarize all sheets onto 1 "master"...

    if you add a blank worksheet at the start and end of your data sheets, and call them Start and End, then when you enter your calcs, you could just enter =sum('start:End'!C12) or whatever your references are. this way, you can add or remove sheets as needed, and it will add across all the sheets you need it to, and keep the totals as the data sheets change. make sure your "Master" sheet is before the Start sheet though
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Thanks for the response!

    All tabs have the same exact formatting except for number of lines.

    Working with travel data. Need to subtotal all tabs to show spend by route.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    ok, not sure I understand you then. any change of a dummy workbook, showing some sample data/sheets, and a few examples of what your expected outcome is, as well as how you arrived at that?

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Sure, here is a dummy report. Of course I deleted a lot of columns but these are the two I need withing all tabs.

    I just need to subtotal routes to get total spend for all.

    If my vocabulary for this is off please let me know! Thanks again!
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    ok, i totally misunderstood what you had/wanted lol. it would be simple if they were all on 1 sheet, extracting unique entries if fairly easy

  7. #7
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Yeah. I spent all morning figuring a code to put all destination cities (over 100 cities) on separate tabs. Now this!

    Hey, thanks though. I appreciate it.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    no, what I meant was it would be easier if ALL the data was ion 1 sheet, thats always better to work with

  9. #9
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    I definitely agree but unfortunately the requester wants all destinations on their own tab. Thanks.

  10. #10
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    This what you want

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  11. #11
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    This looks like it only totaled the spreadsheet.

    It doesn't group similar routes together. It just gives me a total.

    Am I missing something?

  12. #12
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Nope your not missing anything I thought you just wanted to subtotal the sheet, I must of missed the part by groups. Will column a be sorted already?

  13. #13
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Not necessarily. I'd like it to look just like it would if I would separately subtotal a spreadsheet.

    If this isn't possible, any idea if you can pivot numerous tabs?

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Run the macro integratie Oeldere.

    Please Login or Register  to view this content.



    You get the result on the sheet Consolidated

    After that i made an pivot table of the data.

    Please reply it this works for you.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  15. #15
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    How about this

    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Looks good but, sorry I should've mentioned this, is that the ultimate goal is to have each destination tab subtotaled and sorted by most expensive route to least.

    Make sense?

  17. #17
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Mike - this looks like it would work! What would I change if my route info in my original data is in column P and the spend is in column T?

  18. #18
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Maybe you want something like this (subtotal per group).

    It's all on the sheet consolidated.

    See the attached file.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    01-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Is it possible to subtotal over 100 spreadsheets in a workbook at one

    Hey - I can't thank you all enough!! REALLY. This is great.

    I took Mike's code and figured out how to use it with my master spreadsheet.

    This is a fantastic tool and I'll definitely be back. Thanks again!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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