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
 

Some videos you may like

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
Not sure why you'd want one formula but,

=COUNTIF(Range,">=1")-COUNTIF(Range," > 9")& "Whatever Text" &COUNTIF(Range,">=10)-COUNTIF(Range," > 20)......
 

Shelly68

Board Regular
Joined
Sep 12, 2006
Messages
73
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)
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
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.
 

Shelly68

Board Regular
Joined
Sep 12, 2006
Messages
73

ADVERTISEMENT

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
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
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)
 

Shelly68

Board Regular
Joined
Sep 12, 2006
Messages
73

ADVERTISEMENT

Thank you very much
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
or, having set up the data analysis feature by installing the analysis tool pack (tools | addins), use the histogram feature (tools | data analysis)
 

Watch MrExcel Video

Forum statistics

Threads
1,113,859
Messages
5,544,700
Members
410,630
Latest member
Maggie28
Top