F
FinishRich2025
I am trying to break a list of up to 50 words into groups of up to
5.
Here is the example list:
Quantity Group 1 Group 2 Group 3 Group 4 Group 5 Group 6 Group 7
1 1
2 2
3 3
4 4
5 5
6 3 3
7 4 3
8 4 4
9 5 4
10 5 5
11 4 4 3
12 4 4 4
13 5 4 4
14 5 5 4
15 5 5 5
16 4 4 4 4
17 5 4 4 4
18 5 5 4 4
19 5 5 5 4
20 5 5 5 5
21 5 4 4 4 4
22 5 5 4 4 4
23 5 5 5 4 4
24 5 5 5 5 4
25 5 5 5 5 5
26 5 5 4 4 4 4
27 5 5 5 4 4 4
28 5 5 5 5 4 4
29 5 5 5 5 5 4
30 5 5 5 5 5 5
31 5 5 5 4 4 4 4
32 5 5 5 5 4 4 4
33 5 5 5 5 5 4 4
34 5 5 5 5 5 5 4
35 5 5 5 5 5 5 5
As you can see, I don't want a bunch of full groups (of 5) and groups
of 1 or 2. I want to even them out as much as possible.
I know there must be a mathmatical pattern to this, so if anyone can
point me in the right direction, I would greatly appreciate it. For
now, I am just going to write a bunch of case statements.
Thanks !!
5.
Here is the example list:
Quantity Group 1 Group 2 Group 3 Group 4 Group 5 Group 6 Group 7
1 1
2 2
3 3
4 4
5 5
6 3 3
7 4 3
8 4 4
9 5 4
10 5 5
11 4 4 3
12 4 4 4
13 5 4 4
14 5 5 4
15 5 5 5
16 4 4 4 4
17 5 4 4 4
18 5 5 4 4
19 5 5 5 4
20 5 5 5 5
21 5 4 4 4 4
22 5 5 4 4 4
23 5 5 5 4 4
24 5 5 5 5 4
25 5 5 5 5 5
26 5 5 4 4 4 4
27 5 5 5 4 4 4
28 5 5 5 5 4 4
29 5 5 5 5 5 4
30 5 5 5 5 5 5
31 5 5 5 4 4 4 4
32 5 5 5 5 4 4 4
33 5 5 5 5 5 4 4
34 5 5 5 5 5 5 4
35 5 5 5 5 5 5 5
As you can see, I don't want a bunch of full groups (of 5) and groups
of 1 or 2. I want to even them out as much as possible.
I know there must be a mathmatical pattern to this, so if anyone can
point me in the right direction, I would greatly appreciate it. For
now, I am just going to write a bunch of case statements.
Thanks !!