Oct 15 2020 12:33 PM
I am trying to work out a formula to add Time to a time if it is later than a set time.
for example: If a job is going to start at or after 21:30 I need to move the start time to 06:00 the following day.
any help would be much appreciated
Oct 15 2020 01:48 PM
SolutionLet's say a start time is in cell D2.
In another cell, e.g. E2, enter the formula
=IF(MOD(D2,1)>TIME(21,30,0),INT(D2)+1+TIME(6,0,0),D2)
Format the cell with the formula with the desired date/time format.
Oct 16 2020 11:01 AM
Oct 15 2020 01:48 PM
SolutionLet's say a start time is in cell D2.
In another cell, e.g. E2, enter the formula
=IF(MOD(D2,1)>TIME(21,30,0),INT(D2)+1+TIME(6,0,0),D2)
Format the cell with the formula with the desired date/time format.