|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
公式一:256字符(数组)部门固定、人员随机
=INDEX(B$2:B$31,SMALL(IF(A$2:A$31=INDEX(A:A,SMALL(IF(MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30),ROW($2:$31),33),ROW(A1))),ROW(A$1:A$30)),INT(RAND()*(COUNTIF(A$2:A$31,INDEX(A:A,SMALL(IF(MATCH(A$2:A$31,A$2:A$31,)=ROW($1:$30),ROW($2:$31),33),ROW(A1))))-1)+1.5)),1)
公式二:217字符(数组)部门、人员均随机
=INDEX(B$2:B$31,SMALL(IF(MMULT((A$2:A$31=TRANSPOSE(IF(COUNTIF(D$1:D1,B$2:B$31),A$2:A$31,0)))*1,1^ROW($A$2:$A$31))=0,ROW(A$1:A$30),33),INT(RAND()*(30-SUM(COUNTIF(A$2:A$31,IF(COUNTIF(D$1:D1,B$2:B$31),A$2:A$31)))))+1),1)
公式三:179字符(数组)部门、人员均随机
=INDEX(B$2:B$31,LARGE(ISNA(MATCH(A$2:A$31,IF(COUNTIF(D$1:D1,B$2:B$31),A$2:A$31),0))*ROW($1:$30),INT(RAND()*(30-SUM(COUNTIF(A$2:A$31,IF(COUNTIF(D$1:D1,B$2:B$31),A$2:A$31))))+1)),1)
公式四:168字符(数组)部门、人员均随机
=OFFSET(B$1,LARGE(ISNA(MATCH(A$2:A$31,IF(COUNTIF(D$1:D1,B$2:B31),A$2:A31),0))*ROW($1:$30),INT(RAND()*(30-COUNT(MATCH(1&A$2:A31,COUNTIF(D$1:D1,B$2:B31)&A$2:A31,)))+1)),)
[ 本帖最后由 wkbu 于 2011-8-11 14:53 编辑 ] |
评分
-
1
查看全部评分
-
|