bonjour,
as-tu essayé un tableau croisé dynamique ?
sinon voici une solution via une macro
Sub aargh()
i = 2
s = 0
o = Cells(i, 1)
While Cells(i, 1) <> ""
If Cells(i, 1) = o Then
s = s + Cells(i, 2)
Else
o = Cells(i, 1)
Rows(i).Insert shift:=xlDown
Cells(i, 2) = s
Range(Cells(i, 1), Cells(i, 2)).Interior.Color = vbYellow
s = 0
End If
i = i + 1
Wend
End Sub