Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi
I've used the following code to count the number of cells in a range that are filled yellow, using the basic funtion '=CountYellow(A1:A99)' Function CountYellow(MyRange As Range) Dim iCount As Integer Application.Volatile iCount = 0 For Each cell In MyRange If cell.Interior.ColorIndex = 6 Then iCount = iCount + 1 End If Next cell CountYellow = iCount End Function However I now need to count the same range of cell that are coloured but contain only zeros, any ideas? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
counting coloured fields | Excel Discussion (Misc queries) | |||
Counting Coloured Row | Excel Worksheet Functions | |||
Counting Coloured Text | Excel Discussion (Misc queries) | |||
Counting coloured cells | Excel Discussion (Misc queries) | |||
counting coloured cells | Excel Worksheet Functions |