Hi all
I'm working on a data excel sheet and looking to count the cells in a column that have a certain font color. I wrote a VB function to do this. In the blank cell I wrote the formula to call up the function and count the cells in red (=CountColour(F4:F25,F16) Everything seems to work except it counts all the cells with a number.
Here is where I've narrowed the problem. In column F4:F25 I have another formula that converts certain cells to a red font (based on data elsewhere). What I'm seeing is that my CountColour formula does'nt see that 'red' font and thinks it's black. It's counting all the cells with a number in it.
Any ideas on how I can fix my formula(s)?
Thanks much!
I'm working on a data excel sheet and looking to count the cells in a column that have a certain font color. I wrote a VB function to do this. In the blank cell I wrote the formula to call up the function and count the cells in red (=CountColour(F4:F25,F16) Everything seems to work except it counts all the cells with a number.
Here is where I've narrowed the problem. In column F4:F25 I have another formula that converts certain cells to a red font (based on data elsewhere). What I'm seeing is that my CountColour formula does'nt see that 'red' font and thinks it's black. It's counting all the cells with a number in it.
Any ideas on how I can fix my formula(s)?
Thanks much!