+ Reply to Thread
Results 1 to 5 of 5

Days360 Function

  1. #1
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    Days360 Function

    Hey guys..
    I was calculating the number of days between two dates using the Days360 function. However, now it is not accurate enough for me... Is there a function that is more accurate? based on 365 days and includes leap years... that I could use as I need this calculation to be exact?

    For example, number of days between April 1st, 2010 and August 31, 2012 is 884, but the days360 function returns 870.

    Any advise would be greatly appreciated, VBA is not out of the picture.

    Thanks,
    Adam
    Last edited by AdamParker; 11-26-2009 at 05:21 PM. Reason: Solved

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Days360 Function

    =A2-A1+1 should work.
    That takes the difference in days inclusive of both start and end dates.

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Days360 Function

    See DATEDIF a http://www.cpearson.com/excel/datedif.aspx

    ... and I think the result is 883
    Last edited by rwgrietveld; 11-26-2009 at 04:56 PM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    Re: Days360 Function

    Thank you both very much! -Adam

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Days360 Function

    rwgrietveld, it depends on how you count. If you subtract today from tomorrow, you get 1 in Excel, but you could also count it as 2 days if you're being inclusive of both start and end dates.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1