+ Reply to Thread
Results 1 to 9 of 9

Sum the total of a column value that exist in multiple tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    KC
    MS-Off Ver
    2013
    Posts
    5

    Sum the total of a column value that exist in multiple tabs

    I have a workbook that contains several different tabs. The first tab is a summary of the values that exist in the other tabs. I have a column value that may exist in one or more of the other tabs that I need to sum the totals of 3 of its columns. In the attached spreadsheet, I will use cell A24 (10547) in the summary tab as an example. I need to calculate the following values for Sensor 10547 through all tabs (FL, NY, OK, PA, SC) Total Miles Flown, Rejected Miles and Smearing Miles. The current values have been manually calculated.Excel_Forum_Reflight_Analysis.xlsx

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Sum the total of a column value that exist in multiple tabs

    This formula worked for total miles flown in cell C18. You could adjust it to find rejected miles and smearing miles.

    =SUMPRODUCT((FL!$H$4:$H$35)*(FL!$B$4:$B$35=Summary!$A18))+
    SUMPRODUCT((NY!$H$4:$H$154)*(NY!$B$4:$B$154=Summary!$A18))+
    SUMPRODUCT((OK!$H$4:$H$99)*(OK!$B$4:$B$99=Summary!$A18))+
    SUMPRODUCT((PA!$H$4:$H$68)*(PA!$B$4:$B$68=Summary!$A18))+
    SUMPRODUCT((SC!$H$4:$H$187)*(SC!$B$4:$B$187=Summary!$A18))
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  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
    53,049

    Re: Sum the total of a column value that exist in multiple tabs

    a different approach...
    1. make a list of all your sheet names, then give that list a range name - I used States.
    2. Use this in C18, copied down...
    =SUMPRODUCT(SUMIF(INDIRECT("'"&States&"'!B4:B200"),A18,INDIRECT("'"&States&"'!H4:H200")))
    Hor the other totals, adjust the H4:H200 range accordingly
    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

  4. #4
    Registered User
    Join Date
    04-14-2015
    Location
    KC
    MS-Off Ver
    2013
    Posts
    5

    Re: Sum the total of a column value that exist in multiple tabs

    Perfect! Thanks so much for the help.

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

    Re: Sum the total of a column value that exist in multiple tabs

    add the totals (in the sheets) per column in row 1, instead of below the table.

    Then you only have to refer (in the master sheet) to the values in row 1 (in the other sheets).
    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.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum the total of a column value that exist in multiple tabs

    I suggest a completely different approach to the data handling. Eliminate all the State worksheets and have all the data in a single table. Then for the summaries produce two pivot tables. No formulae are required and the updating of the summary is simply done by right clicking in each pivot table and refresh.

    The proposal is located on the green tabs.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

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

    Re: Sum the total of a column value that exist in multiple tabs

    Great job, newdoverman

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum the total of a column value that exist in multiple tabs

    Thanks, it is a case of "Let Excel do the work".

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum the total of a column value that exist in multiple tabs

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] VBA code to merge multiple sheet with multiple tabs into one workbook in different tabs
    By Jagdev in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2015, 07:42 AM
  2. Running a tally of multiple tabs (formatted) to reach agrand total
    By Zadder1212 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2014, 05:40 PM
  3. add up total of users minutes over multiple tabs
    By petelomax in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-06-2014, 10:40 AM
  4. How to combine data from multiple rows when common column headings exist?
    By pkoury in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-01-2013, 10:43 AM
  5. Replies: 1
    Last Post: 02-29-2012, 02:23 PM

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