Using Excel 2010
Hello,
I want a VBA which can look first (x) number from top to bottom in the column (I) in this example look for number (2) which is finding in cell (I20) copy left side range B20:G20... And paste in to Column L below the first empty cell
Note: if search number is not found exit sub
Regards,
Moti
Hello,
I want a VBA which can look first (x) number from top to bottom in the column (I) in this example look for number (2) which is finding in cell (I20) copy left side range B20:G20... And paste in to Column L below the first empty cell
Note: if search number is not found exit sub
S.N | n1 | n2 | n3 | n4 | n5 | n6 | Find X Num | n1 | n2 | n3 | n4 | n5 | n6 | ||||||
1 | 1 | 2 | 4 | 6 | 12 | 15 | 5 | 1 | 2 | 4 | 6 | 12 | 15 | ||||||
2 | 1 | 2 | 4 | 6 | 12 | 16 | 4 | 1 | 2 | 4 | 16 | 26 | 28 | Step 2 <---After Finding 2 Copy Range B20:G20 And Paste into Column L below the first empty cell | |||||
3 | 1 | 2 | 4 | 6 | 12 | 26 | 4 | ||||||||||||
4 | 1 | 2 | 4 | 6 | 15 | 41 | 4 | ||||||||||||
5 | 1 | 2 | 4 | 6 | 15 | 43 | 4 | ||||||||||||
6 | 1 | 2 | 4 | 6 | 16 | 26 | 3 | ||||||||||||
7 | 1 | 2 | 4 | 6 | 28 | 43 | 3 | ||||||||||||
8 | 1 | 2 | 4 | 6 | 37 | 43 | 3 | ||||||||||||
9 | 1 | 2 | 4 | 6 | 41 | 43 | 3 | ||||||||||||
10 | 1 | 2 | 4 | 12 | 15 | 16 | 4 | ||||||||||||
11 | 1 | 2 | 4 | 12 | 15 | 26 | 4 | ||||||||||||
12 | 1 | 2 | 4 | 12 | 15 | 28 | 4 | ||||||||||||
13 | 1 | 2 | 4 | 12 | 15 | 31 | 4 | ||||||||||||
14 | 1 | 2 | 4 | 15 | 16 | 26 | 3 | ||||||||||||
15 | 1 | 2 | 4 | 15 | 16 | 28 | 3 | ||||||||||||
16 | 1 | 2 | 4 | 15 | 16 | 37 | 3 | ||||||||||||
17 | 1 | 2 | 4 | 15 | 16 | 41 | 3 | ||||||||||||
18 | 1 | 2 | 4 | 15 | 16 | 43 | 3 | ||||||||||||
19 | 1 | 2 | 4 | 16 | 26 | 28 | 2 | Step 1 <-----Find 1st 2 in column I and copy left 6 numbers from range B:G....Paste in to Column L below the first empty cell | |||||||||||
20 | 1 | 2 | 4 | 16 | 26 | 31 | 2 | ||||||||||||
21 | 1 | 2 | 4 | 16 | 26 | 37 | 2 | ||||||||||||
22 | 1 | 2 | 4 | 16 | 26 | 41 | 2 | ||||||||||||
23 | 1 | 2 | 4 | 16 | 26 | 43 | 2 | ||||||||||||
24 | 1 | 2 | 4 | 16 | 28 | 31 | 2 | ||||||||||||
25 | 1 | 2 | 4 | 16 | 28 | 37 | 2 | ||||||||||||
26 | 16 | 26 | 28 | 31 | 41 | 43 | 0 | ||||||||||||
27 | 16 | 26 | 28 | 37 | 41 | 43 | 0 | ||||||||||||
28 | 16 | 26 | 31 | 37 | 41 | 43 | 0 | ||||||||||||
Regards,
Moti