Pivot Table - Group by tens, but include zero?

Chasden

New Member
Joined
Dec 5, 2011
Messages
48
Hi,
I am making a Pivot table to show a count based on ranges of values. Everything is fine, except that this particular data contains 0 values.
I want the ranges to be "natural," so 11-20, 21-30, etc. but this puts the 0 values in their own row as <1.
If I change the ranges to start at 0, I get ranges that don't look nice (0-9, 10-19, 20-29, etc.) Using increments of 11 is even worse!
Is there a way to get the first range to include 0 (0-10), and then the rest go by tens (11-20, 21-30, etc)?

Thank you!

1675958347573.png
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
You'd have to use a lookup table. You can't have uneven grouping bands.
 
Upvote 0
Are you talking about something like

=COUNTIF(B:B,">0 AND <10")

(or however it's done in excel, I'm on my phone)?

If not, then I'm not sure what you mean.
 
Upvote 0
You actually can have uneven grouping bands, but only at the end of the data for some reason. See the last row of the screenshot below, which contains 11 years in the last row. I didn't do anything special to make it happen. This is why I asked if it can also be done to the first row.

1676030583290.png
 
Upvote 0
No, it can't. It will allow one extra in the last group (not sure why to be honest) but not the others. I was suggesting a lookup table - two columns: the first will be the lower bound of each banding and the second will be the description you want to show.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,666
Members
449,114
Latest member
aides

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