+ Reply to Thread
Results 1 to 10 of 10

Formula to calculate years of service for next year

  1. #1
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Formula to calculate years of service for next year

    The formula that I currently have in E2, is giving me the number of years served by an employee. Is there another formula that can give me the number of years each employee has served? I would appreciate your help. This is the formula that I have in E2
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Kimston; 12-13-2012 at 05:37 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to calculate years of service for next year

    Do you this formula>.=YEAR(TODAY())-YEAR(E2), in E2?? as you said?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Re: Formula to calculate years of service for next year

    Hi Fotis!! Long time no talk to you. Hope you are doing fine. I'm sorry. I meant H2. Senority Date is on E2, Formula is on H2, but it doesn't give me the amount of years served by an employee. I know it should be one more adding to this year's. Let me try to upload the file. Again, thak you for your help.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to calculate years of service for next year

    Have you tried DATEDIF?

    =DATEDIF(E2,TODAY(),"y")
    Audere est facere

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to calculate years of service for next year

    Hi to you too!

    Yes is a good idea to upload a small sample worksheet explaing the requesr result!

  6. #6
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Re: Formula to calculate years of service for next year

    Hi daddylonglegs, it has been a long time since the last time I talked to you. I tried your forumla
    Please Login or Register  to view this content.
    but it gives me the same results.
    Happy Holidays!

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to calculate years of service for next year

    So what results do you expect for the examples in row 2 and 3?

  8. #8
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Re: Formula to calculate years of service for next year

    I'd like to get the number of years of service for 2013. I know this formula calculates the years of service which for row 2 it gives me 7, but for 2013 should be 8. How I can accomplish that? Also, once I get the years of service, I need to calculate the number of vacation days based on the Vacation Table.

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to calculate years of service for next year

    Well, the obvious answer is to use your current formula but add 1,

    =YEAR(TODAY())-YEAR(E2)+1

    .....but that formula only changes value on 1st January, DATEDIF will update on the anniversary date of E2

  10. #10
    Forum Contributor
    Join Date
    02-20-2011
    Location
    Candada
    MS-Off Ver
    Microsoft Office 365
    Posts
    174

    Re: Formula to calculate years of service for next year

    Mr. Daddylonglegs,
    Your forumla
    Please Login or Register  to view this content.
    worked perfectly for right now because I need to start ordering next year service awards plaques. Also, we always celebrate next month service awarded employees.
    Thank you very much everyone for your excellent help.

+ 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