Function Rech(x$, table As Range, col%)
Dim adr$, L%, i%, j%, formule$
adr = table.Address(External:=True)
L = Len(x)
For i = 1 To L
If Mid(x, i, 1) = "R" Then
For j = i + 1 To L+ 1
If Not IsNumeric(Mid(x, j, 1)) Then
formule = formule & "VLOOKUP(""" & Mid(x, i, j - i) & """," & adr & "," & col & ",0)"
i = j
Exit For
End If
Next j
End If
formule = formule & Mid(x, i, 1)
Next i
Rech = Evaluate(formule)
End Function