如何将不同尺寸的行转换为带有一些回收字段的列的行?

发布于 2025-02-08 05:55:47 字数 291 浏览 3 评论 0原文

我的问题是:

我在Excel [3x5]上有一个表格,其中有以下字段:

a 1 2 3 4; b 5 6; C 7 8 9;

,我想将其转换为:


a 1; A 2; 3; 4; b 5; b 6; C 7; C 8; C 9;


我该如何在Excel或Powerbi上执行此操作?

谢谢。

My problem is the following:

I have a table on excel [3x5] with the following fields:

a 1 2 3 4 ; b 5 6 ; c 7 8 9;

And I want to transform it into:


a 1; a 2; a 3; a 4; b 5; b 6; c 7; c 8; c 9;


How can I do this on excel or powerbi?

Thanks.

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

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

发布评论

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

评论(1

岛徒 2025-02-15 05:55:47

如果这些数据在矩形A1:e3中
在G1列中,put = if(b1 =“”,“”,$ a1&“”& b1);复制到J,然后复制。
在K列中;并复制。
在L1列中= Condenate(G1,K1,H1,K1,I1,K1,J1,K1)
现在,我们有1个,但可能是4个半龙。我们希望摆脱1个以上的时间。
一个工作,但略微厚脸皮的方法是在N1中进行:=替换(l1,“;;”,“;”)并将其复制到O和P,然后向下。

然后在R1中P1
但是在R2中并复制put:= r1& p2

If those data are in the rectangle A1:E3
In column G1 put =IF(B1="","",$A1&" "&B1) ; copy across to J, and copy down.
In column K put ; and copy down.
In column L1 put =CONCATENATE(G1,K1,H1,K1,I1,K1,J1,K1)
Now we have 1, but possibly 4, semicolons at the end; we want to get rid of any more than 1.
A working, but slightly cheeky, way is in N1 to put: =SUBSTITUTE(L1,";;",";") and copy to O and P, then down.

Then in R1 put P1.
But in R2 and copy down put: =R1&P2

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