我有以下公式:
=COUNTIFS(A2:A41, {"CORE", "TRIAL"})
然而,当它应该是10的时候,它却变成了7。有7个核心和3个试验。我是不是漏掉了什么?只是为了测试,我试着把试验放在第一位,它被计算为3
发布于 2020-08-06 14:46:25
将公式更改为
=sum(ArrayFormula(COUNTIF(A2:A41, {"CORE", "TRIAL"})))
或使用
=sumproduct(regexmatch(A2:A41, "CORE|TRIAL"))
如果您只想要完全匹配,请使用
=sumproduct(regexmatch(A2:A41, "^CORE|TRIAL$"))
看看能不能帮上忙?
https://stackoverflow.com/questions/63276791
复制相似问题