+ Reply to Thread
Results 1 to 4 of 4

Calculate number of months between dates

  1. #1
    steph44haf
    Guest

    Calculate number of months between dates

    B8 = 10/15/06
    J3 = 09/30/07

    The formula below computes 13 months, but I need it to calculate 12.5 months.

    =(YEAR($J$3)-YEAR(B8))*12+MONTH(B8)-MONTH($J$3)

    Does anyone know how I can calculate the 12.5 months?

  2. #2
    Bob Phillips
    Guest

    Re: Calculate number of months between dates

    You mean 11.5 don't you?

    =DATEDIF(B8,J3,"M")+DATEDIF(B8,J3,"MD")/30

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "steph44haf" <steph44haf@discussions.microsoft.com> wrote in message
    news:3DBECB2F-A142-4F27-A96B-866CEA0E2DC3@microsoft.com...
    > B8 = 10/15/06
    > J3 = 09/30/07
    >
    > The formula below computes 13 months, but I need it to calculate 12.5

    months.
    >
    > =(YEAR($J$3)-YEAR(B8))*12+MONTH(B8)-MONTH($J$3)
    >
    > Does anyone know how I can calculate the 12.5 months?




  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Rockhampton, Australia
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Calculate number of months between dates

    thanks i was forgetting the ()

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: Calculate number of months between dates

    Ummm you just responded to a thread that is almost 7 years old...AND which you did not initiate?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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