Counting cells that contain a value <x and >=y

MrByte

Board Regular
Joined
Feb 9, 2007
Messages
167
Office Version
  1. 365
I don't know if I am asking this question correctly but here goes.

I have 30 rows of numbers that represent a homes square footage. They are all in column A. I want to be able to count the number homes square footages that are >0 and <=900. And then count any square footages that are >900 and <=1150 and so till oh lets say 2500. I tried using a =COUNTIF(A:A,"<"&C1) where C1 starts with my 900 and then C2 would be 1150 and so on. But here is where I go wrong obviously. I can not keep using the criteria "<"&Cx. Because it counts everything in "adds" it up. I tried writing the criteria as "<"&Cx&">="&Cx but that doesn't seem to work either.

Any ideas would help thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try this to count between 2 values
Excel Formula:
=COUNTIFS(A:A,"<"&C2,A:A,">="&C1)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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