Thread
:
How do I calculate number of colored cells?
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
How do I calculate number of colored cells?
Sub countcoloredcells()
For Each C In Range("a2:f2")
If C.Interior.ColorIndex = -4142 Then mc = mc + 1
Next C
MsgBox mc
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Rui" wrote in message
...
Hi to master gurus in excel,
I really need your help to solve one issue: how to calculate number of
collor cells?
For instance, from cells range A2:F2 (6 cells),if there are 2 cells filled
in any colors, the counter in cell G2 should be equal to 4(6-2).
Any thoughts?
--
Thanks in advance!
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett