Count/sum 列的单元格中的单词出现 - Google 工作表

Count/sum occurrences of word in cell in column - Google Sheets

我有两列 text/abbreviations 我想在一个(或两个)表格中进行总结。

示例:

第 1 列:SiteScopeInput

Swap_G09+Remove_U21+Rollout_L07+Swap_L08+Swap_L18+Rollout_L21+Rollout_N35 Remove_U21+Rollout_L07+Swap_L08+Swap_L18+Rollout_L21+Rollout_N35 Swap_G09+Rollout_L07+Swap_L08+Swap_L09+Swap_L18+Rollout_L21+Swap_L26+Rollout_N35 Swap_G09+Remove_U21+Rollout_L07+Swap_L08+Swap_L18+Rollout_L21+Rollout_N35

在这里我想总结一下单词出现的次数——例如: Swap_G09 Remove_U1 Rollout_L07 等等。

我尝试了以下组合 ArrayFormula, LEN and REGEXREPLACE 但我的初学者头脑无法完成这项任务。

有什么建议吗?谢谢!

如果你想将 Swap_G09 等作为一个单独的词来处理,那么应该结合使用 split、flatten 和 query:

=ArrayFormula(query(FLATTEN(split(filter(A:A,A:A<>""),"+")),"select Col1,count(Col1) where Col1 is not null group by Col1 label Col1 'Word'"))