Merci a tous et au Forum
Me le suit taper en VBA compliquer mais ca marche surement pas dur pour certain de faire plus simple
Sub Triage()
' Efface l'ancien triage
Sheets("Triage").Select
Range("T5").Value = "En traitement"
Application.ScreenUpdating = False
For i = 11 To Range("c65535").End(xlUp).Row
For j = 2 To 72
Cells(i, j).Value = ""
Next j
Next i
Application.ScreenUpdating = True
' Lecture des valeurs à chercher
Application.ScreenUpdating = False
A1 = Range("C5").Value
A2 = Range("D5").Value
A3 = Range("E5").Value
A4 = Range("F5").Value
A5 = Range("G5").Value
Position = 11
' Triage avec la feuille 2002
Sheets("2002").Select
For rangee = 2 To Range("b65535").End(xlUp).Row
Sheets("2002").Select
If Cells(rangee, 26 + A1).Value = A1 And Cells(rangee, 26 + A2).Value = A2 And Cells(rangee, 26 + A3).Value = A3 And Cells(rangee, 26 + A4).Value = A4 And Cells(rangee, 26 + A5).Value = A5 Then
An = Cells(rangee, 1).Value
Sheets("Triage").Select
Cells(Position, 2).Value = An
For colonne = 27 To 96
Sheets("2002").Select
B = Cells(rangee, colonne).Value
Sheets("Triage").Select
Cells(Position, colonne - 24).Value = B
Next colonne
Application.ScreenUpdating = True
Position = Position + 1
Application.ScreenUpdating = False
End If
Next rangee
' Triage avec la feuille 2003
Sheets("2003").Select
For rangee = 2 To Range("b65535").End(xlUp).Row
Sheets("2003").Select
If Cells(rangee, 26 + A1).Value = A1 And Cells(rangee, 26 + A2).Value = A2 And Cells(rangee, 26 + A3).Value = A3 And Cells(rangee, 26 + A4).Value = A4 And Cells(rangee, 26 + A5).Value = A5 Then
An = Cells(rangee, 1).Value
Sheets("Triage").Select
Cells(Position, 2).Value = An
For colonne = 27 To 96
Sheets("2003").Select
B = Cells(rangee, colonne).Value
Sheets("Triage").Select
Cells(Position, colonne - 24).Value = B
Next colonne
Application.ScreenUpdating = True
Position = Position + 1
Application.ScreenUpdating = False
End If
Next rangee
Sheets("Triage").Select
Range("T5").Value = "Terminé"
Call Total
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Valide de 0 a 5 choix
Merci qd mm Djar