+ Reply to Thread
Results 1 to 4 of 4

Need help with triple sumproduct, please

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    New Mexico
    MS-Off Ver
    Excel 2007
    Posts
    2

    Need help with triple sumproduct, please

    I am trying to use the sumproduct formula with 3 criteria, but it is not totally working.
    Here is what I have:

    =SUMPRODUCT(('Entry Table'!M4:M18016>0)*('Entry Table'!N4:N18016="PASS")*('Entry Table'!E4:E18016="Yeast/Mold"))

    I want to count the number of entries that have three things in common: a column M value greater than 0, a column N value of "PASS", and a column E value of "Yeast/Mold".

    The formula is counting column M values that are equal to zero. Can someone help me fix it so that it only counts when column M values are greater than zero? Thank you for your help!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need help with triple sumproduct, please

    Hi and welcome to the forum

    Try countifS() instead...

    =COUNTIFS('Entry Table'!M4:M18016,">0",'Entry Table'!N4:N18016,"PASS",'Entry Table'!E4:E18016,"Yeast/Mold")

    If that doesnt work, upload a sample workbook
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-03-2013
    Location
    New Mexico
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need help with triple sumproduct, please

    Thank you for your help. This works!

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

    Re: Need help with triple sumproduct, please

    COUNTIFS is better but your SUMPRODUCT should work - perhaps the zeroes are formatted as text?
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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