I have time values in cell A1 as an integer(number), and I need to subtract this by 06 hours in cell B1. The following formula works fine for all times above 0600hrs in A1.
=IF(A1<1000,TIMEVALUE(LEFT(A1,1)&":"&RIGHT(A1,2)),TIMEVALUE(LEFT(A1,2)&":"&RIGHT(A1,2)))-TIME(6,0,0)
However, am not able to retrieve results if A1 < 06:00:00. Please refer screenshot.
Any help would be appreciated.
Bookmarks