如何在excel中随机生成秒数?

2024-11-16 08:23:05
推荐回答(1个)
回答1:

=RANDBETWEEN(921,1153)/100
小数点保留两位就OK了
不对呵呵,应该是
=RANDBETWEEN(9,11)+RANDBETWEEN(0,53)/100
还是不对,会缺少9.53到9.59,以及10.53到10.59
修改楼下仁兄的。采纳他吧
=TEXT(RAND()*(TIME(,,11.53)-TIME(,,9.21))+TIME(,,9.21),"s.00")
不对他的也不对啊
终极答案,可以采纳我的了
=IF(RANDBETWEEN(1,3)=1,RANDBETWEEN(921,959)/100,IF(RANDBETWEEN(2,3)=2,RANDBETWEEN(1000,1059)/100,RANDBETWEEN(1100,1153)/100))