如何通过在条件中使用或而不是键入+countif作为另一个条件来查找单词“Apple”或“橙子”?我的意思是在同一个条件中添加OR。
=countif(A1:A100,"apple|Orange")
vaj7vani1#
用途:
=SUMPRODUCT(REGEXMATCH(A1:A100, "apple|Orange"))
要使其不区分大小写,请用途:
=SUMPRODUCT(REGEXMATCH(A1:A100, "(?i)apple|Orange"))
ux6nzvsh2#
arrayformula(countifs(REGEXMATCH(A1:A100," (?i)apple|orange"), true, B1:B100, "banana"))
2条答案
按热度按时间vaj7vani1#
用途:
要使其不区分大小写,请用途:
ux6nzvsh2#
arrayformula(countifs(REGEXMATCH(A1:A100," (?i)apple|orange"), true, B1:B100, "banana"))