Using Excel 2010
Hello,
I want a VBA that can generate 5_50 lottery combinations out of 5 groups are in range A6:E15 (Generate set of 5 numbers but pick only “1 number” from each of 5 groups)…generate combinations in columns G:K.
For example 1, 2, 3, 4, 5 is not correct because this has 5 numbers from only group, … but can be good 1, 11, 21, 31, 41 one number from each group.
Here below is short example. Is it possible?
Regards,
Moti
Hello,
I want a VBA that can generate 5_50 lottery combinations out of 5 groups are in range A6:E15 (Generate set of 5 numbers but pick only “1 number” from each of 5 groups)…generate combinations in columns G:K.
For example 1, 2, 3, 4, 5 is not correct because this has 5 numbers from only group, … but can be good 1, 11, 21, 31, 41 one number from each group.
Here below is short example. Is it possible?
Excel Questions.xlsm | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | ||||||||||||||
2 | ||||||||||||||
3 | ||||||||||||||
4 | ||||||||||||||
5 | Gr1 | Gr2 | Gr3 | Gr4 | Gr5 | n1 | n2 | n3 | n4 | n5 | ||||
6 | 1 | 11 | 21 | 31 | 41 | 1 | 11 | 21 | 31 | 41 | ||||
7 | 2 | 12 | 22 | 32 | 42 | 1 | 11 | 21 | 31 | 42 | ||||
8 | 3 | 13 | 23 | 33 | 43 | 1 | 11 | 21 | 31 | 43 | ||||
9 | 4 | 14 | 24 | 34 | 44 | 1 | 11 | 21 | 31 | 44 | ||||
10 | 5 | 15 | 25 | 35 | 45 | 1 | 11 | 21 | 31 | 45 | ||||
11 | 6 | 16 | 26 | 36 | 46 | 1 | 11 | 21 | 31 | 46 | ||||
12 | 7 | 17 | 27 | 37 | 47 | 1 | 11 | 21 | 31 | 47 | ||||
13 | 8 | 18 | 28 | 38 | 48 | 1 | 11 | 21 | 31 | 48 | ||||
14 | 9 | 19 | 29 | 39 | 49 | 1 | 11 | 21 | 31 | 49 | ||||
15 | 10 | 20 | 30 | 40 | 50 | 1 | 11 | 21 | 31 | 50 | ||||
16 | 1 | 11 | 21 | 32 | 41 | |||||||||
17 | 1 | 11 | 21 | 32 | 42 | |||||||||
18 | 1 | 11 | 21 | 32 | 43 | |||||||||
19 | 1 | 11 | 21 | 32 | 44 | |||||||||
20 | 1 | 11 | 21 | 32 | 45 | |||||||||
21 | 1 | 11 | 21 | 32 | 46 | |||||||||
22 | 1 | 11 | 21 | 32 | 47 | |||||||||
23 | 1 | 11 | 21 | 32 | 48 | |||||||||
24 | 1 | 11 | 21 | 32 | 49 | |||||||||
25 | 1 | 11 | 21 | 32 | 50 | |||||||||
26 | 1 | 11 | 21 | 33 | 41 | |||||||||
27 | 1 | 11 | 21 | 33 | 42 | |||||||||
28 | 1 | 11 | 21 | 33 | 43 | |||||||||
29 | 1 | 11 | 21 | 33 | 44 | |||||||||
30 | 1 | 11 | 21 | 33 | 45 | |||||||||
31 | 1 | 11 | 21 | 33 | 46 | |||||||||
32 | 1 | 11 | 21 | 33 | 47 | |||||||||
33 | 1 | 11 | 21 | 33 | 48 | |||||||||
34 | 1 | 11 | 21 | 33 | 49 | |||||||||
35 | 1 | 11 | 21 | 33 | 50 | |||||||||
36 | ||||||||||||||
37 | ||||||||||||||
38 | ||||||||||||||
39 | ||||||||||||||
40 | ||||||||||||||
1 Number By Group |
Regards,
Moti