MFerrand a écrit :
Bonjour,
Explique-toi mieux, tous tes chiffres sont répétés dans les 4 premières positions !
Dans mon exemple 12351==> 1 se répète
Merci pour ton retour
N'étant pas un spécialiste d'excel comment je peux l'intégrer dans un fichier STP?
Merci d'avance
h2so4 a écrit :
Bonjour,
solution via une macro
Sub test()
For i = 12345 To 98765
For j = 1 To 4
For k = j + 1 To 5
If Mid(i, j, 1) = Mid(i, k, 1) Then k = 99: Exit For
Next k
If k > 10 Then Exit For
Next j
If k > 10 Then l = l + 1: Cells(l, 1) = i
Next i
End Sub