Pto anniversary calculator

steve89

Board Regular
Joined
Oct 4, 2015
Messages
152
hello all i have the following formula already set i just the formula to reference if the employee has worked more then then 1-2 years and 2-5 years:

B4 = Start date which for this example is - 4/27/12
D4 = Title which is "Cook"
E4 = Anniversary date which is =DATE(YEAR(TODAY()),MONTH(B4),DAY(B4))
F4 = Months since anniversary which is =IFERROR(DATEDIF(E4,$D$100,"m"),0)
J4 = =IFERROR(VLOOKUP($D4,$B$103:$C$110,2,FALSE)/12*F4,0) ---- which after 12 months returns what the employee accrues
B103:C110 = is the vlookup function to find what an employee accrues.

What im trying to do is if they have worked more then 2 years they now upgrade from 5 vacation days a year to 10. B103:C110 is looking for the title (D4) and teling us what the title or position name is entitled to but i want to incorporate in J4 is also if they work more then 2 years reference 10 days instead of the 5 days for 1-2 years of service.

thanks all
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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