Private Sub CommandButton1_Click()
Dim DATA(), t, u, v
'Récupération des données
DATA = Range("A2:C" & Application.Max(Range("A2").End(xlDown).Row, Range("B2").End(xlDown).Row)).Value
For t = 1 To UBound(DATA, 1)
If DATA(t, 1) = "" Then Exit For
'recherche dans la colonne B de chaque valeur de la colonne A
For u = 1 To UBound(DATA, 1)
If CStr(DATA(u, 2)) Like CStr(DATA(t, 1)) & "*" Then
v = v + 1
DATA(v, 3) = DATA(u, 2): Exit For
End If
Next u
Next t
'Affichage des résultats
Range("A2").Resize(UBound(DATA, 1), 3) = DATA()
End Sub