Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

comment matcher 2 colonnes avec des codes communs

1 réponse
Avatar
normane
Bonjour

J'ai 2 colonnes excel qui comportes certaines ref=E9rences communes, je
voudrais afficher 1 troisieme colonne avec ces references communes
merci par avance

1 réponse

Avatar
JB
Fonction perso Intersection() matricielle
-Sélectionner C2:C10
-=intersection(A2:A10;B2:B10)
-Valider avec Maj+Ctrl+Entrée

http://cjoint.com/?igrsKierGE

Function InterSection(a As Range, b As Range)
Dim temp()
k = 0
For i = 1 To a.Count
For j = 1 To b.Count
If a(i) = b(j) Then
ReDim Preserve temp(k)
temp(k) = a(i)
k = k + 1
End If
Next j
Next i
InterSection = Application.Transpose(temp)
End Function

JB

Bonjour

J'ai 2 colonnes excel qui comportes certaines reférences communes, je
voudrais afficher 1 troisieme colonne avec ces references communes
merci par avance