417:31:07 555:00:00 137:28:53
336:52:20 186:00:00 ########
=B1-A1, I tried this. But, in second row i am not getting the negative difference. Please help.
417:31:07 555:00:00 137:28:53
336:52:20 186:00:00 ########
=B1-A1, I tried this. But, in second row i am not getting the negative difference. Please help.
Last edited by DeepakS; 09-16-2011 at 08:45 AM.
Try =MOD(B1-A1, 1)
Or =ABS(B1-A1)
Hi zbor,
I am getting result like this,
417:31:07 555:00:00 17:28:53
336:52:20 186:00:00 17:07:40
Format cell as [h]:mm
Hi Andrew-R,
It works. But i need negative sign.
OK... =IF(A1>B1,"-","") & TEXT(ABS(B1-A1),"hh:mm")
Now its like this,
417:31:07 555:00:00 17:28
336:52:20 186:00:00 -06:52
D'Oh! Sorry, just me being stupid ... =IF(A1>B1,"-","") & TEXT(ABS(B1-A1),"[h]:mm")
:-) Its working perfectly. Thanks a lot Andrew-R.
Note that if you switch to 1904 date system you can use just =B1-A1 and you'll see negative time values
Office Button > Excel Options > Advanced > 1904 date system
Note that if you apply this to a worksheet existing dates in that sheet will change
Audere est facere
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks