# counting cells dependant upon different things

#### Shelly68

##### Board Regular
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

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
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
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
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

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

##### MrExcel MVP
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

Thank you very much

#### Shelly68

##### Board Regular
Thank you very much

##### MrExcel MVP
or, having set up the data analysis feature by installing the analysis tool pack (tools | addins), use the histogram feature (tools | data analysis)

Replies
11
Views
60
Replies
1
Views
64
Replies
0
Views
20
Replies
16
Views
100
Replies
3
Views
175