Summarizing data for numbers great than or equal to or less than or equal to

ggoodlife

New Member
Joined
Mar 27, 2012
Messages
10
Hello everyone -

I'm struggling to summarize some data, and was hoping that someone could quickly help me out.

I have a column of numbers (17000 actually) where all are greater than 8 and I want to know how many are between 8-14, 15-21, and greater than 22.

I've tried pivot tables and count if....but I can't seen to figure out a good way to do it. Can you help?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
=COUNTIFS(A:A,">8", A:A, "<14")
=COUNTIFS(A:A, ">15", A:A, "<21")
=COUNTIF(A:A, ">22")

Assumes your data is in column A.


You will have gaps like this though, so you probably need:

=COUNTIFS(A:A,">=8", A:A, "<=14")
=COUNTIFS(A:A, ">=15", A:A, "<=21")
=COUNTIF(A:A, ">=22")
 
Upvote 0
Maybe

=COUNTIF(A1:A17000,">22")
=COUNTIFS(A1:A17000,">=15",A1:A17000,"<=21")
=COUNTIFS(A1:A17000,">=8",A1:A17000,"<=14")
 
Upvote 0
=COUNTIFS(A:A,">8", A:A, "<14")
=COUNTIFS(A:A, ">15", A:A, "<21")
=COUNTIF(A:A, ">22")

Assumes your data is in column A.


You will have gaps like this though, so you probably need:

=COUNTIFS(A:A,">=8", A:A, "<=14")
=COUNTIFS(A:A, ">=15", A:A, "<=21")
=COUNTIF(A:A, ">=22")

Thanks. This works for me.
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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