Dividing rows into groups based on two parameters

thomazzs

New Member
Joined
Jun 14, 2014
Messages
15
Dear all,

I have the following problem: I need to divide the rows below into groups, based on two criteria.

e.g. The sum of Balls <= 10.000 & the sum of Bucket <= 5

the order of the rows cannot change.

Is there an (easy) way to let excel determine these groups?


the result in the row "group" would (for this example) be as follows:

OrderBallsBucketGroup
1503711
2260111
3158411
4153412
5313322
6900213
7713
81513
91413
102013

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I can't see from that example what Bucket has to do with it.
This formula in D2, copied down produces those results.
If this is not what you need, perhaps another example that demonstrates all the possibilities and further explanation may help.

Excel Workbook
ABCD
1OrderBallsBucketGroup
21503711
32260111
43158411
54153412
65313322
76900213
87713
981513
1091413
11102013
Groups
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,759
Members
449,048
Latest member
excelknuckles

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