To match values of two columns from Range A with another two columns from Range B and copy third column value from range B against matched row
I'm trying to To match the values of two-column from Range A with another two columns from Range B and copy the third column value with the cell link as shown in the highlighted cell in the attached screenshot. I've able to do this, but I'm not close to solving this.
Sub TRIAL_Example3()
Dim k As Integer
With Worksheet("TRIAL")
Lastrow = .Range("A" & .Rows.Count).End(xlUp).Row
For k = 2 To Lastrow
If (Cells(k, 1).Value = WorksheetFunction.VLookup(Cells(k, 1).Value, Range("F2:H" & Lastrow),1, 0))
And (Cells(k, 2).Value = WorksheetFunction.VLookup(Cells(k, 1).Value, Range("F2:H" & Lastrow),1,
0)).offset(1,0) Then
Cells(k, 11).Value = WorksheetFunction.VLookup(Cells(k, 1).Value, Range("F2:H" & Lastrow), 1, 0)
Cells(k, 12).Value = WorksheetFunction.VLookup(Cells(k, 1).Value, Range("F2:H" & Lastrow), 1,
0).Offset(1, 0)
Cells(k, 13).Value = WorksheetFunction.VLookup(Cells(k, 1).Value, Range("F2:H" & Lastrow), 1,
0).Offset(2, 0)
Else:
Next k
End Sub
MATCH()
formula - eg exceljet.net/formula/index-and-match-with-multiple-criteria – Tim Williams