Function SOMME_SI_COULEUR(Couleur As Range, Plage As Range) As Long
Application.Volatile
Dim NoCells As Long
Dim CellColour As Long
Dim rngCell As Range
CellColour = Couleur.Interior.Color
For Each rngCell In Plage
If rngCell.Interior.Color = CellColour Then
NoCells = NoCells + 1
End If
Next
SOMME_SI_COULEUR = NoCells
End Function