by GaryRussell » Sat Oct 10, 2009 5:02 am
I use the following formula to calculate the seconds until the off from cell D2. It's a bit long winded, but does the job. It shows a minus figure after the scheduled off.
=IF(LEFT(D2)<>"-",(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2),-((HOUR(SUBSTITUTE(D2,"-",""))*3600)+(MINUTE(SUBSTITUTE(D2,"-",""))*60)+SECOND(SUBSTITUTE(D2,"-",""))))