Excel - 从矩阵到列表

时间:2016-05-13 13:43:18

标签: excel list matrix

我想将矩阵转换为单列列表。

假设我有这个矩阵:

System.getProperty("user.dir")

我希望从中列出一个列表,如下所示:

qq|w|x|y|z
a |1| |2|
b | | |2|3
c |1|3|2|

编辑:我正在使用Excel 15.19(对于mac)

1 个答案:

答案 0 :(得分:1)

使用 A1 E4 的数据,在 F2 中输入:

=A2 & "," & B2 & "," & C2 & "," & D2 & "," & E2

并向下复制并在 G2 中输入:

=SUBSTITUTE(SUBSTITUTE(IF(RIGHT(F2,1)=",",MID(F2,1,LEN(F2)-1),F2),",,",","),",,",",")

并复制下来:

enter image description here