Datedif Help

ajscott911

New Member
Joined
Sep 19, 2006
Messages
20
Hi Everyone,

I recently checked out the Datedif Function and this is so close to what I need that it's frustrating the heck out of me because it won't go quite far enough. I need a function that will return the time between two dates down to seconds but still report the difference in years, months, days, Hours, Minutes and seconds... (normal timestamp)

For some reason subtracting the earlier date from the later date is not giving me the results I need as I am then converting that time into milliseconds to do some further time manipulation and calculations.

I have searched and searched the internet and can only find the differance in business hours but this is not what I need at all.

If anyone can give me a hand it would be greatly appreciated.

Adam
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

hayden

Board Regular
Joined
Sep 23, 2005
Messages
160
Try subtracting the later date from the earlier date.

i.e. 1/11/2005-1/1/2005

Also try formating the result as seconds only under custom?

Hayden
 

Forum statistics

Threads
1,171,272
Messages
5,874,756
Members
433,070
Latest member
omartarek

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
Top