I have a 2 columns in columns AB for names and AC for figures these go down to rows 34. I have another list in column A with the same list of names in a different order I want to use a vlookup formula to match the figures from AC To the names in column A and put the figures in column B
I have tried this:
Dim i As Double
For i = 2 to 34
Cells(I, 2).Value = Application.WorksheetFunction.Vlookup(cells(i, 1).Value,Range("AB2:AC34"),2,0)
Next i
But it has error on worksheet function
Anyone help
Thanks
Alan
I have tried this:
Dim i As Double
For i = 2 to 34
Cells(I, 2).Value = Application.WorksheetFunction.Vlookup(cells(i, 1).Value,Range("AB2:AC34"),2,0)
Next i
But it has error on worksheet function
Anyone help
Thanks
Alan