P
Pixie78
I am trying to automatically calculate vacation hours. I have the employees
hire date (column D), their years of service (Column E) which is calculated
by subtracting todays date by their hire date and put into numbers, and then
I have their vacation time allotted (Column F). Here's how the hours go:
1 year but less than 3 gets 80 hours
3 years but less than 15 gets 120 hours
15 years but less than 25 gets 160 hours
25 years and over gets 200
I tried making criteria under tools, name, define and making a string like:
If(AND(E6>1,E6<3),80,IF(AND(E6>3,E6<15),120)) and it seemed to be working
for a couple cells but on others it rendered False.
Also, this will be for different spreadsheets so on some I will have only 10
employees but on others I will have many more. If there a way to type in
criteria that would copy down the cells of employees so that whatever their
Years of service equals their vacation hours would equal this? I've built
databases in Access but I'm unfamiliar with putting code in Excel. Any help
is appreciated.
hire date (column D), their years of service (Column E) which is calculated
by subtracting todays date by their hire date and put into numbers, and then
I have their vacation time allotted (Column F). Here's how the hours go:
1 year but less than 3 gets 80 hours
3 years but less than 15 gets 120 hours
15 years but less than 25 gets 160 hours
25 years and over gets 200
I tried making criteria under tools, name, define and making a string like:
If(AND(E6>1,E6<3),80,IF(AND(E6>3,E6<15),120)) and it seemed to be working
for a couple cells but on others it rendered False.
Also, this will be for different spreadsheets so on some I will have only 10
employees but on others I will have many more. If there a way to type in
criteria that would copy down the cells of employees so that whatever their
Years of service equals their vacation hours would equal this? I've built
databases in Access but I'm unfamiliar with putting code in Excel. Any help
is appreciated.