Bonsoir,
PAr VBA avec code à essayer
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'Macro Dan pour MICHAEL58000
Dim dlgj As Integer, dlgk As Integer, i As Integer
Dim col As Byte
If Not Intersect(Target, Range("I4")) Is Nothing Then
Range("J4:J" & Range("J" & Rows.Count).End(xlUp).Row + 1).ClearContents
Range("K4:K" & Range("K" & Rows.Count).End(xlUp).Row + 1).ClearContents
col = WorksheetFunction.Match(Range("I4"), Range("C2:H2"), 0) + 2
For i = 3 To Range("A" & Rows.Count).End(xlUp).Row
If Cells(i, col) = "c" Then
dlgj = Range("J" & Rows.Count).End(xlUp).Row + 1
dlgk = Range("K" & Rows.Count).End(xlUp).Row + 1
Range("J" & dlgj) = Cells(i, 1)
Range("K" & dlgk) = Cells(i, 2)
End If
Next
End If
End Sub
Le code est à placer dans la feuille concernée par le tableau
Pour le placer, clique sur l'onglet, choisir "visualiser le code" et coller le code ci-avant
Le choix de la liste déroulante en I4 exécutera le code.
Amicalement
edit : Salut Thibo