+ Reply to Thread
Results 1 to 3 of 3

Converting SUMIFS to conditional Product Formula

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    Midwest, USA
    MS-Off Ver
    Office Pro 2013
    Posts
    2

    Converting SUMIFS to conditional Product Formula

    Hello,

    I am attempting to convert a SUMIFS formula to a formula that performs that exact same look up and calculations, but multiplies the returned values instead of adding them. The current formula is:

    =SUMIFS(INDEX('Daily Total Return Data'!$B$2:$GI$2915,,MATCH($A4,'Daily Total Return Data'!$B$1:$GI$1,0)),'Daily Total Return Data'!$A$2:$A$2915,">="&$B4,'Daily Total Return Data'!$A$2:$A$2915,"<="&$C4)

    I have attached a sample sheet with all most of the data cleared out.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Converting SUMIFS to conditional Product Formula

    I assume you want to ignore any zero values otherwise the PRODUCT will be zero, so try this "array formula"

    =PRODUCT(IF('Daily Total Return Data'!$A$2:$A$2915>=$B4,IF('Daily Total Return Data'!$A$2:$A$2915<=$C4,IF(INDEX('Daily Total Return Data'!$B$2:$GI$2915,,MATCH($A4,'Daily Total Return Data'!$B$1:$GI$1,0))<>0,INDEX('Daily Total Return Data'!$B$2:$GI$2915,,MATCH($A4,'Daily Total Return Data'!$B$1:$GI$1,0))))))

    confirmed with CTRL+SHIFT+ENTER


    ...or this version is shorter but may be slower.....

    =PRODUCT(IF('Daily Total Return Data'!$A$2:$A$2915>=$B4,IF('Daily Total Return Data'!$A$2:$A$2915<=$C4,IF('Daily Total Return Data'!$B$1:$GI$1=$A4,IF('Daily Total Return Data'!$B$2:$GI$2915<>0,'Daily Total Return Data'!$B$2:$GI$2915)))))
    Last edited by daddylonglegs; 08-21-2014 at 03:52 PM.
    Audere est facere

  3. #3
    Registered User
    Join Date
    08-21-2014
    Location
    Midwest, USA
    MS-Off Ver
    Office Pro 2013
    Posts
    2

    Re: Converting SUMIFS to conditional Product Formula

    That did it! Thanks for the assistance.

+ 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. Should I use Sumifs or Sum product.
    By jeci80 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-26-2014, 11:05 PM
  2. SUMIFs Formula - Converting Hours to Days to use as criteria
    By jennarenae in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2013, 10:09 PM
  3. [SOLVED] Converting SUMIFS to 2003
    By xtricky in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2012, 03:38 PM
  4. [SOLVED] SUMIFS to total product A and B
    By Subject_Name_Here in forum Excel General
    Replies: 5
    Last Post: 05-26-2012, 11:56 AM
  5. Conditional PRODUCT function formula
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 10-01-2009, 12:10 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