Easy BETWEEN question

dragonmouse

Board Regular
Joined
May 14, 2008
Messages
120
Office Version
  1. 2016
Platform
  1. Windows
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
Joined
Oct 20, 2009
Messages
8,717
Office Version
  1. 365
Platform
  1. Windows
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")
 
Solution

dragonmouse

Board Regular
Joined
May 14, 2008
Messages
120
Office Version
  1. 2016
Platform
  1. Windows
Perfect. I see where I went wrong now. Thank you
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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
Top