Public Function Compter(Critère1 As Range, critère2 As Range) As Integer
With ActiveSheet.ListObjects("Tablo")
For i = 1 To .ListRows.Count
If .DataBodyRange(i, 2) = Critère1 And .DataBodyRange(i, 3) = critère2 And Year(.DataBodyRange(i, 1)) < Year(Now) Then
Compter = Compter + 1
End If
Next i
End With
End Function