+ Reply to Thread
Results 1 to 4 of 4

Formula for summing columns with same header by each row

  1. #1
    Registered User
    Join Date
    12-14-2021
    Location
    Largo, Florida
    MS-Off Ver
    2019
    Posts
    5

    Formula for summing columns with same header by each row

    Hi - I need to sum each of the columns with the same header by the department number in column A. So, each department will have a total for Dental, Life AD&D, Vision, etc. Can someone help me?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Formula for summing columns with same header by each row

    In B16 copied across and down:

    =SUMPRODUCT(($A$2:$A$11=$A16)*($B$1:$O$1=B$15),$B$2:$O$11)

    AliGW on MS365 Insider (Windows) 64 bit

    A
    B
    C
    D
    E
    F
    15
    Life AD&D Dental Short-Term Diability Long-Term Disability Vision
    16
    200
    60.75
    93.94
    0.00
    0.00
    25.40
    17
    300
    101.67
    54.00
    0.00
    6.00
    19.05
    18
    400
    54.65
    80.84
    0.00
    44.09
    19.05
    19
    500
    755.96
    545.29
    2.04
    228.25
    121.92
    20
    600
    20.25
    1.50
    0.00
    76.66
    6.35
    21
    700
    6.75
    35.12
    0.00
    0.00
    6.35
    22
    800
    25.55
    10.60
    0.00
    0.00
    0.00
    23
    900
    13.50
    45.72
    0.00
    0.00
    12.70
    24
    1000
    86.20
    56.82
    0.00
    21.08
    12.70
    25
    1100
    0.00
    0.00
    0.00
    0.00
    0.00
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-14-2021
    Location
    Largo, Florida
    MS-Off Ver
    2019
    Posts
    5

    Re: Formula for summing columns with same header by each row

    This worked, thank you so much!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Formula for summing columns with same header by each row

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Insert 3 columns after each column and add header and formula in new columns
    By G.Bregvadze in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-29-2020, 03:53 AM
  2. Formula for summing values from different columns with multiple criteria
    By Pulleritz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-05-2018, 09:14 PM
  3. [SOLVED] Formula for Summing Multiple Columns
    By jashhar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2015, 08:44 AM
  4. Formula array summing a dynamic range of columns
    By UMBiii in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2014, 05:07 PM
  5. [SOLVED] Help with Formula for getting Header columns
    By kamfl610 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-18-2013, 07:38 AM
  6. Replies: 2
    Last Post: 10-13-2012, 03:30 AM
  7. Summing values according to the header
    By poveren in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-14-2008, 10:56 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