Using Excel 2000</SPAN></SPAN>
Hi,</SPAN></SPAN>
VBA, which can choose "x random numbers" from a list of column A (list in the column a can be max 290 rows)</SPAN></SPAN>
For example list shown in column A has 28 rows, I want "4 random (no duplicates), which I have placed in cell B1 and result in C2 down </SPAN></SPAN>
Example data</SPAN></SPAN>
Thank you in advance</SPAN></SPAN>
Regards,</SPAN>
Kishan</SPAN></SPAN>
Hi,</SPAN></SPAN>
VBA, which can choose "x random numbers" from a list of column A (list in the column a can be max 290 rows)</SPAN></SPAN>
For example list shown in column A has 28 rows, I want "4 random (no duplicates), which I have placed in cell B1 and result in C2 down </SPAN></SPAN>
Example data</SPAN></SPAN>
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | List of Numbers | 4 | Rando Selected | |||
2 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | ||||
3 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | ||||
4 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | ||||
5 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | ||||
6 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | |||||
7 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | |||||
8 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | |||||
9 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | |||||
10 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | |||||
11 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | |||||
12 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | |||||
13 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | |||||
14 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | |||||
15 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | |||||
16 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | |||||
17 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | |||||
18 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | |||||
19 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | |||||
20 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | |||||
21 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | |||||
22 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | |||||
23 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | |||||
24 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | |||||
25 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | |||||
26 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | |||||
27 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | |||||
28 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | |||||
29 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
30 | ||||||
31 | ||||||
32 | ||||||
Sheet1 |
Thank you in advance</SPAN></SPAN>
Regards,</SPAN>
Kishan</SPAN></SPAN>
Last edited: