Returning Days and hours between Dates with times stamps

shaylynch

Board Regular
Joined
Nov 11, 2002
Messages
163
Hi all,
I just have a novel issue which is driving me batty....

i have 2 columns that have dates with times stamps.. example is 23/03/2011 15:25:01 & 04/05/2011 13:01:52. I am looking to get the amount of days and hours in between these 2 dates... i have been doing a simple subtraction calculation and changing the format of the return column to dd:hh and it has been working fine... however when the dates seem to extend over 30 days (i think)... the calculation goes hay wire.. for the dates above i should be returning a value of about 41:22 as in 41 days 22 hours but i am getting 2:10..

any help would be much appreciated...

Cheers

Shay
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
The dd format won't work because it rolls into February 1900 when it reaches 31. Try:

=INT(A2-A1)&TEXT(MOD(MOD(A2,1)-MOD(A1,1),1)," hh:mm")
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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