+ Reply to Thread
Results 1 to 5 of 5

ProductIF formula with multiple criteria

  1. #1
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    ProductIF formula with multiple criteria

    Hello,

    I am trying to work out returns if a score falls into given class boundaries, using the ProductIF formula:

    Here's what I am using in my simple example, which is attached:

    {=PRODUCT(IF($D$3:$D$12>=H3,$D$3:$D$12<I3,1+$C$3:$C$12))}.

    The data is:
    Return Score
    5.00% -0.35
    -2.00% -0.34
    3.00% -0.33
    -0.25% -0.32
    2.00% -0.31
    1.00% -0.30
    0.57% -0.29
    -2.00% -0.28
    0.72% -0.27
    -0.92% -0.26

    and the classes are:

    Bottom limit Upper limit
    -0.34 -0.29
    -0.29 -0.24
    -0.24 -0.19

    Unfortunately, I keep getting the wrong answers (As shown in the attachment). Can anyone help?

    Best regards,
    Excel_Arate

  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
    44,053

    Re: ProductIF formula with multiple criteria

    I don't >>>quite<<< get your expected answers. I wonder fi PRODUCT & SUMPRODUCT work with different numbers of dps....


    =SUMPRODUCT(($D$3:$D$12>=H3)*($D$3:$D$12<I3)*($C$3:$C$12))
    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 Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: ProductIF formula with multiple criteria

    I'm not sure what the TRUE clause of your IF function is trying to do. You have this:

    IF($D$3:$D$12>=H3, $D$3:$D$12<I3, 1+$C$3:$C$12)

    so you have a condition for column D being greater than or equal to H3 - if it's true then you have another condition for column D being less than I3. I suspect that you want both those conditions to apply through an AND, so perhaps your formula should be:

    {=PRODUCT(IF(($D$3:$D$12>=H3)*($D$3:$D$12<I3),1+$C$3:$C$12))}

    When you are dealing with arrays, the * symbol is equivalent to AND.

    Hope this helps.

    Pete

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: ProductIF formula with multiple criteria

    SUMPRODUCT is different from PRODUCT.

    Here is a solution with PRODUCT.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    EDIT:

    Note: I now see that Pete came up with the same formula fifteen minutes ago, but he only does not subtract a 1 from the product.
    As a result, his answers for the first 2 cases are around 100% and my answers are around 0 percent.
    Last edited by HansDouwe; 02-15-2024 at 03:06 PM.

  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
    44,053

    Re: ProductIF formula with multiple criteria

    Fair enough! I never needed to use PRODUCT.

+ 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. Productif Function?
    By joseli in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-11-2014, 01:50 PM
  2. ProductIf
    By pdsvsv in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-22-2010, 07:58 PM
  3. Productif
    By naturallight in forum Excel General
    Replies: 6
    Last Post: 11-17-2009, 01:48 PM
  4. ProductIF with Mutiple Criteria
    By cgriffis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2009, 07:48 AM
  5. multiple criteria SUMIF or PRODUCTIF
    By RebeccaCG in forum Excel General
    Replies: 4
    Last Post: 03-06-2009, 03:05 PM
  6. PRODUCTIF function
    By igesta in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2006, 07:26 AM
  7. [SOLVED] I need a productif type function
    By Mitch in forum Excel General
    Replies: 5
    Last Post: 05-04-2006, 12:40 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