S sampi New Member Apr 9, 2024 #1 Hi How to count colors with a user defined function in the book attached? Thanks Attachments CountColors.xlsm 17.4 KB · Views: 2
Marc L Excel Ninja Apr 9, 2024 #2 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 !
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 !