i = Sheet1.Cells(65536, 1).End(xlUp).Row
j = Sheet2.Cells(65536, 1).End(xlUp).Row
For p = 1 To i
t = 1
For k = 1 To j
If Sheet1.Cells(p, 1).Value = Sheet2.Cells(k, 1).Value Then
Sheet1.Cells(p, 1).Offset(0, t).Value = Sheet2.Cells(k, 1).Offset(0, 1).Value
t = t + 1
End If
Next k
Next p
End Sub