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

2024-11-29 08:07:42
推荐回答(2个)
回答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:

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