Hi everyone! How are you Doing?
Hope everything is fine.
Dear friends, Where I am working, every employee have a total of 15 days of vacations after each year of work.
But after each 3 years of work, they add one more day per year.
So let me illustrate that in a clearer example:
Let's take an Employee Jhon, who starts working february 15th, 2010:
Date Vacations
febrary 15th, 2011 = 15 days of vacations
febrary 15th, 2012 = 15 days of vacations
febrary 15th, 2013 = 16 days of vacations( 1 more day because he reaches 3 years of work)
febrary 15th, 2014 = 16 days of vacations
febrary 15th, 2015 = 16 days of vacations
febrary 15th, 2016 = 17 days of vacations( 1 more day because he reaches another 3 years of work)
febrary 15th, 2017 = 17 days of vacations
febrary 15th, 2018 = 17 days of vacations
febrary 15th, 2019 = 18 days of vacations( 1 more day because he reaches 3 more years of work)
and this will continue to repeat each 3 more years.
I am working on an Excel workhook to automatically do this operation.
so that i can just put the name of the person, the starting date and excel will do the rest:
Like This:
From the above example:
Name : Jhon
Starting Date : february 15th, 2010
Total vacations on the actual date: ( here goes the sum of all the days of vacations since the starting date to the actual date. So if the actual date was febrary 15th, 2019, the sum should be 147 days. (No matter what the sum shows decimal number if the actual date doesn't reach one complete year )
It sounds a little difficult (Maybe for me)
Please!
Is there a tricks or a VBA code to do this? I am thinking about it and still can't figure out how to do it.
Any help would be thankfull.
Thanks in advance.
Hope everything is fine.
Dear friends, Where I am working, every employee have a total of 15 days of vacations after each year of work.
But after each 3 years of work, they add one more day per year.
So let me illustrate that in a clearer example:
Let's take an Employee Jhon, who starts working february 15th, 2010:
Date Vacations
febrary 15th, 2011 = 15 days of vacations
febrary 15th, 2012 = 15 days of vacations
febrary 15th, 2013 = 16 days of vacations( 1 more day because he reaches 3 years of work)
febrary 15th, 2014 = 16 days of vacations
febrary 15th, 2015 = 16 days of vacations
febrary 15th, 2016 = 17 days of vacations( 1 more day because he reaches another 3 years of work)
febrary 15th, 2017 = 17 days of vacations
febrary 15th, 2018 = 17 days of vacations
febrary 15th, 2019 = 18 days of vacations( 1 more day because he reaches 3 more years of work)
and this will continue to repeat each 3 more years.
I am working on an Excel workhook to automatically do this operation.
so that i can just put the name of the person, the starting date and excel will do the rest:
Like This:
From the above example:
Name : Jhon
Starting Date : february 15th, 2010
Total vacations on the actual date: ( here goes the sum of all the days of vacations since the starting date to the actual date. So if the actual date was febrary 15th, 2019, the sum should be 147 days. (No matter what the sum shows decimal number if the actual date doesn't reach one complete year )
It sounds a little difficult (Maybe for me)
Please!
Is there a tricks or a VBA code to do this? I am thinking about it and still can't figure out how to do it.
Any help would be thankfull.
Thanks in advance.