+ Reply to Thread
Results 1 to 5 of 5

summing multiple sub-tabs where each sub tabs row data is not the same

  1. #1
    Registered User
    Join Date
    10-31-2006
    Posts
    61

    summing multiple sub-tabs where each sub tabs row data is not the same

    Hi All,

    Not sure if the title describes it correctly but what I am looking to do is to create a formula that looks for a certain employee position across multiple tabs and adds the individual amounts from the subtabs together onto the total tab. I have attached a workbook, and as you can see, in the 1.1-1.5 the number of positions and their row location varies in each tab. What I was attempting to do was use something like SUMIF but I need it add all the tabs together and place it on the Total tab. I was trying to avoid adding multiple sumif statements (one for each tab) as my real data set has many more subtabs, and the sumif formula would get really big.

    Any help is appreciated.


    Thanks in advance.

    Chris
    Attached Files Attached Files
    Last edited by waternut; 08-11-2014 at 10:17 AM.

  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
    52,933

    Re: summing multiple sub-tabs where each sub tabs row data is not the same

    1st, create a list of all sheet names, and give it the range name Sheet_Names

    Sheet names
    1.1
    1.2
    1.3
    1.4
    1.5

    Then use this, copied down....
    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheet_names&"'!B5:B100"),B5,INDIRECT("'"&Sheet_names&"'!C5:C100")))
    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
    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
    52,933

    Re: summing multiple sub-tabs where each sub tabs row data is not the same

    deleted forum-induced duplicate thread

  4. #4
    Registered User
    Join Date
    10-31-2006
    Posts
    61

    Re: summing multiple sub-tabs where each sub tabs row data is not the same

    As a point of clarification regarding the list that gets named, I was not aware that each entry in the list name must have an apostrophe before the sheet reference. For example my list should have been
    '1.1
    '1.2
    '1.3
    '1.4
    '1.5

    Thanks to FDibbins for the assistance!!!!

    Chris

  5. #5
    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
    52,933

    Re: summing multiple sub-tabs where each sub tabs row data is not the same

    See the attached. (and you dont need " in front of the cell text (numbers), because the sheet names dont have that either)

    IF you dont have too many tabs, or the sheet names will be easy to create (like your numbers), then just type then in. If you have a lot of sheet names, let me know and I wil give you a UDF to create them all

    To create the named range, 1st, make up the list sheet names (I put them H, you can put them anywhere)
    Highlight the list, right-click on then and select Name a Range.
    Call it Sheet_Names
    then copy/paste =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheet_names&"'!B5:B100"),B5,INDIRECT("'"&Sheet_names&"'!C5:C100")))
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 08-07-2014, 07:05 AM
  2. [SOLVED] Summing in one summary tab data from multiple tabs
    By loulite in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-15-2014, 10:31 AM
  3. Replies: 0
    Last Post: 04-08-2013, 12:15 PM
  4. Replies: 6
    Last Post: 02-01-2012, 05:29 PM
  5. Summing accross multiple tabs for specific fields
    By doug2 in forum Excel General
    Replies: 2
    Last Post: 09-11-2007, 10:58 AM

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