Results 1 to 2 of 2
  1. #1
    C2Ranches
    Guest

    formula to calculate date in years and months (Excel 2000 SR1)

    need an Excel formula to calculate date in years and months between two different dates

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: formula to calculate date in years and months (Excel 2000 SR1)

    It depends on the exactly what you mean. This formula will calculate the number of months between the dates in A1 and B1 and give the answer in months:

    <pre>=DATEDIF(A1,B1,"m")
    [pre]

    This formula will calculate the number of years between the dates:

    [pre]
    =DATEDIF(A1,B1,"y")
    </pre>


    This formula will give the number of years and months:

    <pre>=DATEDIF(A1,B1,"y") & " Year and " & MOD(DATEDIF(A1,B1,"m"),12) & " Months"
    </pre>


    DATEDIF is an undocumented function that calculates the difference between dates.
    Legare Coleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •