+ Reply to Thread
Results 1 to 4 of 4

Calculate exact number of months

  1. #1
    Registered User
    Join Date
    05-15-2007
    Posts
    7

    Calculate exact number of months

    I need to establish a formula which can calculate exact number of months between two dates. The end date is fixed as Sept. 1st,2007, and the exact number of months should change according the change of the starting date.

    Example, Cell A1= start date = 06/27/2007
    B1= end date= 09/01/2007

    I tried the following:
    C1= # of months= Datedif (A1,B1,"d")/30 =2.20

    But I guess its not accurate. Who can help? Thanks!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    check out datedif

    =DATEDIF(A1,B1,"M")

    http://www.cpearson.com/excel/datedif.htm

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello potato

    What do you want the answer to be for your example?

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by Potato2007
    I need to establish a formula which can calculate exact number of months between two dates. The end date is fixed as Sept. 1st,2007, and the exact number of months should change according the change of the starting date.

    Example, Cell A1= start date = 06/27/2007
    B1= end date= 09/01/2007

    I tried the following:
    C1= # of months= Datedif (A1,B1,"d")/30 =2.20

    But I guess its not accurate. Who can help? Thanks!
    =DATEDIF(A1,B1,"ym")

+ 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