Using Excel 2010
Hello,
1-In the Column C, in the cells C27:C56 I got 30 winning numbers which are from 0 to 36 could be many repeated times.
2-In the Column F, in the cells F2:F23 I have group1 of 21 numbers in the ascending order
3- In the Column G, in the cells G2:G23 I have group2 of 16 numbers in the ascending order
I need VBA which can scan winning numbers of column C, from cells C27:C56 and match with group1 and group2 and then place them separately according to group match Group1 in the column F, cells F27 to down and Group2 in the column G27 to down as shown below in the example attached sheet
Please help
Thank you all.
Regards,
Moti
Hello,
1-In the Column C, in the cells C27:C56 I got 30 winning numbers which are from 0 to 36 could be many repeated times.
2-In the Column F, in the cells F2:F23 I have group1 of 21 numbers in the ascending order
3- In the Column G, in the cells G2:G23 I have group2 of 16 numbers in the ascending order
I need VBA which can scan winning numbers of column C, from cells C27:C56 and match with group1 and group2 and then place them separately according to group match Group1 in the column F, cells F27 to down and Group2 in the column G27 to down as shown below in the example attached sheet
Seperate Match As Per Group.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | |||||||||||
2 | Group 1 | Group 2 | |||||||||
3 | 2 | 0 | |||||||||
4 | 5 | 1 | |||||||||
5 | 6 | 3 | |||||||||
6 | 7 | 4 | |||||||||
7 | 8 | 11 | |||||||||
8 | 9 | 13 | |||||||||
9 | 10 | 14 | |||||||||
10 | 12 | 15 | |||||||||
11 | 16 | 19 | |||||||||
12 | 17 | 20 | |||||||||
13 | 18 | 26 | |||||||||
14 | 21 | 30 | |||||||||
15 | 22 | 31 | |||||||||
16 | 23 | 32 | |||||||||
17 | 24 | 35 | |||||||||
18 | 25 | 36 | |||||||||
19 | 27 | ||||||||||
20 | 28 | ||||||||||
21 | 29 | ||||||||||
22 | 33 | ||||||||||
23 | 34 | ||||||||||
24 | |||||||||||
25 | Total Num | Winning | Total Num | Matched In | |||||||
26 | Total Num | Numbers | Total Num | Group 1 | Group 2 | ||||||
27 | 1 | 27 | 1 | 27 | |||||||
28 | 2 | 34 | 2 | 34 | |||||||
29 | 3 | 4 | 3 | 4 | |||||||
30 | 4 | 25 | 4 | 25 | |||||||
31 | 5 | 24 | 5 | 24 | |||||||
32 | 6 | 0 | 6 | 0 | |||||||
33 | 7 | 18 | 7 | 18 | |||||||
34 | 8 | 2 | 8 | 2 | |||||||
35 | 9 | 12 | 9 | 12 | |||||||
36 | 10 | 23 | 10 | 23 | |||||||
37 | 11 | 27 | 11 | 27 | |||||||
38 | 12 | 7 | 12 | 7 | |||||||
39 | 13 | 10 | 13 | 10 | |||||||
40 | 14 | 8 | 14 | 8 | |||||||
41 | 15 | 25 | 15 | 25 | |||||||
42 | 16 | 3 | 16 | 3 | |||||||
43 | 17 | 28 | 17 | 28 | |||||||
44 | 18 | 2 | 18 | 2 | |||||||
45 | 19 | 20 | 19 | 20 | |||||||
46 | 20 | 4 | 20 | 4 | |||||||
47 | 21 | 3 | 21 | 3 | |||||||
48 | 22 | 20 | 22 | 20 | |||||||
49 | 23 | 10 | 23 | 10 | |||||||
50 | 24 | 7 | 24 | 7 | |||||||
51 | 25 | 23 | 25 | 23 | |||||||
52 | 26 | 32 | 26 | 32 | |||||||
53 | 27 | 33 | 27 | 33 | |||||||
54 | 28 | 1 | 28 | 1 | |||||||
55 | 29 | 28 | 29 | 28 | |||||||
56 | 30 | 31 | 30 | 31 | |||||||
57 | |||||||||||
58 | |||||||||||
Sheet1 |
Please help
Thank you all.
Regards,
Moti