Google Sheets Pattern Matching/RegEx for COUNTIF

前端 未结 2 876
不知归路
不知归路 2021-02-12 15:26

The documentation for pattern matching for Google Sheets has not been helpful. I\'ve been reading and searching for a while now and can\'t find this particular issue. Maybe I\'m

2条回答
  •  星月不相逢
    2021-02-12 16:10

    As you identified and Wiktor mentioned COUNTIF only supports wildcards.

    There are many ways to do what you want though, to name but 2

    =ArrayFormula(SUM(--REGEXMATCH(E9:E13, "50-03[123][012]*")))
    
    =COUNTA(FILTER(E9:E13, REGEXMATCH(E9:E13, "50-03[123][012]*")))
    

提交回复
热议问题