Using Excel 2010
Hello, I want to be filled random 1’s, X’s & 2’s as per selected amount in the columns C, D & E…for example column C in the range C6:C19 there are 14 cells…
Step-1 fills 5 times 1’s as per specified quantity 5 in C5…in the range C6:C19
Step-2 fills 5 times X’s as per specified quantity 5 in D5… in the range D6:D19 But within empty row which are not filled by 1’s…
Step-3 fills 4 times 2’s as per specified quantity 4 in E5… in the range E6:E19 But within empty row which are not filled by 1’s & X’s…
Note: Number for the could be vary in the 1’s, X’s & 2’s could be vary in the range C5:E5…Please suggest VBA solution
Regards,
Moti
Hello, I want to be filled random 1’s, X’s & 2’s as per selected amount in the columns C, D & E…for example column C in the range C6:C19 there are 14 cells…
Step-1 fills 5 times 1’s as per specified quantity 5 in C5…in the range C6:C19
Step-2 fills 5 times X’s as per specified quantity 5 in D5… in the range D6:D19 But within empty row which are not filled by 1’s…
Step-3 fills 4 times 2’s as per specified quantity 4 in E5… in the range E6:E19 But within empty row which are not filled by 1’s & X’s…
Note: Number for the could be vary in the 1’s, X’s & 2’s could be vary in the range C5:E5…Please suggest VBA solution
Shuffle.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | ||||||||
2 | ||||||||
3 | Random | Random | Random | |||||
4 | 1 | X | 2 | |||||
5 | nº | 5 | 5 | 4 | ||||
6 | 1 | 1 | ||||||
7 | 2 | X | ||||||
8 | 3 | 2 | ||||||
9 | 4 | 1 | ||||||
10 | 5 | X | ||||||
11 | 6 | 2 | ||||||
12 | 7 | X | ||||||
13 | 8 | 1 | ||||||
14 | 9 | X | ||||||
15 | 10 | 2 | ||||||
16 | 11 | 1 | ||||||
17 | 12 | X | ||||||
18 | 13 | 1 | ||||||
19 | 14 | 2 | ||||||
20 | ||||||||
21 | ||||||||
22 | ||||||||
23 | ||||||||
24 | ||||||||
25 | ||||||||
26 | ||||||||
Sheet1 |
Regards,
Moti