Using Excel 2010
Hello,
I want a VBA that can generate 5_50 lottery combinations from list is in the column A from cell A6 to down. In this example there are 13 numbers which will generate total =COMBINAT(13;5)=1287 combination I want to list all them in Columns C:G
Regards,
Moti
Hello,
I want a VBA that can generate 5_50 lottery combinations from list is in the column A from cell A6 to down. In this example there are 13 numbers which will generate total =COMBINAT(13;5)=1287 combination I want to list all them in Columns C:G
Excel Questions.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ||||||||||
2 | ||||||||||
3 | ||||||||||
4 | Total Combi | |||||||||
5 | Numbers | 1.287 | n1 | n2 | n3 | n4 | n5 | |||
6 | 1 | 1 | 2 | 4 | 6 | 12 | ||||
7 | 2 | 1 | 2 | 4 | 6 | 15 | ||||
8 | 4 | 1 | 2 | 4 | 6 | 16 | ||||
9 | 6 | 1 | 2 | 4 | 6 | 26 | ||||
10 | 12 | 1 | 2 | 4 | 6 | 28 | ||||
11 | 15 | 1 | 2 | 4 | 6 | 31 | ||||
12 | 16 | 1 | 2 | 4 | 6 | 37 | ||||
13 | 26 | 1 | 2 | 4 | 6 | 41 | ||||
14 | 28 | 1 | 2 | 4 | 6 | 43 | ||||
15 | 31 | 1 | 2 | 4 | 12 | 15 | ||||
16 | 37 | 1 | 2 | 4 | 12 | 16 | ||||
17 | 41 | 1 | 2 | 4 | 12 | 26 | ||||
18 | 43 | 1 | 2 | 4 | 12 | 28 | ||||
19 | 1 | 2 | 4 | 12 | 31 | |||||
20 | 1 | 2 | 4 | 12 | 37 | |||||
21 | 1 | 2 | 4 | 12 | 41 | |||||
22 | 1 | 2 | 4 | 12 | 43 | |||||
23 | ||||||||||
24 | ||||||||||
25 | ||||||||||
26 | ||||||||||
27 | ||||||||||
Sheet5 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B5 | B5 | =COMBIN(13,5) |
Regards,
Moti