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

#### MrByte

##### Board Regular
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

#### Habtest

##### Board Regular
Try this to count between 2 values
Excel Formula:
``=COUNTIFS(A:A,"<"&C2,A:A,">="&C1)``

#### MrByte

##### Board Regular
It worked. Thanks!

Replies
7
Views
32
Replies
7
Views
170
Replies
8
Views
210
Replies
9
Views
525
Replies
5
Views
176

1,129,380
Messages
5,635,918
Members
416,887
Latest member
SheriE

### 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?

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