首页 > 解决方案 > 将多行转换为 Google 工作表中的列

问题描述

我想在这个数据中使用转置公式

输入

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

在此处输入图像描述

标签: google-sheetsgoogle-sheets-formulatransposearray-formulasgoogle-sheets-query

解决方案


尝试:

=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


推荐阅读