Dividing a range in groups that add up to < a certain number

sdspieg

Board Regular
Joined
Dec 9, 2013
Messages
98
I have a simple spreadsheet with years in column one, and values in the second one. I want to cluster the years in groups that add up to less than 1000 (and there is no year that has more than 1000). The first bunch of years have very small numbers, so there we'd have to find the exact amount of years that yield a number that is just under 1000 - i.e. whereby the next year would get us over that limit. And then the second group of 1000 would start with the first next year and again continue until the year that once again tips us over the limit. And so on until the last year. What is the best way to do this? Thanks!

-Stephan
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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