If you have 23:58:58 in cell A1 and 00:00:23 in cell B1 enter the followingformula in C1:=IF(A1>B1,(B1+24)-A1,B1-A1)Will this work for you?