Lou*_*s93 6 google-sheets array-formulas google-sheets-query google-sheets-formula
假设我所拥有的是下面的A列
+ +
A | B | C
+--------------|---------|----------+
| |
X, Y, Z | X | 3
| |
X, Z | Y | 2
| |
X, Y | Z | 2
+ +
Run Code Online (Sandbox Code Playgroud)
如何生成列B和C - 其中B列从A中获取唯一元素,C列生成这些值的计数.
Ada*_*amL 15
=ArrayFormula(QUERY(TRANSPOSE(SPLIT(JOIN(",",A:A),",")&{"";""}),"select Col1, count(Col2) group by Col1 label count(Col2) ''",0))