+ Reply to Thread
Results 1 to 8 of 8

SUMIF/SUMPRODUCT Multiple Criteria

  1. #1
    Registered User
    Join Date
    08-01-2017
    Location
    CT, USA
    MS-Off Ver
    2016
    Posts
    3

    Question SUMIF/SUMPRODUCT Multiple Criteria

    Hi all,

    I've seen similar posts on here but they have not quite answered my question. I have a range of data that I need to sum based on multiple criteria. Please see the attached excel file.

    I'd like to be able to sum Column A with a criteria that is A,B,C,D (defined in E6:E9) and 1,2,3,4 (defined in F6:F9). I'd like to reference Columns E and F so that I could add or remove criteria in the future without changing the formula. I've seen this done with one criteria using something like =SUMPRODUCT(SUMIF(B1:B9,E6:E9,A1:A9)) to get 423, but I'm looking further to then see out of that, the sum of numbers that have 1,2,3, or 4 in column c.

    Thank you in advance!
    Attached Files Attached Files

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

    Re: SUMIF/SUMPRODUCT Multiple Criteria

    I would solve this kind of jobs with a pivot table.

    See the attached file.
    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.

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: SUMIF/SUMPRODUCT Multiple Criteria

    Perhaps

    =SUMPRODUCT(SUMIFS($A$1:$A$9,$C$1:$C$9,F6:F9))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-01-2017
    Location
    CT, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: SUMIF/SUMPRODUCT Multiple Criteria

    I'd need this to be done with a single formula if possible. The answer that should be populated is 238. The previous responses yielded an answer of 241?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIF/SUMPRODUCT Multiple Criteria

    When you do 2 sets of multiple criteria, each set must be transposed of each other.
    i.e., one a column like E6:E9, the other a row like H6:K6

    Try
    =SUMPRODUCT(SUMIFS(A1:A9,B1:B9,E6:E9,C1:C9,H6:K6))

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

    Re: SUMIF/SUMPRODUCT Multiple Criteria

    The previous responses yielded an answer of 241?
    Which is correct if you add (also) 3 to you criteria (see your example).

  7. #7
    Registered User
    Join Date
    08-01-2017
    Location
    CT, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: SUMIF/SUMPRODUCT Multiple Criteria

    Ah Jonmo1's solution worked, thank you!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIF/SUMPRODUCT Multiple Criteria

    You're welcome.

+ 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. SUMIF or SUMPRODUCT formula to SUM totals based on multiple criteria
    By relmasri in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-01-2016, 01:08 PM
  2. [SOLVED] Sumif or Sumproduct with multiple criteria
    By BPSJACK in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-30-2015, 06:25 AM
  3. [SOLVED] index match and sumproduct or sumif on multiple criteria
    By tabkaz in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-02-2014, 06:20 AM
  4. Sumif or sumproduct with multiple criteria
    By msoregon91 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 03:56 PM
  5. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  6. Sumproduct/sumif/indirect across multiple workbooks, worksheets, multiple criteria
    By robgardner15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 02:35 AM
  7. SUMIF Multiple Criteria or SUMPRODUCT?
    By gdwright07 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-02-2008, 12:15 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