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
Post a Comment
jeetexceltips@gmail.com