You have two statements in your IF condition:MyCell.Offset(0, -2).Value = WorksheetFunction.VLookup(Val(Mid(MyCell, 2, 1)), Sheets("Department").Range("ONERNG"), 2, False)
MyCell.Offset(0, -2).Value = WorksheetFunction.VLookup(Val(Mid(MyCell, 2, 2)), Sheets("Department").Range("TWORNG"), 2, False)
Both statements are writing to the same cell so that only the results of the last statement are preserved since it overwrites whatever is written by the first statement.
What are you trying to do with those two statements?
Bookmarks