从一列数据中随机选取指定个数的数值
RT,想按照每日的编号数量,自动计算抽取的个数,并随机从每日编号中抽取指定抽取个数的编号,日期格式不是标准格式,可以更改,用辅助列实现也可以。先凑个热闹
=IF(ROW(A1)>MAX(1,ROUND(COUNTIF($B:$B,D$2)/10,)),"",INDEX($A:$A,SMALL(IF((COUNTIF(D$2:D2,$A$2:$A$3022)=0)*($B$2:$B$3022=D$2),ROW(A$2:A$3022)),RANDBETWEEN(1,COUNTIF($B:$B,D$2)-ROW(A1)))))
页:
[1]