• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

excel formula

no attached file
perhaps say what you what to do - and include that in the title
otherwise - many people may view but not be able to help
also what version of excel do you want this to work in
 
thank you for the reply. i was trying to use countif function to count range of values (<24hrs and >24hrs). but when i insert the formula it only count the cell values for < and returns 0 for the >.
 

Attachments

  • help.xlsx
    9.2 KB · Views: 4
try
=ROWS(FILTER(A2:A10,A2:A10="<24hrs"))
and
=ROWS(FILTER(A2:A10,A2:A10=">24hrs"))
 

Attachments

  • help-ETAF.xlsx
    9.9 KB · Views: 2
who can help me with the formula in the attached file
Other approaches:
The first using FILTER, as per @ETAF ,
Code:
= COUNTA(FILTER(duration, duration="<24hrs"))
= COUNTA(FILTER(duration, duration=">24hrs"))
The next using "=" to override the inequality operators (reducing them to text)
Code:
= COUNTIFS(duration, "=<24hrs")
= COUNTIFS(duration, "=>24hrs")
Finally, performing a wildcard match, using "~" as an escape character
Code:
= COUNTIFS(duration, "~<*")
= COUNTIFS(duration, "~>*")
 
Back
Top