Google Spreadsheet, filter doesn't allow wildcards? How to countif multiple columns with wildcards?

前端 未结 1 737
独厮守ぢ
独厮守ぢ 2021-01-12 12:34

When I do:

B         C
223 herp
223 herp
3   herp
223 derp
223 herp,derp

=countif(C:C, \"*herp*\")

I correctly get 4.

When I do

相关标签:
1条回答
  • 2021-01-12 13:08

    FILTER doesn't support wildcards, no. You need to do something like:

    =COUNT(FILTER(B:B,B:B=223,SEARCH("herp",C:C)))

    or

    =COUNT(FILTER(B:B,B:B=223,REGEXMATCH(C:C,"herp")))

    Alternatively, in the new version of Sheets, COUNTIFS is supported:

    =COUNTIFS(B:B,223,C:C,"*herp*")

    0 讨论(0)
提交回复
热议问题