How to count up text of a different font colour in excel

前端 未结 3 2040
死守一世寂寞
死守一世寂寞 2020-11-27 07:54

I have a list of names that has been exported from another database into excel. The names in the list that are of interest are highlighted in red font. I would like a way to

3条回答
  •  爱一瞬间的悲伤
    2020-11-27 08:20

    For Each cell In Range("A1:A100")
        If cell.Font.Color = 255 And cell.Value = "John Smith" Then
            myCount = myCount + 1
        End If
    Next
    

提交回复
热议问题