A
andrei
Example :
A1: 1
A2: 2
A3: 3
A4: 4
A5: 5
B1 : Andrew
B2 : John
B3 : Smiley
B4: Irene
B5 : Obama
C1 : 2
C2 : 2
C3 : 1
C4 : 5
C5: 3
The result should be this :
D1: John
D2: John
D3: Andrew
D4: Obama
D5: Smiley
Macro reads C column from the first cell (C1) . Finds "2" . Goes to A column
where it finds "2" in cell A2 . For 2 in A column coresponds "John" in B
column . So , in D1 puts "John "
And so on ....
Numbers from A column do not repeat ( are from 1 to n )
Numbers from C column repeat
A1: 1
A2: 2
A3: 3
A4: 4
A5: 5
B1 : Andrew
B2 : John
B3 : Smiley
B4: Irene
B5 : Obama
C1 : 2
C2 : 2
C3 : 1
C4 : 5
C5: 3
The result should be this :
D1: John
D2: John
D3: Andrew
D4: Obama
D5: Smiley
Macro reads C column from the first cell (C1) . Finds "2" . Goes to A column
where it finds "2" in cell A2 . For 2 in A column coresponds "John" in B
column . So , in D1 puts "John "
And so on ....
Numbers from A column do not repeat ( are from 1 to n )
Numbers from C column repeat