+ Reply to Thread
Results 1 to 6 of 6

How to calculate year/month/day's to date

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Perth, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    14

    Red face How to calculate year/month/day's to date

    hello there

    I am hoping someone can help.

    I am currently doing a Personell spreadsheet.

    I have in colum C5 the date the employee started. In column D5 I am looking for a formula that will show, year month and days to date they have worked for the company.

    Can anyone help?

    Thank you

  2. #2
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: How to calculate year/month/day's to date

    Try this formula:

    =IF(YEAR(TODAY()-C5)=1900,0,YEAR(TODAY()-C5)) & " years, " & MONTH(TODAY()-C5) & " months, " & DAY(TODAY()-C5) &" days"

    Don't forget to click on the little star to the left of this post if you feel I helped!
    Taming the Excel dragon... www.TheExcelphile.com

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Perth, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: How to calculate year/month/day's to date

    Hi thank you this

    I have put it in but there seems to be an issue on the years its coming up with 4 figure numbers :S

  4. #4
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: How to calculate year/month/day's to date

    OK, here is a modified version...

    =YEAR(TODAY()-C5)-1900 & " years, " & MONTH(TODAY()-C5) & " months, " & DAY(TODAY()-C5) &" days"

    I think that should work out now.

    Don't forget to click on the little star to the left of this post if you feel I helped!

  5. #5
    Forum Contributor
    Join Date
    01-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: How to calculate year/month/day's to date

    Try this; is not most accurate but it wii do the job:
    =(D5-C5)/365.25

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: How to calculate year/month/day's to date

    =DATEDIF(C5,TODAY(),"y")&" years, "&DATEDIF(C5,TODAY(),"ym")&" months, "&DATEDIF(C5,TODAY(),"md")&" days"

+ 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