Sub CompteValeur()
Dim DerLig, MonTab, i, j, x
DerLig = Range("A" & Rows.Count).End(xlUp).Row
MonTab = Range("A2:D" & DerLig)
With CreateObject("Scripting.Dictionary")
For i = LBound(MonTab, 1) To UBound(MonTab, 1)
For j = LBound(MonTab, 2) To UBound(MonTab, 2)
.Item(MonTab(i, j)) = .Item(MonTab(i, j)) + 1
Next
Next
x = Application.Transpose(Array(.keys, .Items))
Range("H12").Resize(.Count, 2) = x
Range("H12:I" & .Count + 12).Sort Key1:=Range("H12"), Order1:=xlAscending, Header:=xlGuess
End With
End Sub