Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dlw dlw is offline
external usenet poster
 
Posts: 510
Default Difference between two dates

both numbers come out to EXACTLY 20 minutes and 0 seconds, which is the
correct answer. What kind of precision are you looking for? Nanoseconds?

"KC" wrote:

consider below data which has two datetime with 20 mins difference
A
1 16-02-10 5:32:34 AM
2 16-02-10 5:52:34 AM
3 0.0138888888905058

where A3 has a formula A2-A1 (as general format), can someone please explain
how this fraction value is derived?

based on my understanding if i convert 20 mins (which is 1200 sec) in terms
of days.
i.e., 1200/(60*60*24) = 0.0138888888888889

which is close to A3 but not exactly same! I need to know a way to exactly
calculate the fraction value that date difference generate.

any help is highly appreciated!
thanks
-kc




  #2   Report Post  
Posted to microsoft.public.excel.misc
dlw dlw is offline
external usenet poster
 
Posts: 510
Default Difference between two dates

sorry, I'm in a snippy mood today
you can use the =round() function for comparisons

"KC" wrote:

as per Excel difference between two dates = 0.0138888888905058
and if i calculate it manually = 1200/(60*60*24) = 0.0138888888888889
both don't match, because of which some of logical conditions are failing.

and that is the reason i need to know how excel is calculating these values.

thanks for your time,
-kc

"dlw" wrote:

both numbers come out to EXACTLY 20 minutes and 0 seconds, which is the
correct answer. What kind of precision are you looking for? Nanoseconds?

"KC" wrote:

consider below data which has two datetime with 20 mins difference
A
1 16-02-10 5:32:34 AM
2 16-02-10 5:52:34 AM
3 0.0138888888905058

where A3 has a formula A2-A1 (as general format), can someone please explain
how this fraction value is derived?

based on my understanding if i convert 20 mins (which is 1200 sec) in terms
of days.
i.e., 1200/(60*60*24) = 0.0138888888888889

which is close to A3 but not exactly same! I need to know a way to exactly
calculate the fraction value that date difference generate.

any help is highly appreciated!
thanks
-kc




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between dates Hassan Excel Discussion (Misc queries) 3 July 23rd 08 07:24 PM
difference between two dates Arun Excel Discussion (Misc queries) 3 June 25th 08 10:49 AM
Difference of two dates sajan chauhan Excel Discussion (Misc queries) 3 June 5th 07 04:47 AM
Difference between two dates Ashutosh Excel Discussion (Misc queries) 8 June 2nd 07 01:19 AM
difference between dates Ankur Excel Discussion (Misc queries) 2 August 6th 06 05:16 PM


All times are GMT +1. The time now is 10:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"