Random Time...Help please

kayboom

New Member
Joined
Jun 17, 2005
Messages
27
Office Version
  1. 2010
Platform
  1. Windows
ok...i have A and B shift audits that need to be done. I need computer generated times to apprea so the QA techs know when to audit.

A shift random times are 8 am - 4 pm
B shift random times are 5 pm - 1 am

these need to change daily....any help would greatly be appreciated. Im sure its something so easy but im making a mountain out of a mole hill.....its my MO lol

Thank you soooo much in advance...i so appreciate it!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
For 8:00 AM - 4:00 PM use: =RAND() * 1/3 + 1/3
For 5:00 PM - 1:00 AM use: =RAND() * 1/3 + 17/24

Remember to format as time!
 
Upvote 0
thank you so much! works like a charm. But I have a question so I understand the formula.

what is the 1/3=17/24? im assuming the 17/24 is 5pm to 12 midnight...correct? but how does the 1/3+1/3 equate out?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top