Hi Guys,
Need the experts help on this. Been cracking my head for awhile now with no results
I have an excel file where I need to minus two dates and time as below:
A B C D E
1 Dec 01, 2014 15:51:40 Dec 16, 2014 16:53:32 15 1:1:52 8 20:46:43
The formula im using is =INT(B1-A1)&" "&HOUR(MOD(B1-A1,1))&":"&MINUTE(MOD(B1-A1,1))&":"&SECOND(MOD(B1-A1,1))
and the output i'm getting is in C1. How do I instead get the output of 15 01:01:52 instead of 15 1:1:52? I have tried using =B1-A1 but it does not show the correct value if it is more than 31 days hence the reason why I had to use the long formula.
The reason I need the output as 15 01:01:52 is because I have another column which I need to calculate the difference between column C1-D1 and for that I am using the formula =LEFT(C1,FIND(" ",C1)-1)+RIGHT(C1,8)-(LEFT(D1,FIND(" ",D1)-1)+RIGHT(D1,8)) and it will only accept the calculation if its 15 01:01:52. I could change the 8 to 6 but then I would need to change for a lot of records.
Is there anyone out there who can help me please
Bookmarks