Simple COUNTIF formulas not working

janema

Board Regular
Joined
Nov 28, 2022
Messages
117
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2011
  5. 2010
Platform
  1. Windows
  2. Mobile
I have no idea why my basic COUNTIF formulas won't work here. :( It is frustrating me because I rewrote them so many times and no luck.

I am just counting cells if their values are greater than, equal, and in some cases in between a set number. See my first two formulas below that didn't work. Screenshots also attached.
They just keep returning a zero.

=COUNTIF(T2:T102," >=1")

=COUNTIF(T2:T102,">0.94)-COUNTIF(T2:T102,"<="0.99")

1697649532374.png




1697649512464.png
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
How are your values entered into col T? Perhaps they are numbers stored as text instead of numeric.

These seem to work for me:

Book1
TUVWXYZ
20.87
30.87
40.92
50.92Market Ratio 1.00 and above4
60.94Market Ratio between 0.95 and 0.996
70.94Market Ratio between 0.90 and 0.944
80.95Market Ratio between 0.80 and 0.892
90.96Market Ration below 0.790
100.96
110.98
120.98
130.98
141
151
161
171.01
Sheet2
Cell Formulas
RangeFormula
Z5Z5=COUNTIF(T2:T102,">=1")
Z6Z6=COUNTIFS(T2:T102,"<=.99",T2:T102,">.94")
Z7Z7=COUNTIFS(T2:T102,"<=.94",T2:T102,">.89")
Z8Z8=COUNTIFS(T2:T102,"<=.89",T2:T102,">.79")
Z9Z9=COUNTIF(T2:T102,"<=.79")
 
Upvote 0
In the 1st formula remove the space before the > sign.
In the 2nd your quotes are in the wrong place, you can also do it using countifs
Excel Formula:
=COUNTIFS(T2:T102,">0.94",T2:T102,"<0.99")
 
Upvote 0
Solution
In the 1st formula remove the space before the > sign.
In the 2nd your quotes are in the wrong place, you can also do it using countifs
Excel Formula:
=COUNTIFS(T2:T102,">0.94",T2:T102,"<0.99")

THANK YOU SO MUCH! That worked perfectly! :love:
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top