Private Sub Worksheet_Change(ByVal Target As Range)
Dim d As Object, dd As Object, c As Range, coul&
Set d = CreateObject("Scripting.Dictionary")
Set dd = CreateObject("Scripting.Dictionary")
For Each c In [D3:M17] 'plage à adapter
coul = c.DisplayFormat.Interior.Color
d(coul) = d(coul) + 1 'comptage
dd(coul) = dd(coul) + Val(Replace(c, ",", ".")) 'somme
Next
Application.EnableEvents = False 'désactive les évènements
For Each c In [A4:A6] 'plage à adapter
coul = c.Interior.Color
c = "Nombre " & d(coul) & " - Somme " & Format(dd(coul), "0.00")
Next...