1) Table 1 and 2 same sheet.


Option Explicit
Sub VlookUpExampleSameSheets()

'This example look up table inside same sheet as picture above (TABLE 1 & 2 SAME SHEET)
Dim rw As Long
For rw = 3 To 12
Cells(rw, 7) = Application.VLookup(Cells(rw, 6), ActiveSheet.Columns("B:C"), 2, False)
Next
End Sub

Comments

Popular posts from this blog

50 Excel VBA Oral Interview Questions