count conditional format colour

S

shital

i have given some conditional format to the cell. which
have red, green & black colour. Can it count the cell how
much cell in red colour & green & black.

Thanks in Advance

Shital
..
 
D

Debra Dalgleish

Use the same conditions for counting that you used to colour the cells.
For example, =COUNTIF(G2:G30,"<40")
 
D

Don Guillett

This will count the red. modify to suit.

Sub countcolor()
For Each c In [a1:a10]
If c.Interior.ColorIndex = 46 Then mc = mc + 1
Next
MsgBox mc
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top