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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

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,209
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)
 

Forum statistics

Threads
1,141,011
Messages
5,703,722
Members
421,311
Latest member
tanujath

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
Top