# Easy BETWEEN question

#### dragonmouse

##### Board Regular
I have a spreadsheet with several cost values. I want to total the number for each month for values that fall within a particular range

ie:
October
\$0 = 1 item
\$1-100 = 3 items
\$101-1500 = 2 items
>\$1501 and up =2 items

I'm looking thru a range and trying to find values BETWEEN two numbers that are greater than 1 and less than 100 and a second one that gives returns values between 101-1500. I'm typing something wrong.
=COUNTIFS(\$A\$33:\$A\$200, "OCT", \$K\$33:\$K\$200, "Air Force",\$L\$33:\$L\$200, "1><100")
=COUNTIFS(\$A\$33:\$A\$200, "OCT", \$K\$33:\$K\$200, "Air Force",\$L\$33:\$L\$200, "101>1500")

countss any value that is "0". This works fine.
=COUNTIFS(\$A\$33:\$A\$200, "OCT", \$K\$33:\$K\$200, "Air Force",\$L\$33:\$L\$200, "0") also

counts any values over 1501 works fine.
=COUNTIFS(\$A\$33:\$A\$200, "OCT", \$K\$33:\$K\$200, "Air Force",\$L\$33:\$L\$200, ">1501")

So I'm obviously doing something dumb with the BETWEEN.

 1​

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

#### steve the fish

##### Well-known Member
This is greater than zero and less than or equal to 100:

=COUNTIFS(\$A\$33:\$A\$200, "OCT", \$K\$33:\$K\$200, "Air Force",\$L\$33:\$L\$200, ">0",\$L\$33:\$L\$200, "<=100")

#### dragonmouse

##### Board Regular
Perfect. I see where I went wrong now. Thank you

Replies
1
Views
162
Replies
1
Views
119
Replies
4
Views
96
Replies
5
Views
98
Replies
3
Views
160

1,127,723
Messages
5,626,505
Members
416,187
Latest member
L_D18

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

### Which adblocker are you using?

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

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