Bonjour,
un essai par fonction personnalisée, en supposant que le tableau 1 commence en ligne 1 colonnes A, B et C, et le tableau 2 en ligne 26:
Dans un module standard :
Function ValProch(Plage, Ref, Prix)
T = Plage
Ecart = 9 ^ 9
For i = LBound(T, 1) To UBound(T, 1)
If T(i, 1) = Ref Then
If Abs(Prix - T(i, 2)) < Ecart Then
Ecart = Abs(Prix - T(i, 2))
Lct = T(i, 3)
End If
End If
Next
ValProch = Lct
End Function
et en cellule C27 : =ValProch($A$3:$C$25;A27;B27) à tirer vers le bas
A+