+ Reply to Thread
Results 1 to 3 of 3

Sum several columns based on column headings.

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    6

    Sum several columns based on column headings.

    Hi

    I would like to sum several columns based on column headings.
    Please see example below


    A A B C D E E E
    1 1 2 2 5 1 2 3
    3 1 3 2 3 4 3 2
    1 4 2 2 5 1 2 3
    3 1 3 2 3 4 3 2
    1 5 2 2 5 1 2 2

    TOTAL
    A X
    B X
    C X
    D X
    E X

    Your help would be much appreciated.

    Thank you

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Sum several columns based on column headings.

    there, no doubt, can be solutions far more elegant than this one. see attached.

    there are a few caveats to this solution approach - tableau should be sorted such that "like" column labels are grouped together (A,A and E,E,E etc.); your Summary (Total) tableau should not be underneath your data tableau; assuming that all columns have equal number of rows of data.

    EDIT: updated with another approach.

    #1
    Please Login or Register  to view this content.
    #2
    Please Login or Register  to view this content.
    Last edited by icestationzbra; 06-27-2012 at 11:49 AM. Reason: different approaches
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    6

    Re: Sum several columns based on column headings.

    Hi

    Thank you for your solution, but I forgot to mention that columns are in random orders and some columns need to be ingored.
    I can not move the data as its in the correct format to upload.


    A (A) A (A) B (B) D (D) J (J) D (D)
    1 2 3 4 4 6 1 6 6 4 6 4
    2 3 4 4 6 1 6 6 4 6 4 1
    1 2 3 4 4 6 1 6 6 4 6 4
    2 3 4 4 6 1 6 6 4 6 4 1
    1 2 3 4 4 6 1 6 6 4 6 4
    2 3 4 4 6 1 6 6 4 6 4 1


    Total
    A X
    B X
    D X
    J X



    Ignore all columns with brackets

    Thnak you
    Last edited by Jario; 06-27-2012 at 11:56 AM.

+ 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