• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count Colors

sampi

New Member
Hi
How to count colors with a user defined function in the book attached?
Thanks
 

Attachments

  • CountColors.xlsm
    17.4 KB · Views: 1
Hi, according to your attachment a non CF counting color function :​
Code:
Function CountColor&(Rg As Range, Rc As Range)
    For Each Rg In Rg:  CountColor = CountColor - (Rg.Interior.Color = Rc.Interior.Color):  Next
End Function
Do you like it ? So thanks to click on bottom right Like !​
 
Back
Top