Bonjour,
Une solution VBA :
Sub galopin()
Dim i%, a(), b(), c(), D
Set D = CreateObject("Scripting.Dictionary")
a = Range("A2:F" & [a65000].End(xlUp).Row) ' tableau a(n,1)
For i = LBound(a) To UBound(a)
D(a(i, 1)) = IIf(a(i, 6) >= 0.84, D(a(i, 1)) + 1, D(a(i, 1)))
Next i
[H2].Resize(D.Count, 1) = Application.Transpose(D.keys)
b = D.items ' transfert dans tableau b(0 To n-1)
[I2].Resize(D.Count, 1) = Application.Transpose(D.items)
D.RemoveAll
For i = LBound(a) To UBound(a)
D(a(i, 1)) = IIf(a(i, 6) >= 0.8, D(a(i, 1)) + 1, D(a(i, 1)))
Next i
c = D.items ' transfert dans tableau c(0 To n-1)
For i = LBound(b) To UBound(b)
c(i) = c(i) - b(i)
Next
[J2].Resize(UBound(c) + 1, 1) = Application.Transpose(c)
End Sub
C'est peut-être pas ce qu'on fait de plus élégant... mébon !
[EDIT] 18h15 pour prendre en compte >=
A+