Function CountTextByFontColor(rng As Range, colorCell As Range) As Long
Dim cell As Range
Dim countResult As Long
For Each cell In rng
If cell.Value <> "" And Not IsNumeric(cell.Value) Then
If cell.Font.Color = colorCell.Font.Color Then
countResult = countResult + 1
End If
End If
Next cell
CountTextByFontColor = countResult
End Function