Salut Luboyoy0, modérateur Amadéus et le forum
Pourquoi mettre une colonne supplémentaire, la fonction modifiée, par l'ajout d'un test
If ValeurCherchée = c And Left(MatriceTrouve(i), Len(Egale)) = Egale then
Function RechercheMultiples(ValeurCherchée As String, MatriceCherche, MatriceTrouve, Egale As String, Optional Seprator As String) As String
Dim c, i As Long
If Separator = "" Then Separator = " "
For Each c In MatriceCherche
i = i + 1
If ValeurCherchée = c And Left(MatriceTrouve(i), Len(Egale)) = Egale Then
If RechercheMultiples = "" Then
RechercheMultiples = MatriceTrouve(i)
Else
RechercheMultiples = RechercheMultiples & Separator & MatriceTrouve(i)
End If
End If
Next c
End Function
Mytå