Google Sheets Pattern Matching/RegEx for COUNTIF

前端 未结 2 1390
悲&欢浪女
悲&欢浪女 2021-02-12 15:38

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 15:51

    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]*")))
    

提交回复
热议问题