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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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