Sub tirage()
Dim NbrIdentic&, derlig&, xval, t1, t2, i&, j&, n&
Application.ScreenUpdating = False
NbrIdentic = Range("j3")
Range("i9").Resize(Rows.Count - 8, 7).Clear
derlig = Cells(Rows.Count, "a").End(xlUp).Row
Range("a9:f" & derlig).Copy Range("i9")
For Each xval In Range("b3:f3").Value: Range("i9:n" & derlig).Replace xval, "#N/A", lookat:=xlWhole: Next
t1 = Range("a9:f" & derlig)
t2 = Range("i9:n" & derlig)
For i = 1 To UBound(t2)
t2(i, 1) = 0: For j = 2 To 6: t2(i, 1) = t2(i, 1) - IsError(t2(i, j)): Next
If t2(i, 1) >= NbrIdentic Then: n = n + 1: For j = 1 To 6: t2(n, j) = t1(i, j): Next
Next i
Range("i9").Resize(Rows.Count - 8, 7).Clear
If n = 0 Then Exit Sub
Range("i9:n9").Resize(n) = t2
Range("j9:n9").Resize(n).Borders.LineStyle = xlContinuous
Range("i9:n9").Resize(n).HorizontalAlignment = xlCenter
End Sub