M
MAS
I am happy to put in the work to get my head around visual basic 'Again' if
I have too but if I can do the following with formulas so much the better.
In brief I have the following table
Name Date Years Leave
John 01/08/01 2
Fred 22/05/89 14
So you see John started with the company on 01/08/01 and that means he has
completed 2 full years by the start of the financial year 01/04/04.
To know the value in I have to somehow get it to work through the following
information.
Less than 5 years = 24 days
5 years but less than 10 years = 26 days
10 years but less than 15 years = 28 days
15 years but less than 20 years = 29 days
20 years and over = 30 days
Clearly the value in the cell under leave for john would be 24 and under
Fred it would be 28.
Is this too hard for a formula, should I be looking to VB ?
any guidance would help.
M.
I have too but if I can do the following with formulas so much the better.
In brief I have the following table
Name Date Years Leave
John 01/08/01 2
Fred 22/05/89 14
So you see John started with the company on 01/08/01 and that means he has
completed 2 full years by the start of the financial year 01/04/04.
To know the value in I have to somehow get it to work through the following
information.
Less than 5 years = 24 days
5 years but less than 10 years = 26 days
10 years but less than 15 years = 28 days
15 years but less than 20 years = 29 days
20 years and over = 30 days
Clearly the value in the cell under leave for john would be 24 and under
Fred it would be 28.
Is this too hard for a formula, should I be looking to VB ?
any guidance would help.
M.