Vacation hours calculated by years of service

mmaffe23

New Member
Joined
Feb 12, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have two groups of ee's that have different vacation schedules. I want to use an if statement and a vlookup to determine the correct amount of vacation time for each group. What is the best way to accomplish this. I have attached a partial view of my spreadsheet data. Thanks....

MGR
1 yr 80 HRS
2-4 yrs 120 HRS
5+yrs 160 HRS

REG
1 yr 40 HRS
2-4 yrs 80 HRS
5-7 yrs 120 HRS
8+ yrs 160 HRS
 

Attachments

  • Capture.PNG
    Capture.PNG
    90.5 KB · Views: 13

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Welcome to the forum.

I think this is what you're after. I don't know what an ee is nor what groups of them are.

MrExcel posts17_a.xlsx
ABCDEFGHI
5employeeservicevacation
6manager0.50
7manager00
8manager180managerworkman
9manager212000
10manager3120180140
11manager41202120280
12manager516051605120
13manager61608160
14workman0.50
15workman140
16workman280
17workman380
18workman480
19workman5120
20workman6120
21workman8160
22workman9160
Sheet66
Cell Formulas
RangeFormula
C6:C22C6=IF(A6="manager",VLOOKUP(B6,$E$9:$F$12,2,TRUE),VLOOKUP(B6,$H$9:$I$13,2,TRUE))
 
Last edited:
Upvote 0
You're welcome. I'm glad it works for you.
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top