Using Excel 2000
Hi,
I want VBA the could create all possible combinations using 5 groups which Min Sum is = 0 And Max Sum is =14
My 1st group contain 3 numbers in cells B2:B4 0, 1 & 2. And the rest 4 contain 0, 1, 2 & 3 in cells C2:F5
Below is the example sheet I don't how much combination could be all together only I can say in row 8 1st is with sum = 0 like 0, 0, 0, 0, 0 And last could be the sum = 14 like 2, 3, 3, 3, 3
Example sheet...
Thank you in advance
Regards,
Kishan
Hi,
I want VBA the could create all possible combinations using 5 groups which Min Sum is = 0 And Max Sum is =14
My 1st group contain 3 numbers in cells B2:B4 0, 1 & 2. And the rest 4 contain 0, 1, 2 & 3 in cells C2:F5
Below is the example sheet I don't how much combination could be all together only I can say in row 8 1st is with sum = 0 like 0, 0, 0, 0, 0 And last could be the sum = 14 like 2, 3, 3, 3, 3
Example sheet...
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Group1 | Group2 | Group3 | Group4 | Group5 | |||||
2 | 0 | 0 | 0 | 0 | 0 | |||||
3 | 1 | 1 | 1 | 1 | 1 | |||||
4 | 2 | 2 | 2 | 2 | 2 | |||||
5 | 3 | 3 | 3 | 3 | ||||||
6 | ||||||||||
7 | Generate | Set1 | Set2 | Set3 | Set4 | Set5 | Sum | |||
8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | |||
9 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | |||
10 | 3 | 0 | 0 | 0 | 1 | 0 | 1 | |||
11 | 4 | 0 | 0 | 1 | 0 | 0 | 1 | |||
12 | 5 | 0 | 1 | 0 | 0 | 0 | 1 | |||
13 | 6 | 1 | 0 | 0 | 0 | 0 | 1 | |||
14 | ?? | 0 | ||||||||
15 | ?? | 0 | ||||||||
16 | ?? | 0 | ||||||||
17 | ?? | 0 | ||||||||
18 | ?? | 0 | ||||||||
19 | ?? | 0 | ||||||||
20 | ?? | 0 | ||||||||
21 | ?? | 0 | ||||||||
22 | ?? | 2 | 3 | 3 | 3 | 3 | 14 | |||
23 | ||||||||||
24 | ||||||||||
25 | ||||||||||
26 | ||||||||||
27 | ||||||||||
28 | ||||||||||
29 | ||||||||||
30 | ||||||||||
31 | ||||||||||
32 | ||||||||||
33 | ||||||||||
Create All Combination |
Thank you in advance
Regards,
Kishan
Last edited: