公式一(230):
D2=INDEX(B:B,LARGE((MATCH(A$2:A$31,A$2:A$31,)=LARGE((MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30))*ROW($1:$30),ROW(A1)))*ROW($2:$31),INT(1+RAND()*COUNTIF(A:A,INDEX(A:A,LARGE((MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30))*ROW($2:$31),ROW(A1)))))))
公式二(224):
D2=INDEX(B:B,LARGE((A$2:A$31=INDEX(A:A,LARGE((MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30))*ROW($2:$31),ROW(A1))))*ROW($2:$31),INT(1+RAND()*COUNTIF(A:A,INDEX(A:A,LARGE((MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30))*ROW($2:$31),ROW(A1)))))))
公式三(197):
D2=INDEX(B:B,RIGHT(LARGE(MATCH(A$2:A$31,A$2:A$31,)/1%+ROW($2:$31),1-TRUNC(SUM(-TEXT(MATCH(A$2:A$31,A$2:A$31,)-LARGE((MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30))*ROW($1:$30),ROW(A1)),"1;!0;"&RAND())))),2))
公式四(172),公式的正确性有待审核:
D2=INDEX(B:B,RIGHT(LARGE((MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30))*ROW($2:$31)*10^9+(A$2:A$31=TRANSPOSE(A$2:A$31))*(MID(COLUMN(B:AE)*RAND(),4,6)&COLUMN(CX:EA)),ROW()*30-59),2))
公式五(159),公式的正确性有待审核:
D2=INDEX(B:B,RIGHT(MAX(IF(A$2:A$31=INDEX(A:A,LARGE((MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30))*ROW($2:$31),ROW(A1))),MID(ROW($2:$31)*RAND(),4,9)/1%+ROW($2:$31))),2))
[ 本帖最后由 wddn 于 2011-8-3 11:50 编辑 ] |