+ Reply to Thread
Results 1 to 3 of 3

Sum values in one column based on Criteria in Multiple Columns

  1. #1
    Registered User
    Join Date
    10-12-2017
    Location
    New York
    MS-Off Ver
    2016
    Posts
    6

    Sum values in one column based on Criteria in Multiple Columns

    Hi all,

    I want to be able to sum the values of responses to a question based on multiple criteria spread out throughout more than one column.

    Please see the following image below:
    sumifs cami.JPG

    I used the following formula, but it will only sum the values based on the first column in the array
    =SUMIF(A:F,"als",G:G)
    =SUMIF(A:F,"cerebralpalsy",G:G)
    etc...

    I've thought of using a SUMIFS by doing =SUMIFS(G:G,A:A,"als",B:B,"als" .. etc.) but I want to see if there is a simpler way to use a SUMIF across multiple columns.

    Appreciate the help!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Sum values in one column based on Criteria in Multiple Columns

    Use SUMIFS for that, other options might be sumproduct but sumifs is the usual way to go. Also, instead of using whole columns it will be more efficient if you use ranges, just make sure they are all the same like A2:A2000 you also have to use G2:G2000 etc.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Sum values in one column based on Criteria in Multiple Columns

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    1
    Que1 Que2 Que3 Que4 Que5 Que6 Total
    2
    Als
    1
    3
    Als
    6
    4
    Als
    5
    5
    Als
    5
    6
    Als Als
    8
    7
    Als
    5
    Unique Value
    8
    Als
    2
    Als
    9
    Als Als Als Als Als
    1
    Als qdq
    10
    Als Als Als Als
    1
    2d2
    11
    Als Als Als
    5
    111
    d2
    12
    Als Als Als
    6
    13
    Als Als
    1
    14
    Als Als
    5
    15
    Als Als
    4
    16
    Als
    6
    17
    Als
    3
    18
    qdq 2d2 qdq d2
    2
    19
    qdq 2d2
    4
    20
    qdq 2d2
    8


    I11
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Check the attached file.

    Is it what you want ??
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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. Finding Matching Values from Multiple Columns Based on Criteria
    By rmmohan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-29-2017, 03:37 PM
  2. Sum multiple columns, each column based on criteria from different columns
    By windrain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2017, 08:24 PM
  3. Sum values based on multiple criteria in rows and columns
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-20-2015, 03:09 AM
  4. [SOLVED] Sum if based on two criteria and values in multiple rows and columns
    By Alkina in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2013, 09:18 AM
  5. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  6. Replies: 1
    Last Post: 02-14-2013, 02:32 PM
  7. Replies: 2
    Last Post: 10-05-2011, 12:43 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