I have this formula that is calculating the time difference between two dates and time. Now just some clarification I have in cells of the two different dates and times that say NULL that is supposed to be. But i realized that my formula was calculating correctly except it wasn't bringing into account that if the difference between the two dates and times was greater than 12 hour that meant it was late.
Here is my formula that is used my sample excel
=IF(SIGN(D4-I4)<0,"LATE ","")&INT(ABS(D4-I4))&" days, "&HOUR(ABS(D4-I4))&" hours, "&MINUTE(ABS(D4-I4))&" minutes and "&SECOND(ABS(D4-I4))&" seconds"
I am also attaching a sample excel so you can see how the formula is calculating.
Bookmarks