如何将多行多列的表格转换成两行多列或两列多行?
发布网友
发布时间:2022-04-29 16:50
我来回答
共2个回答
热心网友
时间:2023-10-20 14:11
作辅助列E列和F列
E2=COUNTA(B2:D2)
下拉至E5
F2输入如下数组公式(用Shift+Ctrl+Enter输入):
=MIN(IF(B2:D2<>"",COLUMN(B2:D2),256))-2
G1="名称",H1="类"
G2=A2
G3=IFERROR(IF(COUNTIF(G$2:G2,G2)<INDEX($E$2:$E$5,MATCH(G2,$A$2:$A$5,)),G2,INDEX($A$2:$A$5,MATCH(G2,$A$2:$A$5,)+1)),"")
下拉
H2输入如下数组公式(用Shift+Ctrl+Enter输入):
=IFERROR(INDEX($A$2:$D$5,MATCH(G2,$A$2:$A$5,),COUNTIF(G$2:G2,G2)+1+INDEX($F$2:$F$5,MATCH(G2,$A$2:$A$5,))),"")
下拉
热心网友
时间:2023-10-20 14:11
选中多行或多列,右键合并