This would require an array formula, which I have very little expertise in, if you have to use a formula. But I can offer a solution using VBA. This code would be copied to the standard code module1. The workbook would need to be saved as a macro enabled workbook.
Sub t()
Dim sh1 As Worksheet, sh2 As Worksheet, c As Range, fn As Range, fAdr
Set sh1 = Sheets(1) 'Substitute sheet name in quotes for index #
Set sh2 = Sheets(2) 'Substitute sheet name in quotes for index #
With sh1
For Each c In .Range("B2", .Cells(Rows.Count, 2).End(xlUp)) 'Assumes header row 1
Set fn = sh2.Range("C:C").Find(c.Value, , xlValues, xlWhole)
If Not fn Is Nothing Then
fAdr = fn.Address
Do
If Trim(fn.Offset(, 2).Value) = Trim(c.Offset(, -1).Value) Then
c.Offset(, 9) = fn.Offset(, -2).Value
Exit Do
End If
fn = sh2.Range("C:C").FindNext(fn)
Loop While fn.Address <> fAdr
End If
Next
End With
End Sub
Bookmarks