如何将行转换为列?

发布于 2025-01-26 23:08:25 字数 1614 浏览 2 评论 0 原文

我有下面的数据,需要帮助,因为我不知道可以使用哪种公式将表转换为所需的表。

我不知道 QUERY> QUERY support.google.com/docs/answer/3094262“ rel =“ nofollow noreferrer”> transpose

当前数据集:

日期 E1 E2 E2 E3
4/01/2021 4,17% 3,3,3, 53% 3,16%
11/01/2021 4,40% 3,69% 3,58%
18/01/2021 4,93% 4,39% 4,39% 4,10%

预期的预期输出:

日期 类型 /
4/01/01 2021 E1 4,17%
4/01/2021 E2 3,53%
01/2021 E3 3,16
4/ E1 4,40%
2021 11/01/2021 E2 3,69%
% 11/01/ 11/01/01/01/01/01/ 2021 E3 3,58%
18/01/2021 E1 4,93%
18/01/2021 E2 4,39%
18/01 /2021 E3 4,10%

data set set(google sheets)

I have this table with data below and need help because I don't know which formula can I use to convert the table into the desired one.

I don't know if it's possible with ARRAYFORMULA, QUERY or TRANSPOSE

Current Data Set:

Date E1 E2 E3
4/01/2021 4,17% 3,53% 3,16%
11/01/2021 4,40% 3,69% 3,58%
18/01/2021 4,93% 4,39% 4,10%

Expected Output:

Date Type Metric
4/01/2021 E1 4,17%
4/01/2021 E2 3,53%
4/01/2021 E3 3,16%
11/01/2021 E1 4,40%
11/01/2021 E2 3,69%
11/01/2021 E3 3,58%
18/01/2021 E1 4,93%
18/01/2021 E2 4,39%
18/01/2021 E3 4,10%

Data Set (Google Sheets)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离不开的别离 2025-02-02 23:08:25

使用:

={"Date"\ "Type"\ "Metric"; INDEX(QUERY(SPLIT(
 FLATTEN(A2:A6&"×"&B1:L1&"×"&B2:L6); "×"); 
 "where Col3 is not null"; ))}

在此处输入图像描述“

use:

={"Date"\ "Type"\ "Metric"; INDEX(QUERY(SPLIT(
 FLATTEN(A2:A6&"×"&B1:L1&"×"&B2:L6); "×"); 
 "where Col3 is not null"; ))}

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文