Try formatting your entire columns by selecting
Format, Cells, under the number tab select time.
pick the first time format...should be something like 13:30. If your earlier or beginning time is in cell A1 and your latest time is in B1 then your formula in C1 would be +B1-A1. This should result in the correct time difference in HH:MM format. Make sure you are subtracting a lower time from a higher time or you will get a buch of ########'s in C1
Thanks Skip, but I need it to show a negative time value in that cell instead of all those #######'s. Is there any way to do that ?????
This is actually what I needed ...
Thanks to all for your help 1
THE FORMULA :
1. Assign the Custom format 00":"00 to cell B3.
2. Change the formula in cell B3 to:
=IF(B2<B1,-1,1)*((TRUNC(ABS(B2-B1)*24)*100)+MOD(ABS(B2-B1)*1440,60))
Regan
Using your formula when the time in B2 has the same number of minutes as the time in B1 but has different hours, it sometimes produces a result that shows the difference as xx:60 and sometimes as xx:00.
I can't work out why this sometimes happens (can anyone explain?) but I think the following fixes it :-
=IF(B2<B1,-1,1)*((TRUNC(ABS(B2-B1)*24+0.01)*100)+(MOD(ROUND(ABS(B2-B1)*1440,0),60)))
Celia