date formula to determine amount of vacation weeks

bh24524

Active Member
Joined
Dec 11, 2008
Messages
322
Office Version
  1. 365
  2. 2007
I am looking for help on a formula that will look up a given seniority date contained in cell C11. The formula would be in D11. I want it to determine the number of vacation weeks a warehouse employee gets based on their hire date and length of time with the company. They get vacations based on the following schedule:

1 year = 1 week
3 years = 2 weeks
8 years = 3 weeks
14 years = 4 weeks
*20 years = 5 weeks
*25 years = 6 weeks

*All employees hired after June 5, 2016 cap at 4 weeks. Can this somehow be incorporated into the formula?
 
Sorry, my bad for not reading your post properly. ISBLANK is formatting the bottom row because the corresponding cell in column D is blank.
If you want the format to apply when D contains a number greater than 3, then try
Excel Formula:
=AND(D11<>"",D11<3)
With the formulas in the cells you only really need
Excel Formula:
=D11<3
, the other part acts as a failsafe if D is blank with no formula.
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Sorry, my bad for not reading your post properly. ISBLANK is formatting the bottom row because the corresponding cell in column D is blank.
If you want the format to apply when D contains a number greater than 3, then try
Excel Formula:
=AND(D11<>"",D11<3)
With the formulas in the cells you only really need
Excel Formula:
=D11<3
, the other part acts as a failsafe if D is blank with no formula.
Perfect! People call me the Excel Wizard here at work, but you guys are clearly the Excel Arch-Wizards :P Thank you very much for both of your help on this.
 
Upvote 0
but you guys are clearly the Excel Arch-Wizards :P
@Tetra201 is, I just pretend to be one in my spare time ?
Many excel users are masters in their own field, it's that point when you have to step into the unknown and use unfamiliar methods that you realise how much you don't know.
If I see a question that relates to any kind of accounting / finance functions I tend to run a bit quick :eek:
 
Upvote 0

Forum statistics

Threads
1,215,811
Messages
6,127,017
Members
449,351
Latest member
Sylvine

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