还在为了公司抽奖、报告分组做籤筒吗?来试试看 Excel 的随机函数吧
Randbetween(最小值,最大值):从最小值和最大值的范围内产生一个整数
Choose(序号,可供选择的选项):根据序号选择对应选项
Rand():产生0到1的随机数
Roundup(数值,位数):无条件进位函数
例子:
=INDEX(C3:C14,RANDBETWEEN(1,12))
=CHOOSE(RANDBETWEEN(1,2),"A卷","B卷")
=CHOOSE(ROUNDUP(RANK(D3,$D$3:$D$14)/4,0),"A组","B组","C组")
=INDEX($C$3:$C$14,RANK(D3,$D$3:$D$14))