+ Reply to Thread
Results 1 to 3 of 3

Complex If Formula to accumulate weeks of vacation earned.

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    Central Point, OR
    MS-Off Ver
    Excel 2010
    Posts
    1

    Complex If Formula to accumulate weeks of vacation earned.

    Hello all,

    I need help, please.

    I'm trying to construct a complex if formula that will accumulate the amount of weeks of vacation earned for employees. As per the guideline at the top right of the attached spreadsheet, after one year of service, they earn one week. After two years (and every year thereafter) they earn two weeks of vacation every year.

    I've already established a column for the years of service in column E using a simple TODAY-Hire date function. I'm trying to tie in that "Years of Service" column so that it is automatic with the numerous employees we are currently hiring and I need to keep track of.

    Thank you for your help with this.

    Nic
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Complex If Formula to accumulate weeks of vacation earned.

    Hi
    Try this formula:
    =IF(E9<1,"",IF(AND(E9>=1,E9<2),"1",IF(AND(E9>=2,E9<5),"2",IF(AND(E9>=5,E9<10),"3",IF(E9>9,"4")))))
    Also suggest you format column E to show 2 decimal places, this will explain the results of the formula better.
    Good luck.
    Tony

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Complex If Formula to accumulate weeks of vacation earned.

    Your formula in col E rounds the number of years up or down as you decided to go for 0 decimals.
    In some cases ( like cell E10) this seems to give a wrong answer.
    To be More precise, you can use =DATEDIF(C9,TODAY(),"Y")

+ 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