• No. of days between two dates (2000/any)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » No. of days between two dates (2000/any)

    Author
    Topic
    #359080

    Hope someone out there can help me puh-lese…what I’m trying to do is put in a formula that calculates the number of months (rounded to two decimal places) between the last day of the current month (I will type in 08/01 – mm/yy format – in a particular cell) and another date in another cell. So I really need to know the month equiv of the days360 formula, and also how to get it to automatically calculate the date of the last day in the current month and use that in the calculation. Hopefully the attached makes sense of my scrawl. Any help gratefully accepted!!

    Viewing 1 reply thread
    Author
    Replies
    • #537263

      You can get the last day of a month with the date function, by using a zero as the argument for the day. e.g. this gives 30 november:
      =DATE(2001,12,0)

      • #537297

        The last date of the month could be calculated with an Excel function: EOMONTH(date;0)

    • #537287

      If the start date is in A1, and the end date is in B1 see if this will give you what you want:

      =DATEDIF(DATE(YEAR(A1),MONTH(A1)+1,0),B1,"m")+DAY(B1)/DAY(DATE(YEAR(B1),MONTH(B1)+1,0))
      
    Viewing 1 reply thread
    Reply To: No. of days between two dates (2000/any)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: