Hello everyone,
I have a cell A1 where I generate a random Date+time which is between the time 8:00 - 18:00 :
Let's say it results in : 29.05.2022 11:52:05
After that, in cell A3 I would like to add up a few hours randomly:
It works fine, but it is not in the time frame of 08:00 - 18:00
How am I able to achieve this?
Best regards
I have a cell A1 where I generate a random Date+time which is between the time 8:00 - 18:00 :
Excel Formula:
=RANDBETWEEN(DATE(2019,1,1),DATE(2022,12,31))+RANDBETWEEN(TIME(8,0,0)*10000;TIME(18,0,0)*10000)/10000
Let's say it results in : 29.05.2022 11:52:05
After that, in cell A3 I would like to add up a few hours randomly:
Excel Formula:
A2+RANDBETWEEN(1,60)/24
It works fine, but it is not in the time frame of 08:00 - 18:00
How am I able to achieve this?
Best regards