Using Excel 2010
Hello,
I am using @[B]Phuoc[/B], VBA solution from #post17 linked below
Make possible set of 5 numbers using 4 groups. | Page 2 | MrExcel Message Board
This does create 5 numbers perfectly out of 4 groups, picking 2 numbers from any of 4 groups and 3 numbers from rest of 3 groups.
But now I need that it must create 5 numbers from 5 groups picking 1 number from each group.
Please see the attached example below I am not sure how much combinations will be made using 5 groups.
Please suggest VBA, I want which can work with Excel version 2000 also.
Thank you all.
Regards,
Moti
Hello,
I am using @[B]Phuoc[/B], VBA solution from #post17 linked below
Make possible set of 5 numbers using 4 groups. | Page 2 | MrExcel Message Board
This does create 5 numbers perfectly out of 4 groups, picking 2 numbers from any of 4 groups and 3 numbers from rest of 3 groups.
But now I need that it must create 5 numbers from 5 groups picking 1 number from each group.
Please see the attached example below I am not sure how much combinations will be made using 5 groups.
Please suggest VBA, I want which can work with Excel version 2000 also.
MrExcel Question.xlsm | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | ||||||||||||||
2 | ||||||||||||||
3 | ||||||||||||||
4 | Group 1 | Group 2 | Group 3 | Group 4 | Group 5 | n1 | n2 | n3 | n4 | n5 | ||||
5 | 1 | 17 | 27 | 44 | 65 | 1 | 17 | 27 | 44 | 65 | ||||
6 | 3 | 18 | 32 | 45 | 66 | 1 | 17 | 27 | 44 | 66 | ||||
7 | 5 | 22 | 36 | 47 | 67 | 1 | 17 | 27 | 44 | 67 | ||||
8 | 8 | 24 | 42 | 48 | 68 | 1 | 17 | 27 | 44 | 68 | ||||
9 | 12 | 25 | 43 | 50 | 69 | 1 | 17 | 27 | 44 | 69 | ||||
10 | 1 | 17 | 27 | 45 | 65 | |||||||||
11 | 1 | 17 | 27 | 45 | 66 | |||||||||
12 | 1 | 17 | 27 | 45 | 67 | |||||||||
13 | 1 | 17 | 27 | 45 | 68 | |||||||||
14 | 1 | 17 | 27 | 45 | 69 | |||||||||
Sheet1 |
Thank you all.
Regards,
Moti