countif with 2 criteria

T

tpeter

I have a countif cell over the range c3:c52, I only want it to count the
numbers if it is <=99.34 and >=100.65. It excepts the formula but isn't
recognizing the numbers, I have put 100.8 into cell c3 and it isn't counting.
Any help would be great.

=COUNTIF(C3:C52,AND(C3:C52<="99.34",C3:C52>="100.65"))

Tim Peter
 
T

T. Valko

Try this:

=COUNTIF(C3:C52,"<=99.34")+COUNTIF(C3:C52,">=100.65")

Or, using cell references to hold the boundary values:

A1 = 99.34
A2 = 100.65

=COUNTIF(C3:C52,"<="&A1)+COUNTIF(C3:C52,">="&A2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top