如何将1行转换为列并自动填充另一列?

时间:2019-06-11 22:17:50

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

我有一张工作表,上面有这样的数据:

Timestamp1 Value1 Value2 Value3

Timestamp2 Value1 

如何设置数组公式/查询/等?在Google表格中将数据格式化为:

Timestamp1 Value1

Timestamp1 Value2

Timestamp1 Value3

Timestamp2 Value1

1 个答案:

答案 0 :(得分:1)

=ARRAYFORMULA(TRIM(SPLIT(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
 IF(B1:D<>"", "♠"&A1:A&"♦"&B1:D, )),,999^99)),,999^99), "♠")), "♦")))

0