# 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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

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

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,631
Messages
5,838,467
Members
430,549
Latest member
jayjay2022

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