COUNTIF between range - 2 criteria

ff_emt1

Board Regular
Joined
Jan 7, 2005
Messages
63
This is probably easy but it has me stumped.

I have defect codes that are department specific, 1000, 1001, 1002, are Department A, 2000, 2001, 2002 are department B, etc.

WeekXXall is the tab name.

This formula works and gives me everything above 1000.
=COUNTIF('Week XXall'!CB2:CB8376,">=1000")

I have tried variations of the following and have had no luck.
=COUNTIF('Week XXall'!CB2:CB8376,">=1000&<=1999")

How do I count between a range?

Thanks in advance.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Maybe

=SUMPRODUCT(--('Week XXall'!CB2:CB8376>=1000),--('Week XXall'!CB2:CB8376<2000))

M.
 
Upvote 0
Excellent reference. I will definitely spend some quality time with this information. About the time I think I know it all, I learn something new. That is why I like to members here, someone always willing to help you out.

Thanks!

Bob
 
Upvote 0

Forum statistics

Threads
1,203,675
Messages
6,056,683
Members
444,882
Latest member
cboyce44

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