+ Reply to Thread
Results 1 to 6 of 6

Need Help w/ Sumif Type Function - Recurring Values in Column and Row Criteria

  1. #1
    Registered User
    Join Date
    12-03-2019
    Location
    NYC
    MS-Off Ver
    Office 2016
    Posts
    3

    Need Help w/ Sumif Type Function - Recurring Values in Column and Row Criteria

    Hi all - need some help with a function that is effectively a sumifs with recurring column and row criteria. See the attachment. The cells highlighted yellow are the cells I need to solve for.

    Thanks.
    Attached Files Attached Files

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

    Re: Need Help w/ Sumif Type Function - Recurring Values in Column and Row Criteria

    In Cell B12

    =SUMPRODUCT(($A$3:$A$9=$A12)*($B$2:$I$2=B$11)*($B$3:$I$9))


    Copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    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: Need Help w/ Sumif Type Function - Recurring Values in Column and Row Criteria

    try this in cell B12 =SUMPRODUCT(($B$2:$I$2=B$11)*($A$3:$A$9=$A12),$B$3:$I$9)
    then drag toward right and down.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    12-03-2019
    Location
    NYC
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Need Help w/ Sumif Type Function - Recurring Values in Column and Row Criteria

    Excellent. Much appreciated. I already tried the response above yours - it works on the example I gave but from some reason didn't work on the actual data set. Yours was perfect. Thanks.

    Would it be easy to explain what's happening in that function? Using a sumproduct here doesn't intuitively make sense to me, although I was trying it based on a quick google search.

  5. #5
    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: Need Help w/ Sumif Type Function - Recurring Values in Column and Row Criteria

    it works like it is setting up a table, looking across the top - row 2, for all matches of what is in either cell B11 or C11, the next section looks down column A for a match for the items in A12, A13 or A14 and since there are multiples it is aggregating them, the last part is taking the data in B3 through I9 and summing all the cells that match 2015 and product sales for example.
    I tend to use it a lot for structures like the one you posted.

  6. #6
    Registered User
    Join Date
    12-03-2019
    Location
    NYC
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Need Help w/ Sumif Type Function - Recurring Values in Column and Row Criteria

    I was actually confused about the asterisk in the first clause of the function. Didnt realize the asterisk is the AND operator in sumproduct functions. Makes sense now. Thanks

+ 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 3 largest values using LARGE function based on criteria in another column
    By cathyharland in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2018, 02:17 AM
  2. Replies: 4
    Last Post: 03-14-2017, 09:24 PM
  3. [SOLVED] I want to use SUMIF function to give me prices separately for + n -ve values in column A
    By omega0010 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2017, 10:00 AM
  4. [SOLVED] Macro that will sum values from column if rows meet certain criteria [better sumif]
    By SorryForMyEnglish in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2015, 09:40 PM
  5. PowerPivot SUMIF type Calculated Column ERROR
    By matt4003 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-26-2015, 04:17 AM
  6. Replies: 1
    Last Post: 05-17-2011, 11:39 PM
  7. [SOLVED] count recurring yes/no type data
    By Peggy Sue in forum Excel General
    Replies: 5
    Last Post: 06-09-2006, 08:50 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