+ Reply to Thread
Results 1 to 3 of 3

Difference between two dates in months

  1. #1
    Registered User
    Join Date
    02-14-2008
    Posts
    10

    Question Difference between two dates in months

    I can find formulae within excel help to calculate the number of days, months or years between two dates, but they don't quite do what I'm after.

    I need to know how old someone was at the time they answered a questionnaire in months, but I don't want it to round up to the nearest month.

    For example, if I use the formulae
    =(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3)
    for the Date of birth
    10/05/1990
    and the date of questionnaire of
    8/05/2000
    I can answer of 120 months, which is 10 years.

    However, they are not 10 years old yet, and for the purpose of my analysis I need this to be recorded as 119 months.

    Is there another formulae someone can suggest?

    Thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Calculating difference between two dates in months WITHOUT rounding up

    =DATEDIF(A1,A2, "m") (118 months)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-14-2008
    Posts
    10

    Re: Calculating difference between two dates in months WITHOUT rounding up

    Brilliant thanks! Tested it and it gives me 119 as I wanted.

+ 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