+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT and SUMIF with multiple ranges/criteria

  1. #1
    Registered User
    Join Date
    08-19-2011
    Location
    Lonon
    MS-Off Ver
    Excel 2003
    Posts
    2

    SUMPRODUCT and SUMIF with multiple ranges/criteria

    I'm attempting to use SUMPRODUCT with SUMIFS to calculate the sum of data based on two different ranges of criteria.

    It works with =SUMPRODUCT(SUMIFS($D$2:$D$9,$A$2:$A$9,G2,$B$2:$B$9,$K$2:$K$9)) using only one of the ranges, but when I add the second with =SUMPRODUCT(SUMIFS($D$2:$D$9,$A$2:$A$9,G2,$B$2:$B$9,$K$2:$K$9,$C$2:$C$9,$M$2:$M$9)), it stops working.

    That's possibly made no sense whatsoever, so I've put together a quick mock of what I'm doing

    In columns A to D, I have a dataset which is sales by country, city and region.

    Columns G and H, sum up sales by country, depending on the parameters (cities and regions) listed in columns K and M. As said above, I can get my formula in column H to work with K, but when I add M, it stops working

    Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: SUMPRODUCT and SUMIF with multiple ranges/criteria

    that's because what you are doing is summing up column D IF:
    - column A = England
    - column B = London AND column C = blank
    no such entries. column C is always filled up.

    because you list a range of city and region, it also sums column D IF:
    - column A = England
    - column B = Leeds AND column C = blank
    no such entries. column C is always filled up.
    and so on.

    to have it work, column M must be filled with asterisk, to say it can be anything

    a lurker since 2011 huh? =)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    08-19-2011
    Location
    Lonon
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: SUMPRODUCT and SUMIF with multiple ranges/criteria

    Thanks for responding. But say I wanted to list North, South and West in column M?

    Hah! What can I say? I’ve managed to find answers to all my questions over the past six/seven years.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: SUMPRODUCT and SUMIF with multiple ranges/criteria

    Please try at H2 with Ctrl+Shift+Enter and drag down

    =SUM(SUMIFS($D$2:$D$9,$A$2:$A$9,G2,$B$2:$B$9,$K$1:$K$8,$C$2:$C$9,TRANSPOSE($M$2:$M$8)))
    Attached Files Attached Files

+ 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. Combine sumif/sumproduct or sumproduct with multiple criteria
    By sab128 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2018, 08:25 AM
  2. [SOLVED] Sumif or Sumproduct with multiple criteria ??
    By Sultix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2018, 04:51 PM
  3. [SOLVED] SUMIF/SUMPRODUCT Multiple Criteria
    By melissanelson110 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2017, 02:20 PM
  4. [SOLVED] Sumif or Sumproduct with multiple criteria
    By BPSJACK in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-30-2015, 06:25 AM
  5. Replies: 11
    Last Post: 02-12-2015, 10:44 AM
  6. Sumif or sumproduct with multiple criteria
    By msoregon91 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 03:56 PM
  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