TAPS_MikeDion
Well-known Member
- Joined
- Aug 14, 2009
- Messages
- 622
- Office Version
- 2011
- Platform
- MacOS
Hi everybody,
A new method of paying out vacation time was just implemented at my job, and since I'm the manager I need to execute it.
Here's what I'm hoping those of you that excel at Excel can help me with...
I have a spreadsheet with each employees vacation hours earned for the year (31.75, 108.00, 87.50, etc.)
I need to have a formula (or VBA code) that checks the date in the column (we'll use column C), which holds the employees date of hire, and breaks it down by years of service as shown below, and returns what is needed in column D (shown below.)
After 1 year of service = 2 weeks vacation
After 5 years of service = 3 weeks vacation
After 12 years of service = 4 weeks vacation
After 25 years of service = 5 weeks vacation
Column D needs to do the following:
Divide the earned hours by the # of weeks of vacation time, based on years of service.
For example:
Column B shows her earned vacation hours as 108.00 hours.
Column C for Jane Doe shows date of hire as 1/1/01.
This would mean Jane Doe gets 4 weeks of vacation, based on her 12 years of service.
Column D should then show 108.00/4, which would be 27.00 hours.
Thank you SO MUCH for any help you can give!
-Mike
A new method of paying out vacation time was just implemented at my job, and since I'm the manager I need to execute it.
Here's what I'm hoping those of you that excel at Excel can help me with...
I have a spreadsheet with each employees vacation hours earned for the year (31.75, 108.00, 87.50, etc.)
I need to have a formula (or VBA code) that checks the date in the column (we'll use column C), which holds the employees date of hire, and breaks it down by years of service as shown below, and returns what is needed in column D (shown below.)
After 1 year of service = 2 weeks vacation
After 5 years of service = 3 weeks vacation
After 12 years of service = 4 weeks vacation
After 25 years of service = 5 weeks vacation
Column D needs to do the following:
Divide the earned hours by the # of weeks of vacation time, based on years of service.
For example:
Column B shows her earned vacation hours as 108.00 hours.
Column C for Jane Doe shows date of hire as 1/1/01.
This would mean Jane Doe gets 4 weeks of vacation, based on her 12 years of service.
Column D should then show 108.00/4, which would be 27.00 hours.
Thank you SO MUCH for any help you can give!
-Mike