+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT - SUM multiple range with Multiple Column Criteria

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    SUMPRODUCT - SUM multiple range with Multiple Column Criteria

    Country Sales Person Product Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
    Canada John Milk 1 2 3 4 5 6 7 8 9 10 11 12
    Canada John Fruit 2 2 3 3 4 4 5 5 6 6 7 7
    Canada John Meat 11 21 31 41 51 61 71 81 91 101 111 121
    USA John Milk 21 22 23 24 25 26 27 28 29 210 211 212

    Given the table above, how do I make a SUMPRODUCT formula that sums 'Jan' to 'Dec' dynamically based on other columns criteria.

    i.e. There's input somewhere on Excel cells for
    From Month = "May"
    End Month = "Oct"
    Country = Canada
    Sales Person = "John"
    Product = "Meat"

    Given the criteria above, my SUMPRODUCT result should be 456.

    I tried the formula below but it's not giving me any value.

    Please Login or Register  to view this content.
    FYI...the actual file that I've created, the range is actually a table...however, the above formula that I've created is a test to see if I can sum multiple range with multiple column criteria.

    Please Login or Register  to view this content.
    Last edited by dluhut; 05-14-2019 at 02:52 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: SUMPRODUCT - SUM multiple range with Multiple Column Criteria

    As long as your months are actual dates, rather than text, try
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Excel 2013 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    1
    Country Sales Person Product
    01/01/2019
    01/02/2019
    01/03/2019
    01/04/2019
    01/05/2019
    01/06/2019
    01/07/2019
    01/08/2019
    01/09/2019
    01/10/2019
    01/11/2019
    01/12/2019
    2
    Canada John Milk
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    3
    Canada John Fruit
    2
    2
    3
    3
    4
    4
    5
    5
    6
    6
    7
    7
    4
    Canada John Meat
    11
    21
    31
    41
    51
    61
    71
    81
    91
    101
    111
    121
    5
    USA John Milk
    21
    22
    23
    24
    25
    26
    27
    28
    29
    210
    211
    212
    6
    7
    8
    9
    10
    01/05/2019
    456
    11
    01/10/2019
    12
    Canada
    13
    John
    14
    Meat
    Sheet: Data

  3. #3
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: SUMPRODUCT - SUM multiple range with Multiple Column Criteria

    Hi Fluff13...the months are actually 'Text' and they're going across the columns.

    Just as how I've created above.

    PS: How did you create such a beautiful table?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: SUMPRODUCT - SUM multiple range with Multiple Column Criteria

    The table is courtesy of Forum Tools available here https://www.dropbox.com/s/umis204g6e...ools.xlam?dl=0
    If you sue it, then you need to select the BB code option, rather then the HTML option.

    I see that you edited you post as I posted.
    As the months are text, it's beyond my knowledge of formulae, so hopefully somebody else will step in.

  5. #5
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: SUMPRODUCT - SUM multiple range with Multiple Column Criteria

    I was able to have the formula to work using Table.

    And the solution is at the thread.

    And thanks Fluff13 for the information on the BB code option. Will definitely try it.

  6. #6
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: SUMPRODUCT - SUM multiple range with Multiple Column Criteria

    Am curious to know, how would the formula be if I'm not using Table but range instead, and that the month are indeed text.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: SUMPRODUCT - SUM multiple range with Multiple Column Criteria

    Just figured it out, as a table you can use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or as normal data
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] sumproduct with multiple criteria and dynamic range
    By mytsurfer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-11-2019, 12:27 PM
  2. SUMPRODUCT with dynamic range AND multiple criteria on the same row
    By dluhut in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2017, 02:02 PM
  3. Replies: 2
    Last Post: 01-20-2017, 04:27 PM
  4. [SOLVED] Sumproduct Formula - With date range and multiple criteria
    By kellydvorak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-19-2014, 09:07 PM
  5. Replies: 6
    Last Post: 08-04-2013, 11:53 AM
  6. Sumproduct with multiple criteria & dynamic range
    By e_lad in forum Excel General
    Replies: 10
    Last Post: 03-17-2010, 09:15 AM
  7. Sumproduct - multiple criteria in Column A
    By briank in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2005, 03:06 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