Sub Som_cel_coul()
Dim i As Integer, Tot As Long
Tot = 0
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
If Cells(i, 1).Interior.ColorIndex = 6 Then
Tot = Tot + Cells(i, 1)
End If
Next
MsgBox "le total des cellules de couleur jaune est de : " & Tot
End Sub