counts between two values

smithrd6

Board Regular
Joined
Dec 13, 2005
Messages
150
I have this forumula for capturing counts which are less than a number:

{=SUM((tbl42Ques!D2:D200="Released to Manufacturing")*(tbl42Ques!A2:A200<16))}

I am wanting to capture counts which are between two numbers, for instance, <16 and >10
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,171
Try this (my example uses simplified cell references - adapt as required)

Code:
=sumproduct(d2:d200,--(a2:a200<16),--(a2:a200>10))
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,343
Office Version
  1. 365
Platform
  1. Windows
Perhaps something like this.

=SUMPRODUCT(--(tbl42Ques!D2:D200="Released to Manufacturing"), --(tbl42Ques!A2:A200>10), --(tbl42Ques!A2:A200<16))
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,171
There's a difference between these two formulas.

Mine is summing up numeric values in column D, for rows where the entry in column A matches the criteria.

Norie's version (I think) is counting those values (which looks like it may be closer to what was requested in the OP).
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,343
Office Version
  1. 365
Platform
  1. Windows
Gerald

Good spot - think I missed the SUM part, though the OP did mention a count.:)
 
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,163,592
Messages
5,832,630
Members
430,149
Latest member
amitk1

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