Sub TotalF1enF2()
Dim Ws1, Ws2 As Worksheet
Set Ws1 = Sheets("feuil1")
Set Ws2 = Sheets("feuil2")
Set mondico = CreateObject("Scripting.Dictionary")
For Each c In Ws1.Range("a2", Ws1.[a65000].End(xlUp))
mondico(c.Value) = mondico(c.Value) + c.Offset(, 1).Value
Next c
Ws2.[E2].Resize(mondico.Count, 1) = Application.Transpose(mondico.keys)
Ws2.[f2].Resize(mondico.Count, 1) = Application.Transpose(mondico.items)
Ws2.[E1].Sort Key1:=[E2], Order1:=xlAscending, Header:=xlYes
End Sub