counting cells dependant upon different things

Shelly68

Board Regular
Joined
Sep 12, 2006
Messages
73
Hi,

Column D going down has different numbers,

how do I say COUNT how many between 1-9, then 10-19, then 20-21 etc (in the same forumula)

TIA

Shelly
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Not sure why you'd want one formula but,

=COUNTIF(Range,">=1")-COUNTIF(Range," > 9")& "Whatever Text" &COUNTIF(Range,">=10)-COUNTIF(Range," > 20)......
 
Upvote 0
Sorry, I probably didn't word it correctly then.

If I have a column with numbers that could be anywhere between 1-50 (for example), how do I count those that are between 1-10, 11-20, 21-30 (would this then have to be on the same formula),

so that if it's not between 1-10 look at 11-20 (gosh, I don't know how to explain this clearly)
 
Upvote 0
Sorry, I probably didn't word it correctly then.

If I have a column with numbers that could be anywhere between 1-50 (for example), how do I count those that are between 1-10, 11-20, 21-30 (would this then have to be on the same formula),

so that if it's not between 1-10 look at 11-20 (gosh, I don't know how to explain this clearly)

What would you like displayed if the cell value is between 1-10, 11-20 etc? Better yet, provide a small sample and expected results.
 
Upvote 0
Okay, here goes

A

1
3
9
7
11
5
18
17
13
12
6
4
21
24
25
26

I want to know how many are between 1-10 (so the answer here would be 7), between 11-20 (the answer here is 5), between 21-30 (answer here is 4) and so on. I am not sure if I need to count or sum etc etc (so please excuse the error if I'm made one in my question). TIA Shelly
 
Upvote 0
Okay, here goes

A

1
3
9
7
11
5
18
17
13
12
6
4
21
24
25
26

I want to know how many are between 1-10 (so the answer here would be 7), between 11-20 (the answer here is 5), between 21-30 (answer here is 4) and so on. I am not sure if I need to count or sum etc etc (so please excuse the error if I'm made one in my question). TIA Shelly
Book8
ABCDE
111107
2311205
3921304
47
511
65
718
817
913
1012
116
124
1321
1424
1525
1626
Sheet1


E1, copied down:

=COUNTIF($A$1:$A$16,">="&C1)-COUNTIF($A$1:$A$16,">"&D1)
 
Upvote 0
or, having set up the data analysis feature by installing the analysis tool pack (tools | addins), use the histogram feature (tools | data analysis)
 
Upvote 0

Forum statistics

Threads
1,214,587
Messages
6,120,405
Members
448,958
Latest member
Hat4Life

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