Calculate the difference between two times and show dd:hh:mm:s
Hi,
Difference between 6:00 PM today to 8:00 AM Tomorrow is of 14:00:00.
1. Now put 14:00:00 in cell A1.
2. Starting from A3 put the below mentioned dates and time.
Registered (Start from Cell A3)
8/18/08 13:30
8/18/08 13:50
8/18/08 15:30
8/18/08 17:30
8/18/08 8:30 (End at Cell A8)
3. Starting from B3 put the below mentioned dates and time.
Solved (Start from Cell B3)
8/19/08 13:30
8/19/08 13:30
8/19/08 13:30
8/20/08 13:30
8/18/08 13:30(End at Cell B8)
4. Starting from C3 put the below mentioned formula.
Formula (Start From Cell C3)
=IF(DAY(B4)-DAY(A4)=1,(B4-A4-$A$1*(DAY(B4)-DAY(A4))),B4-A4)
=IF(DAY(B5)-DAY(A5)=1,(B5-A5-$A$1*(DAY(B5)-DAY(A5))),B5-A5)
=IF(DAY(B6)-DAY(A6)=1,(B6-A6-$A$1*(DAY(B6)-DAY(A6))),B6-A6)
=IF(DAY(B7)-DAY(A7)=1,(B7-A7-$A$1*(DAY(B7)-DAY(A7))),B7-A7)
=IF(DAY(B8)-DAY(A8)=1,(B8-A8-$A$1*(DAY(B8)-DAY(A8))),B8-A8) (End at
Cell C8)
|