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

#### ggoodlife

##### New Member
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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

#### nuked

##### Well-known Member
=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")

#### Special-K99

##### Well-known Member
Maybe

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

#### ggoodlife

##### New Member
=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.

Replies
4
Views
190
Replies
0
Views
333
Replies
2
Views
164
Replies
8
Views
578
Replies
5
Views
115

1,195,918
Messages
6,012,297
Members
441,690
Latest member
CyberWrek

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

### Which adblocker are you using?

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

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