+ Reply to Thread
Results 1 to 6 of 6

Date to years

  1. #1
    Savage
    Guest

    Date to years

    Is there anyway of converting a date to the amount of years. I have
    employees years started posted and I want to convert to years worked with the
    company.

    Thanks

    Kevin

  2. #2
    Chip Pearson
    Guest

    Re: Date to years

    Use the DATEDIF command.

    =DATEDIF(start_date, TODAY(),"y")

    See www.cpearson.com/excel/datedif.htm for more info about
    DATEDIF.


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "Savage" <[email protected]> wrote in message
    news:[email protected]...
    > Is there anyway of converting a date to the amount of years. I
    > have
    > employees years started posted and I want to convert to years
    > worked with the
    > company.
    >
    > Thanks
    >
    > Kevin




  3. #3
    pinmaster
    Guest
    Hi, try this:

    =DATEDIF(A1,TODAY(),"y") # years

    you can also use:

    "m" - months
    "d" - days
    "ym" - year months
    "yd" - year days

    HTH
    JG

  4. #4
    Guest

    Re: Date to years

    Hi

    If the date is a recognised Excel date, you can simply deduct the date from
    today's date and format the result as yy.

    Hope this helps.
    Andy.

    "Savage" <[email protected]> wrote in message
    news:[email protected]...
    > Is there anyway of converting a date to the amount of years. I have
    > employees years started posted and I want to convert to years worked with
    > the
    > company.
    >
    > Thanks
    >
    > Kevin




  5. #5
    Peo Sjoblom
    Guest

    Re: Date to years

    If you only have the starting years and want a rough estimate (calendar
    years) you can use

    =YEAR(TODAY())-A1

    where A1 holds the start year

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Savage" <[email protected]> wrote in message
    news:[email protected]...
    > Is there anyway of converting a date to the amount of years. I have
    > employees years started posted and I want to convert to years worked with
    > the
    > company.
    >
    > Thanks
    >
    > Kevin



  6. #6
    Savage
    Guest

    Re: Date to years

    thanks, works great

    "pinmaster" wrote:

    >
    > Hi, try this:
    >
    > =DATEDIF(A1,TODAY(),"y") # years
    >
    > you can also use:
    >
    > "m" - months
    > "d" - days
    > "ym" - year months
    > "yd" - year days
    >
    > HTH
    > JG
    >
    >
    > --
    > pinmaster
    > ------------------------------------------------------------------------
    > pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
    > View this thread: http://www.excelforum.com/showthread...hreadid=494468
    >
    >


+ 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