Greetings,
I have been attempting unsuccessfully for a method to assign parties of random sizes into groups of a maximum size with the goal of minimizing the total number of groups. I am open to using formulas or VBA for solving this problem.
Truthfully, I have yet to think of a fail-proof way to this conceptually. Thanks for any help!
Regards,
Barklie Estes
I have been attempting unsuccessfully for a method to assign parties of random sizes into groups of a maximum size with the goal of minimizing the total number of groups. I am open to using formulas or VBA for solving this problem.
Data Example.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Party ID | Size | Group ID | Size | Parties | ||||||
2 | A | 1 | Max Group Size | 13 | Group A | 13 | A, H | ||||
3 | B | 10 | Min Group # | 8 | Group B | 13 | B, L | ||||
4 | C | 4 | Group C | 12 | C, J | ||||||
5 | D | 4 | Group D | 12 | D, I | ||||||
6 | E | 13 | Group E | 13 | E | ||||||
7 | F | 11 | Group F | 11 | F | ||||||
8 | G | 10 | Group G | 10 | G | ||||||
9 | H | 12 | Group H | 10 | K | ||||||
10 | I | 4 | |||||||||
11 | J | 8 | |||||||||
12 | K | 10 | |||||||||
13 | L | 3 | |||||||||
Sheet1 |
Truthfully, I have yet to think of a fail-proof way to this conceptually. Thanks for any help!
Regards,
Barklie Estes