I am building a time sheet in Excel (see image for headings)Excel time sheet
In the column with heading Time +/- I am trying to write a formula to calculate that if the time worked (calculated from the Time Worked column AB) is above or below round the time to the nearest minute and take away 8 hours, as this is the standard working day.
I have come up with this
=IF(AA2>TIME(8,0,0),(ROUND($AA2*1440,0)/1440),IF(AA2<TIME(8,0,0),(ROUND($AA2*1440,0)/1440)))-TIME(8,0,0)
The formula does what I want it to, but it doesn't seem right, any suggestions as to how to make it better?