将多行转换为Google表格中的列

时间:2019-12-05 17:14:05

标签: google-sheets google-sheets-formula transpose array-formulas google-sheets-query

我要在此数据中使用转置公式

Input

我希望欲望输出看起来像这样

enter image description here

1 个答案:

答案 0 :(得分:1)

尝试:

=QUERY(A2:B, "select max(B) where A is not null group by B pivot A")

0


或:

=ARRAYFORMULA(SUBSTITUTE(TRANSPOSE(SPLIT(TRANSPOSE(QUERY(QUERY(
 {SUBSTITUTE(A2:A, " ", "♥"), B2:B}, 
 "select max(Col2)
  where Col1 is not null
  group by Col2
  pivot Col1"),,999^99)), " ")), "♥", " "))

0