我有两列文本/缩写,我想在一个(或两个)表中进行总结。
示例:
第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的组合,但我的初学者无法完成这一任务。
有小费吗?谢谢!
发布于 2021-07-07 10:57:16
如果您想将Swap_G09等作为一个单独的单词来处理,那么应该使用拆分、扁平和查询的组合:
=ArrayFormula(query(FLATTEN(split(filter(A:A,A:A<>""),"+")),"select Col1,count(Col1) where Col1 is not null group by Col1 label Col1 'Word'"))

https://stackoverflow.com/questions/68281426
复制相似问题