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>
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,988
Messages
5,599,217
Members
414,297
Latest member
dalkarl

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
Top