+ Reply to Thread
Results 1 to 4 of 4

=days360(date1,date2) is calculating 30 days for February

  1. #1
    Registered User
    Join Date
    01-31-2014
    Location
    MALTA
    MS-Off Ver
    Excel 2010
    Posts
    2

    =days360(date1,date2) is calculating 30 days for February

    Hi,

    I have just discovered that the formula =days360(date1,date2) is counting 30 days for February, for every date - except for 28th of February:

    26/02/2013 to 01/03/2013 = 5 days = wrong
    27/02/2013 to 01/03/2013 = 4 days = wrong
    28/02/2013 to 01/03/2013 = 1 days = Correct
    01/03/2013 to 01/03/2013 = 0 days


    Is that really a bug in Excel or am I doing something wrong.

    I am using MS Office 2010, i tested it in 2013 - it does the same there, BUT there is a new formula in 2013 - =days(start date;end date) that seems to be working fine

    Thank you

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: =days360(date1,date2) is calculating 30 days for February

    from ms
    The DAYS360 function returns the number of days between two dates based on a 360-day year (twelve 30-day months), which is used in some accounting calculations. Use this function to help compute payments if your accounting system is based on twelve 30-day months.
    so feb is assumed to have 30 days
    and you just need to subtract earliest date from last date to get the number of days anyway 25/1/2014-18/1/2014 = 7
    Last edited by martindwilson; 01-31-2014 at 08:49 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-31-2014
    Location
    MALTA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Cool Re: =days360(date1,date2) is calculating 30 days for February

    Thank you !

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: =days360(date1,date2) is calculating 30 days for February

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] MAX(date1;date2) returns wrong answer
    By cristinik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2013, 07:33 AM
  2. Replies: 11
    Last Post: 05-02-2012, 08:41 AM
  3. Replies: 1
    Last Post: 05-02-2012, 06:43 AM
  4. subtraction: Date1 - Date2 = number of days
    By delizoki66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2010, 10:06 AM
  5. Why does excel calculate difference in days from February - March
    By TennCare Technician in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2006, 11:20 PM

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