Hi,
Put the following formula in a spare cell:-
- Code: Select all
=IF(LEFT(D2)<>"-",(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2),-((HOUR(SUBSTITUTE(D2,"-",""))*3600)+(MINUTE(SUBSTITUTE(D2,"-",""))*60)+SECOND(SUBSTITUTE(D2,"-",""))))
Basically it converts the time until the off from cell D2 into seconds until the off.
So then you will be able to refer to this in your IF statement, i.e. it when it shows 60 or less
Regards,
Mark