Public Function SomCoul(p As Range, c As Range, val As String)
Dim coul As Long, s, Cel
Application.Volatile
coul = c.Interior.ColorIndex
s = 0
For Each c In p
If c.Interior.ColorIndex = coul And val Like Cells(c.Row + 1, (c.Column) - 4) Then s = s + c.Value
Next c
SomCoul = s
End Function