Sub NbrS1()
Dim t#, derlig&
t = Timer
With Sheets("Data")
.[AL1] = "SA": .[AM1] = "VE"
derlig = .UsedRange.Rows.Count
If derlig = 1 Then Exit Sub
.[AL2].Resize(derlig - 1) = "=1/COUNTIFS(A$2:A$" & derlig & ",A2,B$2:B$" & derlig & ",B2,G$2:G$" & derlig & ",G2)"
.[AM2].Resize(derlig - 1) = "=1/COUNTIFS(A$2:A$" & derlig & ",A2,E$2:E$" & derlig & ",E2,G$2:G$" & derlig & ",G2)"
End With
MsgBox "Durée " & Format(Timer - t, "0.00 \s")
End Sub