Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Irregularity in calculating difference between two dates

When using the formula =DAYS360(A40,A41) where A40 and A41 are the same date
it returns the correct answer except when 28 February 2007 is entered in both.
Then the result shows as -2 days! How bizare! Any suggestions?

Regards,
Sylvie

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Irregularity in calculating difference between two dates

That's what Days360 does -- it assumes months are 30 days long.

The correct way to determine the number of days between two dates is simple
subtractions:

=a41-a40

--
Regards,
Fred


"Sylvie" wrote in message
...
When using the formula =DAYS360(A40,A41) where A40 and A41 are the same date
it returns the correct answer except when 28 February 2007 is entered in both.
Then the result shows as -2 days! How bizare! Any suggestions?

Regards,
Sylvie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Irregularity in calculating difference between two dates

Hi Sylvie,
Hint DAYS360 if for a 360 day business year.

To find the difference between two dates you merely
subtract the earlier date from the later (or equal) date.
If you have time your will have to remove the time component
in your calculation.

For more information on Date and Time see
http://www.mvps.org/dmcritchie/excel/datetime.htm
http://www.cpearson.com/excel/datetime.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Sylvie" wrote in message ...
When using the formula =DAYS360(A40,A41) where A40 and A41 are the same date
it returns the correct answer except when 28 February 2007 is entered in both.
Then the result shows as -2 days! How bizare! Any suggestions?

Regards,
Sylvie



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
calculating difference, but if condition not met show value given Shariq Excel Worksheet Functions 1 December 21st 06 12:47 PM
Calculating difference between two times Jaycatt Excel Worksheet Functions 2 August 8th 06 08:01 PM
calculating the difference between 2 numbers Darran Excel Worksheet Functions 3 July 25th 05 01:08 PM
Calculating the difference between cells SheriffCassidy Excel Worksheet Functions 3 February 15th 05 06:30 AM
Calculating time difference Robyn Bellanger Excel Discussion (Misc queries) 2 December 23rd 04 02:29 AM


All times are GMT +1. The time now is 02:24 PM.

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"