如何将不同尺寸的行转换为带有一些回收字段的列的行?
我的问题是:
我在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这些数据在矩形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