I have a probelm with vlookup function used with for loop.
In the file attached you can see what i am trying to achive. I need values from e7:e11 that are corresponding to the letters in range c7:c11 to be allocated to the correspodning entries in another table. I need to use the function vlookup and for each cell.
This i swhat i managed to workout s far but I am stuck now
![]()
Sub newmacroo() On Error Resume Next Set batchrange = Range("i7:i11") Set myrange = Range("c7:e11") For Each cl In batchrange Cells(11, asd) = Application.WorksheetFunction.VLookup(cl, myrange1, 3, False) asd = asd + 1 Next cl End Sub
Bookmarks