+ Reply to Thread
Results 1 to 11 of 11

Counting Multiple Criteria with Date and Text Values

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

    Red face Counting Multiple Criteria with Date and Text Values

    Hi to all online...

    I am trying to formulate a countifs syntax since i am referring to multiple criteria..is there a particular syntax in counting a date value?

    I wanted to countifs P16:P5015 column which has a date value (any date value)

    only IF

    O16:O5015 column has a date value

    AND column N16:N5015 has an "OK" OR "NO Punchlist" value.

    HTML Code: 

    Result should be: 3
    Thanks in advance...
    Last edited by JERICA; 05-05-2013 at 01:18 PM.

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

    Re: Counting Multiple Criteria with Date and Text Values


  3. #3
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Counting Multiple Criteria with Date and Text Values

    Hi JERICA

    One way is to use a helper column. In it type
    Please Login or Register  to view this content.
    Copy this down to row 5015 and count the "TRUE"s

    Regards
    Alastair

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

    Re: Counting Multiple Criteria with Date and Text Values

    Quote Originally Posted by aydeegee View Post
    Hi JERICA

    One way is to use a helper column. In it type
    Please Login or Register  to view this content.
    Copy this down to row 5015 and count the "TRUE"s

    Regards
    Alastair
    Thanks for your attention aydeegee,,,, Do you mean to say that I have to use another column and hide it to get the result?

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

    Re: Counting Multiple Criteria with Date and Text Values


  6. #6
    Registered User
    Join Date
    03-19-2013
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Counting Multiple Criteria with Date and Text Values

    Hi JERICA,

    Assuming all your dates are after the year 2000 another way of doing it might be the following:

    =COUNTIFS(P16:P5015,">=2000",O16:O5015,">=2000",N16:N5015,"ok") + COUNTIFS(P16:P5015,">=2000",O16:O5015,">=2000",N16:N5015,"no punchlist")

    Alex

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

    Re: Counting Multiple Criteria with Date and Text Values

    Quote Originally Posted by Alex H View Post
    Hi JERICA,

    Assuming all your dates are after the year 2000 another way of doing it might be the following:

    =COUNTIFS(P16:P5015,">=2000",O16:O5015,">=2000",N16:N5015,"ok") + COUNTIFS(P16:P5015,">=2000",O16:O5015,">=2000",N16:N5015,"no punchlist")

    Alex
    Alex,,,
    i wonder why its not returning a result......
    i have done similar syntax before but it's not returning a result...i wonder if there is any particular formula in counting date values....

  8. #8
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Counting Multiple Criteria with Date and Text Values

    hI jerica

    Do you mean to say that I have to use another column and hide it to get the result?
    Yes, quite right - that's how a helper column works.

    Regards
    Alastair

  9. #9
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Counting Multiple Criteria with Date and Text Values

    Hi Jerica
    =COUNTIFS(P16:P5015,">=2000",O16:O5015,">=2000",N16:N5015,"ok") + COUNTIFS(P16:P5015,">=2000",O16:O5015,">=2000",N16:N5015,"no punchlist")
    works for me!?

    Regards
    Alastair

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

    Re: Counting Multiple Criteria with Date and Text Values

    Quote Originally Posted by aydeegee View Post
    Hi Jerica
    works for me!?

    Regards
    Alastair

    Thanks so much Alex, i already figured it out...to share with...i used SUMPRODUCT..i was just guessing but when i checked the results...it's like magic hehe

    =SUMPRODUCT(--(YEAR(P16:P5015)=YEAR($P$16:$P$5015)*((M16:M5015="OK")+(M16:M5015="NO PUNCHLIST"))*(O16:O5015>0)*(P16:P5015>0)))

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

    Re: Counting Multiple Criteria with Date and Text Values

    Quote Originally Posted by aydeegee View Post
    Hi Jerica
    works for me!?

    Regards
    Alastair

    Thanks so much Alex, i already figured it out...to share with...i used SUMPRODUCT..i was just guessing but when i checked the results...it's like magic hehe

    =SUMPRODUCT(--(YEAR(P16:P5015)=YEAR($P$16:$P$5015)*((M16:M5015="OK")+(M16:M5015="NO PUNCHLIST"))*(O16:O5015>0)*(P16:P5015>0)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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