Countif (only count if data falls within a range)

pzamory

Board Regular
Joined
May 2, 2002
Messages
135
I tried several iterations and I cannot get it to work. I would like to get a count of how many data items fall within a certain range.

For instance, I need a count of how many items have a value between 5 and 15.

Can anyone help?

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
On 2002-05-03 11:17, pzamory wrote:
I tried several iterations and I cannot get it to work. I would like to get a count of how many data items fall within a certain range.

For instance, I need a count of how many items have a value between 5 and 15.

Can anyone help?

Thanks

In E1 enter: 5
In E2 enter: 15

When you say between m and n, you need to be specific -- There are 4 possibities:

>= m AND< n
> m AND<= n
> m AND< n [ often called exclusive between ]
>= m AND<= n [ often called inclusive between ]

=COUNTIF(A1:A10,">"&E1)-COUNTIF(A1:A10,">="&E2)

gives you a count based on exclusive between.
This message was edited by Aladin Akyurek on 2002-05-03 11:29
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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