Log in

View Full Version : Excel fiends...a question


Viney
16-05-12, 08:30 AM
Ok, i have a range of dates and times expressed as say

10/05/12 08:23:14

I wish to randomly add anything between 25 minutes to 1 hour 10 minutes to those times.

I know that there is a random function, but i can not get it to work with the format.

Help.

Thank you

StewartR
16-05-12, 09:30 AM
1 = 1 day in Excel so a minute is 1 divided by 24 (hours) divided by 60 (minutes), or 1/1440.

So if your original date/time is in A1 your formula would be "=A1+(RANDBETWEEN(25,70)/1440)"

Hope this helps.

Sir Trev
16-05-12, 11:14 AM
I wish to randomly add anything between 25 minutes to 1 hour 10 minutes to those times.



It's no good. I have to ask.

Why?

flymo
16-05-12, 12:43 PM
he's writing a self completing time sheet algorithm. ;-)

andrewsmith
16-05-12, 03:08 PM
he's writing a self completing time sheet algorithm. ;-)

:lol:

if you crack it send me a copy