Time difference between two date/time fields

OlivierS

New Member
Joined
May 29, 2014
Messages
28
Hi,

I've been trying to figure out the differences between two date / time fields.

I've tried a couple of options and I thought I nailed it by doing a =TEXT(D2-C2,"d h:mm:s")

[TABLE="width: 633"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Conversation ID[/TD]
[TD]Date Post Published[/TD]
[TD]Date Post Received[/TD]
[/TR]
[TR]
[TD]7 5:03:52[/TD]
[TD="align: right"]3246953[/TD]
[TD="align: right"]8/20/15 15:44[/TD]
[TD="align: right"]8/26/15 20:48[/TD]
[/TR]
[TR]
[TD]6 8:40:41
[/TD]
[TD="align: right"]3240038[/TD]
[TD="align: right"]8/20/15 21:48[/TD]
[TD="align: right"]8/26/15 6:29[/TD]
[/TR]
[TR]
[TD]6 19:31:18[/TD]
[TD="align: right"]3240754[/TD]
[TD="align: right"]8/20/15 13:31[/TD]
[TD="align: right"]8/26/15 9:02[/TD]
[/TR]
</tbody>[/TABLE]

But, it looks like MsExcel can't substract days ... it seems to always be 1 day higher than expected ...

So, is there a quick and easy way to do that?

Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top