Bonjour,
Voici 2 possibilités pour un résultat identique (choisis celle qui te parle le plus ) :
Sub liste()
For i = 2 To 5 'colonnes
For ii = 6 To Range("B5").End(xlDown).Row 'lignes
If WorksheetFunction.CountIf(Range("G6:G" & Range("G50000").End(xlUp).Row), Cells(ii, i)) = 0 And Cells(ii, i) <> "Aucun" Then
Range("G" & Range("G50000").End(xlUp).Row + 1) = Cells(ii, i)
End If
Next
Next
End Sub
Sub liste2()
ligne_resultat = 6
For i = 2 To 5 'colonnes
For ii = 6 To Range("B5").End(xlDown).Row 'lignes
If WorksheetFunction.CountIf(Range("G6:G" & ligne_resultat), Cells(ii, i)) = 0 And Cells(ii, i) <> "Aucun" Then
Range("G" & ligne_resultat) = Cells(ii, i)
ligne_resultat = ligne_resultat + 1
End If
Next
Next
End Sub
Le fichier :
Cordialement,