ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   countif with 2 criteria (https://www.excelbanter.com/excel-worksheet-functions/238266-countif-2-criteria.html)

tpeter

countif with 2 criteria
 
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.6 5"))

Tim Peter

Mike H

countif with 2 criteria
 
Try this

=COUNTIF(C3:C52,"<=99.34")+COUNTIF(C3:C52,"=100.6 5")

Mike

"tpeter" wrote:

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.6 5"))

Tim Peter


tpeter

countif with 2 criteria
 
Thanks Mike,

I had just tried that it did work, I appreciate your help.

"Mike H" wrote:

Try this

=COUNTIF(C3:C52,"<=99.34")+COUNTIF(C3:C52,"=100.6 5")

Mike

"tpeter" wrote:

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.6 5"))

Tim Peter


T. Valko

countif with 2 criteria
 
Try this:

=COUNTIF(C3:C52,"<=99.34")+COUNTIF(C3:C52,"=100.6 5")

Or, using cell references to hold the boundary values:

A1 = 99.34
A2 = 100.65

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

--
Biff
Microsoft Excel MVP


"tpeter" wrote in message
...
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.6 5"))

Tim Peter




Mike H

countif with 2 criteria
 
Glad I could help

"tpeter" wrote:

Thanks Mike,

I had just tried that it did work, I appreciate your help.

"Mike H" wrote:

Try this

=COUNTIF(C3:C52,"<=99.34")+COUNTIF(C3:C52,"=100.6 5")

Mike

"tpeter" wrote:

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.6 5"))

Tim Peter



All times are GMT +1. The time now is 11:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com