+ Reply to Thread
Results 1 to 13 of 13

Sumproduct with multiple criterias

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Unhappy Sumproduct with multiple criterias

    I want to use SUMPRODUCT with multiple criteria...I want to count if how many certificates have been completed when filtered by year,,

    I have a dropped down list by year in H3 (it contains a data validation of years...2009,2010,2011,2013....) to be used in filtering O13:O5167
    but I only want to count O13:O5167 IF M13:M5167 has a punchlist value "OK"

    please help me,,,,,
    Attached Files Attached Files
    Last edited by JERICA; 05-04-2013 at 11:28 AM.

  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,933

    Re: Sumproduct with multiple criterias

    Hi and welcome to the forum

    Just add it to the end...

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(M13:M5167="OK"))
    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
    05-01-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Sumproduct with multiple criterias

    What does (-- do?

  4. #4
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Sumproduct with multiple criterias

    wow...u are really a great help! u saved me! =) it's working,,,
    i hope it's not too much to ask,,,i understand formulas but i am having difficulties formulating them...
    if i want to do the same but this time i have 3 criterias

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(N13:N5167="OK"))*(P13:P5167 HAS A DATE VALUE AND (Q13:Q5167 HAS A DATE VALUE, THEN COUNT

    >:D<

  5. #5
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Sumproduct with multiple criterias

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    Just add it to the end...

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(M13:M5167="OK"))

    -----


    wow...u are really a great help! u saved me! =) it's working,,,
    i hope it's not too much to ask,,,i understand formulas but i am having difficulties formulating them...
    if i want to do the same but this time i have 3 criterias

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(N13:N5167="OK"))*(P13:P5167 HAS A DATE VALUE AND (Q13:Q5167 HAS A DATE VALUE, THEN COUNT

    >:D<

  6. #6
    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,933

    Re: Sumproduct with multiple criterias

    =sumproduct(--(year(o13:o5167)=h3)*(n13:n5167="ok"))*(p13:p5167>0)*(q13:q5167>0))

  7. #7
    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,933

    Re: Sumproduct with multiple criterias

    Happy to help and thanks for the feedback

  8. #8
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Sumproduct with multiple criterias

    Quote Originally Posted by FDibbins View Post
    =sumproduct(--(year(o13:o5167)=h3)*(n13:n5167="ok"))*(p13:p5167>0)*(q13:q5167>0))

    it is returning a wrong result...bec when i tried to filter 2013 year with "OK" value in N column and a date value in P column and filtered year 2013 in Q column result should be 15 in the cell I5...

  9. #9
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Sumproduct with multiple criterias

    you are a big helped...i thought i'm going crazy everytime i formulate wrong formulas...

  10. #10
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Sumproduct with multiple criterias

    Quote Originally Posted by FDibbins View Post
    Happy to help and thanks for the feedback

    you are a big helped...i thought i'm going crazy every time i formulate wrong formulas...

  11. #11
    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,933

    Re: Sumproduct with multiple criterias

    When I used this, I got 17?

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(N13:N5167="OK")*(P13:P5167>0)*(Q13:Q5167>0))

  12. #12
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Sumproduct with multiple criterias

    Quote Originally Posted by FDibbins View Post
    When I used this, I got 17?

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(N13:N5167="OK")*(P13:P5167>0)*(Q13:Q5167>0))

    Quote Originally Posted by FDibbins View Post
    When I used this, I got 17?

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(N13:N5167="OK")*(P13:P5167>0)*(Q13:Q5167>0))
    HELLO...sorry my bad...i am referring with different column to count,,,it's alright now...i got it...
    i think i will be needing the assistance of this forum 'till i finally complete my file. I never registered to any forums like this..it's my first time,,i tend to just google everything...Thanks to you and to others who are helping to solve some formula issues.. it's more of like an answered prayer...again,,,SUPER BIG THANKS!

  13. #13
    Registered User
    Join Date
    04-04-2013
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Sumproduct with multiple criterias

    Quote Originally Posted by FDibbins View Post
    When I used this, I got 17?

    =SUMPRODUCT(--(YEAR(O13:O5167)=H3)*(N13:N5167="OK")*(P13:P5167>0)*(Q13:Q5167>0))
    ----------------
    Hi,,,

    i hope you don't mind,,,,this is regarding with the same excel sheet that i have attached the other day ago...i wanted to ask if i want to count a multiple criteria,,,lets say countifs N column is "OK"
    and
    P= date value
    and
    Q=date value
    then count 1


    --------
    and also...

    if N column is "ongoing" and P column has no date OR N column is "OK" or "No PUNCHLIST" value and P column has no date

    looking forward for your help.

    Thanks in advance...

+ 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