I'm sure it's simple!!!

Fletchmeister

Board Regular
Joined
May 20, 2003
Messages
114
I require a formula that will reurn a count value between a range of numbers.

i.e. 8-14, if I had a column with 9,11 & 13 in seperate cells. I need a formula that will return the answer as 3. =>8 & <=14.

Can someone please help??? :confused:
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
A couple of ways, the first uses DCount with the criteria in the first two rows, the second uses an array formula, which needs to be entered with Control-Shift and Enter:-
Book1
ABCD
1DataData
2>=8<=14
3
4DataUsingDCountUsingArrayFormula
51522
611
713
Sheet1
 
Upvote 0
I think you mean you want to count how many values lie in the range 8-14, and I would use a couple of countif functions in a formula like this ...

=COUNTIF(A1:A10,"<=14")-COUNTIF(A1:A10,"<8")

i.e. count how many are less than or equal 14, then subtract those that are less than 8. Alter the ranges to suit you worksheet.


Cheers, Glenn.
 
Upvote 0
Let C2 house 8 and D2 14. Given that A2:A10 is the range of interest, try one of...

=COUNTIF(A2:A10,">="&C2)-COUNTIF(A2:A10,">"&D2)

=SUMPRODUCT((A2:A10>=C2)*(A2:A10<=D2))
 
Upvote 0

Forum statistics

Threads
1,221,695
Messages
6,161,360
Members
451,699
Latest member
sfairbro

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