excel COUNTIFS 函数怎样统计满足a或b

2024-11-29 08:00:31
推荐回答(4个)
回答(1):

=SUM(COUNTIF(A:A,{"a","b"}))

=COUNTIF(A:A,"a")+COUNTIF(A:A,"b")
这两个公式不区分字母大小写
=SUMPRODUCT(LEN(A1:A9)-LEN(SUBSTITUTE(SUBSTITUTE(A1:A9,"a",),"b",)))

回答(2):

=SUM(COUNTIFS(A:A,{"a","b"}))

回答(3):

=countif(A:A,"A")+countif(A:A,"B")

回答(4):

a或b?
a且b吧