Bonsoir,
Sans information de ta part, un exemple avec l'objet "Dictionary", codé en dur.
2 feuilles (onglets) : "Données" et "Résultat".
Pour l'exemple la feuille "Données" comprend un tableau de valeurs comprises ente 1 et 260...
Procédure à lancer avec Ctrl+A
Option Explicit
Public Sub Décompter()
'Ctrl+a pour lancer la procédure
Dim Ws_1 As Worksheet, Ws_2 As Worksheet
Dim plage As Range, c As Range
Dim monDico
Application.ScreenUpdating = False
Set Ws_1 = Worksheets("Données")
Set Ws_2 = Worksheets("Résultat")
Set monDico = CreateObject("Scripting.Dictionary")
With Ws_2
.Cells.ClearContents
End With
With Ws_1
Set plage = .Range(.Cells(2, 2), .Cells(51, 31))
For Each c In plage
monDico(c.Value) = monDico(c.Value) + 1
Next c
End With
With Ws_2
.[A1].Resize(monDico.Count, 1) = Application.Transpose(monDico.keys)
.[B1].Resize(monDico.Count, 1) = Application.Transpose(monDico.items)
.[A1].Sort Key1:=[A1], Order1:=xlAscending, Header:=xlNo
End With
Set Ws_1 = Nothing: Set Ws_2 = Nothing: Set plage = Nothing
End Sub