+ Reply to Thread
Results 1 to 7 of 7

Sumproduct of multiple column (same row) that meet multiple criterias

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    3

    Sumproduct of multiple column (same row) that meet multiple criterias

    Hi...

    I was wondering if you could use function of Sumproduct of multiple column (but in the same row) that meet multiple criterias.


    Please find attached excel file for clarity.

    Thank you very much.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Sumproduct of multiple column (same row) that meet multiple criterias

    answer withdrawn...
    Last edited by Glenn Kennedy; 10-28-2016 at 03:38 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Sumproduct of multiple column (same row) that meet multiple criterias

    In C8:
    =SUMPRODUCT(($B$1:$B$6=B8)*($B$2:$B$7=B9)*($C$1:$C$6))

    In C9:
    =SUMPRODUCT(($B$1:$B$6=B8)*($B$2:$B$7=B9)*($C$1:$C$6)*$C$2:$C$7)/C8

  4. #4
    Registered User
    Join Date
    06-21-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Sumproduct of multiple column (same row) that meet multiple criterias

    First, I thank you for your response.

    But unfortunately that's not what I meant.

    Let me run through it:
    1. It needs to check each column that meets "Criteria A" (Quantity) and at the same time check column right below it (its corresponding price) to also meet "Criteria B".
    2. Multiply both column Quantity and Price

    The correct answer if we do it by manual calculation ---> ((C1*C2)+(C3*C4))/C8 = 8.67 (not 9).

    So in the excel file sample, it would only calculate:
    ((C1*C2)+(C3*C4))/C8

    and not:
    ((C1*C2)+(C3*C4)+(C5*C6))/C8 since C5 meets "Criteria A" but C6 doesn't meet "Criteria B".

    Excel Picture.jpg

    Hope it clarifies.

    Thank you.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Sumproduct of multiple column (same row) that meet multiple criterias

    I think you read my incorrect answer (Post 2). Please look at Post 3.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 10-28-2016 at 03:54 AM.

  6. #6
    Registered User
    Join Date
    06-21-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Sumproduct of multiple column (same row) that meet multiple criterias

    Yes, that's exactley what I need.

    Thanks much Glenn...

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Sumproduct of multiple column (same row) that meet multiple criterias

    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. [SOLVED] Formula to Sumproduct with multiple criterias
    By kunjanee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2016, 01:56 PM
  2. Sumproduct for ranking with multiple criterias; maybe sumifs?
    By myth_victor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2015, 10:44 AM
  3. [SOLVED] How to ignore zero values in sumproduct with multiple criterias
    By malcolmc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2014, 12:06 AM
  4. [SOLVED] Sumproduct multiple criterias with dates?
    By preddy1110 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2014, 07:51 AM
  5. Replies: 0
    Last Post: 05-05-2013, 05:47 AM
  6. [SOLVED] Sumproduct with multiple criterias
    By JERICA in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-04-2013, 07:09 PM
  7. [SOLVED] How to build a SumProduct with multiple criterias.
    By gouleta in forum Excel General
    Replies: 4
    Last Post: 06-04-2012, 12:23 PM

Tags for this Thread

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