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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

hayden

Board Regular
Joined
Sep 23, 2005
Messages
159
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,136,926
Messages
5,678,604
Members
419,774
Latest member
MooseWinooski

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