I am trying to create a formula using the countif function to determine how many cells within a range are greater than 50 but less than or equal to 60. Any ideas?
Another cheat would be to add a second column and stick an if/and in there.
Assuming that your values are in column A from rows 1 to 10, put the followind in B1 and copy it down to B10:
Code:
=IF(AND(a1>50,a1<=60),1,0)
This will give you either a 1 or a 0 in the cells B1 to B10. Now do a countif on the cells in column B:
Code:
=COUNTIF(b1:b10,"1")
If anyone knows how to put an AND into a COUNTIF, please add the solution to this thread, as I have been using this extra step for quite a while. Thanx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.