如何使用公式计算一段文本在 Google 工作表中某个范围内出现的总次数?

How do I calculate the total number of times a piece of text occurs in a range in Google Sheets using a formula?

如何使用公式计算一段文本在 Google 工作表中某个范围内出现的总次数? Link 到 Google 张: https://docs.google.com/spreadsheets/d/161UHaeiMJ_FNdRErgkdnUqEvbBUutqdq1uHat7GjXXA/edit

尝试:

=QUERY(FLATTEN(SPLIT(TEXTJOIN(", ", 1, B2:L5), ", ")), 
 "select Col1,count(Col1) 
  where Col1 is not null 
  group by Col1 
  label count(Col1)''")