|
本帖最后由 ys19840718 于 2012-12-17 18:25 编辑
=SMALL(INDIRECT("A"&ROW()&":"&"G"&ROW()),{1,2,3,4,5,6,7})
改成更通用一点
=SMALL(INDIRECT("A"&ROW()&":"&"G"&ROW()),TRANSPOSE(ROW(INDIRECT("1:"&COUNTIF($A$2:$G$2,"<>")))))
excel版本2007 sp2
22L的题目
以转换成两行6列为例
使用index
=INDEX($A$1:$A$12,MMULT({1;0},TRANSPOSE(ROW(INDIRECT("1:"&(COUNTIF(A:A,"<>")/2)))))+MMULT({0;1},TRANSPOSE(ROW(INDIRECT((COUNTIF(A:A,"<>")/2+1)&":"&COUNTIF(A:A,"<>"))))))
使用lookup
=LOOKUP(MMULT({1;0},TRANSPOSE(ROW(INDIRECT("1:"&(COUNTIF(A:A,"<>")/2)))))+MMULT({0;1},TRANSPOSE(ROW(INDIRECT((COUNTIF(A:A,"<>")/2+1)&":"&COUNTIF(A:A,"<>"))))),IF({1,0},ROW(INDIRECT("1:"&COUNTIF(A:A,"<>"))),A1:A12))
不知道有没有人用这样的,原来见过这个帖子,但是一直没看,因为觉得水平不够,之后看过不少内容觉得自己可以挑战下了,这几个是今天自己想的,望指教
|
|