已知横向的数据(有间隔),求用excel公式用纵列显示,谢谢哈 ...
已知数据源表1:列出分别了老王、老张、老贾他们喜欢吃的水果。求,在表2中根据表1,在【喜欢吃的水果】这一列中,用excel公式分别列出他们喜欢吃的水果
=INDEX(IF({1,0},C$1:C$10,TRANSPOSE(A$7:H$7)),MID(SMALL(IF(D$8:H$10<>"",10^5+ROW($8:$10)/1%+COLUMN(D:H)),ROW(A1)),{3,5},2),{1,2})
............
=INDIRECT(TEXT(700+MOD(AGGREGATE(15,2,(ROW($8:$10)/FIND($D$8,$D$8:$H$10))/1%+COLUMN($D:$H)/FIND($D$8,$D$8:$H$10),ROW(A1)),100),"r0c00"),)
=INDIRECT(TEXT(700+MOD(AGGREGATE(15,2,(ROW($8:$10)/($D$8:$H$10<>""))/1%+COLUMN($D:$H)/($D$8:$H$10<>""),ROW(A1)),100),"r0c00"),)
其实PQ最简单了,2步的事儿,见附件
=IF(COLUMN()>10,FILTERXML("<a>"&CONCAT(REPT("<b>"&$D$7:$H$7&"</b>",$D$8:$H$10>0))&"</a>","//b["&ROW(A1)&"]"),INDEX(C:C,INDEX(IF(FREQUENCY(ROW($1:$99),IF(D$8:H$10>0,ROW($1:$3))),SMALL(IF(D$8:H$10>0,ROW($8:$10)),ROW($1:$99)),4^8),ROW(A1)))&"")
页:
[1]