求助表格转换,纵向转横向紧凑排列,带附件
求助,见附件感谢大佬
见附件,,,,,
D2=IFERROR(INDEX($A$3:$A$16,SMALL(IF(MATCH($A$3:$A$16,$A$3:$A$16,)=ROW($1:$14),ROW($1:$14),4^8),ROW(A1))),"")数组公式下拉
E2 =INDEX($B:$B,SMALL(IF($A$3:$A$16=$D2,ROW($3:$16),4^8),COLUMN(A1)))&"" 数组公式右拉下拉、、、 选择性粘贴,转置
辅助列+数据透视表 =IFERROR(SMALL(IF(($A$3:$A$16=$J2)*($B$3:$B$16)=0,"",($A$3:$A$16=$J2)*($B$3:$B$16)),COLUMN(A1)),"")
数组公式
都是升序,来取个巧 试试:
D2=IFERROR(OFFSET($A$2,MATCH(,COUNTIF(D$1:D1,$A$3:$A$16),),),"")下拉
E2=INDEX($A$3:$A$16,SMALL(IF(MATCH($A$3:$A$16,$A$3:$A$16,)=ROW($A$3:$A$16)-2,ROW($A$3:$A$16)-2,4^8),ROW(A1)))右拉下拉 凑 个vba , ,,
页:
[1]