C
CATHERINE
Hello,
Iam trying very hard to find a fourmula in order to calculate holiday
for my employees.
The problem is as follow...
If they are in the company for less than 2 years they are entitle to
20 days between the 1st of January and the 31st of december
If they are in the company between 2 and 5 years they are entitle to
22 days from their anniversary date.
If they are in the company for more than 5 years they are entitle to
25 days from their anniversary date.
My problem is to take in consideration their anniversary date (ex
starting date the 15 of march 2000 how many holidays does this perso
get?)
If anyone could get back to me on this one I will be very gratfull :
Here is the formula I have for the 20 day
=((((IF(C7<>0,IF(YEAR(C7)<YEAR(NOW()),20,ROUNDUP(1.66*(12-MONTH(C7)+(IF(MONTH(C7)<>2,IF(MONTH(C7)>7,IF(MOD(MONTH(C7),2)>0,30,31),IF(MOD(MONTH(C7),2)>0,31,30)),(IF(MOD(YEAR(C7),4)>0,28,29)))-DAY(C7)+1)/IF(MONTH(C7)<>2,IF(MONTH(C7)>7,IF(MOD(MONTH(C7),2)>0,30,31),IF(MOD(MONTH(C7),2)>0,31,30)),(IF(MOD(YEAR(C7),4)>0,28,29)))),3)),0)))*A7)-Q7)-((((IF(V7<>0,IF(YEAR(V7)<YEAR(NOW()),20,ROUNDUP(1.66*(12-MONTH(V7)+(IF(MONTH(V7)<>2,IF(MONTH(V7)>7,IF(MOD(MONTH(V7),2)>0,30,31),IF(MOD(MONTH(V7),2)>0,31,30)),(IF(MOD(YEAR(V7),4)>0,28,29)))-DAY(V7)+1)/IF(MONTH(V7)<>2,IF(MONTH(V7)>7,IF(MOD(MONTH(V7),2)>0,30,31),IF(MOD(MONTH(V7),2)>0,31,30)),(IF(MOD(YEAR(V7),4)>0,28,29)))),3)),0)))*A7)
:lol
Iam trying very hard to find a fourmula in order to calculate holiday
for my employees.
The problem is as follow...
If they are in the company for less than 2 years they are entitle to
20 days between the 1st of January and the 31st of december
If they are in the company between 2 and 5 years they are entitle to
22 days from their anniversary date.
If they are in the company for more than 5 years they are entitle to
25 days from their anniversary date.
My problem is to take in consideration their anniversary date (ex
starting date the 15 of march 2000 how many holidays does this perso
get?)
If anyone could get back to me on this one I will be very gratfull :
Here is the formula I have for the 20 day
=((((IF(C7<>0,IF(YEAR(C7)<YEAR(NOW()),20,ROUNDUP(1.66*(12-MONTH(C7)+(IF(MONTH(C7)<>2,IF(MONTH(C7)>7,IF(MOD(MONTH(C7),2)>0,30,31),IF(MOD(MONTH(C7),2)>0,31,30)),(IF(MOD(YEAR(C7),4)>0,28,29)))-DAY(C7)+1)/IF(MONTH(C7)<>2,IF(MONTH(C7)>7,IF(MOD(MONTH(C7),2)>0,30,31),IF(MOD(MONTH(C7),2)>0,31,30)),(IF(MOD(YEAR(C7),4)>0,28,29)))),3)),0)))*A7)-Q7)-((((IF(V7<>0,IF(YEAR(V7)<YEAR(NOW()),20,ROUNDUP(1.66*(12-MONTH(V7)+(IF(MONTH(V7)<>2,IF(MONTH(V7)>7,IF(MOD(MONTH(V7),2)>0,30,31),IF(MOD(MONTH(V7),2)>0,31,30)),(IF(MOD(YEAR(V7),4)>0,28,29)))-DAY(V7)+1)/IF(MONTH(V7)<>2,IF(MONTH(V7)>7,IF(MOD(MONTH(V7),2)>0,30,31),IF(MOD(MONTH(V7),2)>0,31,30)),(IF(MOD(YEAR(V7),4)>0,28,29)))),3)),0)))*A7)
:lol