Function COUNTSHADED(rng As Range) As Long
Dim lngCount As Long
Dim CellA As Range
For Each CellA In rng
If CellA.Interior.Color <> 16777215 Then 'Blank interior
lngCount = lngCount + 1
End If
Next CellA
COUNTSHADED = lngCount
End Function
How did the cells get their shading... manually set or by means of Conditional Formatting?Is there a way to count shaded cells only , I am stranded in a case where I am waiting reply meanwhile I need to self sort myself with another indirect trick
How did the cells get their shading... manually set or by means of Conditional Formatting?