+ Reply to Thread
Results 1 to 9 of 9

Formula for- (Calculate the number of months between two dates(separate Years/months colum

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    16

    Question Formula for- (Calculate the number of months between two dates(separate Years/months colum

    Hi all,

    Please help me solve the month calculation in the image attached below, its urgent , your help is much appreciated!!!!

    Problem:What's the Formula to calculate number of months between two dates ,(With date separated into 2 columns like Years/months colums show above)? e.g (Y1,Y2,M1,M2)\
    ---Pls note dates are fix to insert this way in report, we dont want to combine them into one cell.

    months cal.PNG

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    If you have today's year in C3 and today's month in D3 then with start year in C4 and start month in D4 use this formula for the number of months

    =(C3-C4)*12+D3-D4
    Audere est facere

  3. #3
    Registered User
    Join Date
    02-14-2014
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    thank you so much for solving my problem, you are a life saver! I am really not good with excel formulas.

    Please look at the new picture, what about when I want to make the "WHOLE COLUMN" with same concept/function applied to a list of candidates automatically? I tried "drag down" to perform function, but it doesn't work that way.

    whole comun.PNG

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    7,968

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    I saw daddy may off now. Maybe you can try one of these following;
    =($A$3-B9)*12+$B$3-C9
    or
    =DATEDIF(DATE(B9,C9,1),DATE($A$3,$B$3,1),"m")

    Offcourse, Daddy's is alway the shortest

  5. #5
    Registered User
    Join Date
    02-14-2014
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    Hi Bebo,

    is there a way to put an "exception", like if there is no start dates for contract, then the answer equals to zero, however, the formula for the month calculation column will still be hidden there.


    Quote Originally Posted by bebo021999 View Post
    I saw daddy may off now. Maybe you can try one of these following;
    =($A$3-B9)*12+$B$3-C9
    or
    =DATEDIF(DATE(B9,C9,1),DATE($A$3,$B$3,1),"m")

    Offcourse, Daddy's is alway the shortest

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    7,968

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    Give 0 if B9 is blank.
    =IF(B9="",0,Formula)

  7. #7
    Registered User
    Join Date
    02-14-2014
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    Thank you for your expert help. Please help me again on the problem shown on the attached file.

    1. (Urgent in a few min)I need a formula to show months.days(month.decimal days,) between two dates that shows Y,M,D.-----(I am unsure if the M.days decimal is possible, if not please provide alternative ways , maybe calculate the total days, then divide by month?....

    2. ( Can reply later) I would like to auto update the current days in excel sheet.
    excel YMD.PNG

  8. #8
    Registered User
    Join Date
    02-14-2014
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    Quote Originally Posted by bebo021999 View Post
    Give 0 if B9 is blank.
    =IF(B9="",0,Formula)

    Thank you for your expert help. Please help me again on the problem shown on the attached file.

    1. (Urgent in a few min)I need a formula to show months.days(month.decimal days,) between two dates that shows Y,M,D.-----(I am unsure if the M.days decimal is possible, if not please provide alternative ways , maybe calculate the total days, then divide by month?....



    PLEASE ALSO NOTE*( THE MEMBERSHIP LIMIT IS 3 YEARS, SO maybe there is a =3-(formula), to indicate that )

    2. ( Can reply later) I would like to auto update the current days in excel sheet.
    excel YMD.PNG
    Last edited by xcfeng95; 02-20-2014 at 06:20 PM.

  9. #9
    Registered User
    Join Date
    02-14-2014
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Formula for- (Calculate the number of months between two dates(separate Years/months c

    Quote Originally Posted by daddylonglegs View Post
    If you have today's year in C3 and today's month in D3 then with start year in C4 and start month in D4 use this formula for the number of months

    =(C3-C4)*12+D3-D4

    Thank you for your expert help. Please help me again on the problem shown on the attached file.

    1. (Urgent in a few min)I need a formula to show months.days(month.decimal days,) between two dates that shows Y,M,D.-----(I am unsure if the M.days decimal is possible, if not please provide alternative ways , maybe calculate the total days, then divide by month?....


    PLEASE ALSO NOTE*( THE MEMBERSHIP LIMIT IS 3 YEARS, SO maybe there is a =3-(formula), to indicate that )

    2. ( Can reply later) I would like to auto update the current days in excel sheet.
    Last edited by xcfeng95; 02-20-2014 at 06:20 PM.

+ 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. Replies: 11
    Last Post: 01-13-2013, 09:40 AM
  2. [SOLVED] Function to calculate the number of years, months and days between
    By Vicky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. Function to calculate the number of years, months and days between
    By Biff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. Function to calculate the number of years, months and days between
    By Biff in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Calculate Years/Months Between Dates and then Average
    By Missy in forum Excel General
    Replies: 3
    Last Post: 02-12-2005, 01:06 AM

Tags for this Thread

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