+ Reply to Thread
Results 1 to 3 of 3

Vacation Accrual

  1. #1
    Registered User
    Join Date
    12-05-2007
    Location
    Somerset Pa
    Posts
    2

    Question Vacation Accrual

    I am attempting to create a spreadsheet that will list the number of vacation days earned per year by each employee. The earning rate is as follows:

    0 to < 1 year = 15 days
    1 to >= 7 years = 20 days
    7 to >=15 years = 25 days
    15 to >= 25 years = 30 days
    >25 = 35 days

    With the exception of the 0 to 1 year employees and the over 25 year employees, this formula yeilds the correct answer. Where G2 (37.31) lists the years of service. The problem I'm having is that I can not total this column. Once I have all the individual employee vacation earnings calculated, I need the sum of all vacation days for all employees. The answer my formula yeilds although correct is purely a text and will not total.

    =IF(G2>=15,"30",IF(G2>7,"25",IF(G2>1,"20","")))

    Sample
    Name On Site Hire Date Other Today Srv Days Srv Yrs
    Sterle, T 8/24/93 8/24/70 1/26/87 12/5/07 13617 37.31 30
    Sterle, A 2/13/94 2/13/92 8/10/88 12/5/07 5774 15.82 25
    Brangard 7/31/94 7/31/00 2/4/91 12/5/07 2683 7.35 25
    Freoni 8/28/94 8/28/02 8/15/88 12/5/07 1925 5.27 20
    Jackson 7/2/95 7/2/05 11/13/89 12/5/07 886 2.43 20


    Any help would be greatly appreciated.

    NPA Sr.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Vacarion Accrual

    With
    G2: (years of service)


    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-05-2007
    Location
    Somerset Pa
    Posts
    2

    Thumbs up

    Eureka! Ron you are both a genius and a Godsend. The line:

    =(MATCH(G2,{0,1,7,15},1)+(G2>25))*5+10

    works perfectly. I can now obtain a total of all vacation for all employees. The resultant answer is in fact a number and not a simple text. Thanks again for your assistance.

    Sincerely,

    CO1 NPASr.
    SCI-SMR

+ 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