最先思路
526字元
E2=OFFSET($A$1,IF(ISNA(MATCH(ROW(A1)+(COLUMN()>6)*10+10*INT((ROW()-2)/10),MMULT(--($B$2:$B$101=TRANSPOSE($B$2:$B$101))*(COLUMN($B:$CW)<=ROW($2:$101)),ROW($2:$101)^0)+MMULT(--(COLUMN($A:$E)<MATCH($B$2:$B$101,$C$2:$C$6,)),--CEILING(COUNTIF($B:$B,$C$2:$C$6),20)),)),101,MATCH(ROW(A1)+(COLUMN()>6)*10+10*INT((ROW()-2)/10),MMULT(--($B$2:$B$101=TRANSPOSE($B$2:$B$101))*(COLUMN($B:$CW)<=ROW($2:$101)),ROW($2:$101)^0)+MMULT(--(COLUMN($A:$E)<MATCH($B$2:$B$101,$C$2:$C$6,)),--CEILING(COUNTIF($B:$B,$C$2:$C$6),20)),)),MOD(COLUMN(B1),2))&""
数组 右拉下拉
簡化一
322字元
E2=OFFSET($A$1,MATCH(ROW(A1)+(COLUMN()>6)*10+10*INT((ROW()-2)/10),MMULT(--($B$2:$B$299=TRANSPOSE($B$2:$B$299))*(TRANSPOSE(ROW($2:$299))<=ROW($2:$299)),ROW(2:299)^0)+MMULT(--(COLUMN($A:$E)<IF(ISNA(MATCH($B$2:$B$299,$C$2:$C$6,)),1,MATCH($B$2:$B$299,$C$2:$C$6,))),--CEILING(COUNTIF($B:$B,$C$2:$C$6),20)),),MOD(COLUMN(B1),2))&""
數組 右拉下拉
簡化二
294字元
E2=OFFSET($B$1,MATCH(ROW(A1)+(COLUMN()>6)*10+10*INT((ROW()-2)/10),MMULT(-({1,2,3,4,5}<IF($B$2:$B$350="",,MATCH($B$2:$B$350,$C$2:$C$6,))),-CEILING(COUNTIF($B:$B,$C$2:$C$6),20))-MMULT(-($B$2:$B$350=TRANSPOSE($B$2:$B$350))*(TRANSPOSE(ROW($2:$350))<=ROW($2:$350)),ROW(2:350)^0),),-MOD(COLUMN(),2))&""
數組 右拉下拉
[ 本帖最后由 piny 于 2010-9-20 09:52 编辑 ] |