Function Filtrer(colonnes As Range, col1%, col2%, crit1$, crit2$, col%)
Dim tablo, a(), i&, n&
tablo = Intersect(colonnes, colonnes.Parent.UsedRange.EntireRow) 'matrice, plus rapide
For i = 2 To UBound(tablo)
If tablo(i, col1) = crit1 And tablo(i, col2) = crit2 Then
ReDim Preserve a(n)
a(n) = tablo(i, col)
n = n + 1
End If
Next
If n Then Filtrer = a 'tableau à une dimension
End Function