+ Reply to Thread
Results 1 to 8 of 8

SUMPRODUCT(SUMIFS) How do I use them?

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    61

    SUMPRODUCT(SUMIFS) How do I use them?

    I would like to sumifs for multiple criteria on a single range. I have seen someone using sumproduct(with sumifs).
    However I couldn't get it to work properly.

    I have attached a sample file to illustrate my problem.
    sumproductsumifs.xlsx
    The actual sum that I should be getting is 36962 but my formula only returns me 20908.

    Please help to solve is it something wrong with how I construct the formula, or do you know of better ways to get the final result (pivot is not a choice for my problem).


    Thanks,
    Ray

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMPRODUCT(SUMIFS) How do I use them?

    Try

    =SUMPRODUCT($F$9:$F$31,(C9:C31=E33)*((D9:D31=D35)+(D9:D31=D36))*((E9:E31=D38)+(E9:E31=D39)))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMPRODUCT(SUMIFS) How do I use them?

    Hi,

    =SUMPRODUCT((C9:C31=E33)*((D9:D31=D35)+(D9:D31=D36))*((E9:E31=D38)+(E9:E31=D39))*$F$9:$F$31)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMPRODUCT(SUMIFS) How do I use them?

    By the way. the issue you were having was the way in which you were trying to combine SUMIFS and SUMPRODUCT. Effectively, the part:

    D9:D31,D35:D36

    for example, you intended to mean "where the value in D9:D31 is either of the values in D35 and D36"

    but Excel could not interpret this in your set-up. (The use of the + sign within the SUMPRODUCT solution effectively acts as an OR operator.)

    Not sure if there is a similar way to coerce SUMIFS with Boolean logic.

    Regards

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: SUMPRODUCT(SUMIFS) How do I use them?

    First of all, thanks Ace and XOR for showing how to make use of the plus signs.

    But I have another issue with using the + sign.

    So sorry, that I did not provide a good example in the sample.
    In my actual report, I have to allow other users to select sometimes just 1 product type or sometimes up to 10 product types.

    I had previously put them into a dynamic named range(using the offset so if more product types are selected, the name range will automatically include more).
    I don't see how the plus sign can work for this situation.

    I'm totally fine too to use other formula than sumproduct in this case.

  6. #6
    Registered User
    Join Date
    09-10-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: SUMPRODUCT(SUMIFS) How do I use them?

    Let me know if u want me to provide a better sample report that illustrate my problem.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMPRODUCT(SUMIFS) How do I use them?

    That's fine. You can use:

    =SUMPRODUCT((C9:C31=E33)*(ISNUMBER(MATCH(D9:D31,D35:D36,0)))*(ISNUMBER(MATCH(E9:E31,D38:D39,0)))*$F$9:$F$31)

    Regards

  8. #8
    Registered User
    Join Date
    09-10-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: SUMPRODUCT(SUMIFS) How do I use them?

    Gosh you guys are really genius!

    Thanks so much, I should have come to you guys earlier. I have spent the whole morning just to figure this out.

+ 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] SUMIFS to SUMPRODUCT
    By plsm5882 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2013, 05:30 PM
  2. [SOLVED] SUMIFS to SUMPRODUCT
    By JungleJme in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-13-2012, 12:14 PM
  3. [SOLVED] Sumifs ,or SUMPRODUCT
    By jamilm in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2012, 06:20 PM
  4. Sumifs Vs Sumproduct
    By _Lewis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-21-2010, 11:28 AM
  5. Sumproduct/sumifs?
    By MjRmatt in forum Excel General
    Replies: 4
    Last Post: 07-30-2010, 08:09 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