# Pro Rated Annual leave with different conditions

#### ambz123

##### Board Regular
Hi I am task to create a excel formula with the condition where by if staff A is a manager he is entitled to the following leave and max cap at 22;
 Grade Position 1st year 2nd - 5 year 6-9 year 10 & above M Manager 14 18 21 22
Non Junior Managerial they are entitled to the following condition of leave and map cap at 21:
 Grade Position 1st year 2nd - 5 year 6 - 9 year 10 & abv JM Junior Manager 14 16 18 21
Executive are entitled to the following condition of leave max cap at 18:
 Grade Position 1st year 2nd - 5 year 6 -9 year 10 & abv E1/E2 Executive 10 14 16 18

Would appreciate some help on this.

I used the following formula to get my current accrued leave, however i am facing problem with including the condition based on their job grade.

=ROUND(IF(DATEDIF([@[JOIN DATE]],\$D\$2,"M")<3,0,IF(DATEDIF([@[JOIN DATE]],\$D\$2,"Y")<1,([@[Actual Entitlement]]*(DATEDIF([@[JOIN DATE]],\$D\$2,"M"))/12),MIN(14,[@[Actual Entitlement]]+((DATEDIF([@[JOIN DATE]],\$D\$2,"M")-12)/12))))/0.5,0)*0.5

### Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Replies
13
Views
369
Replies
1
Views
133
Replies
11
Views
585
Replies
6
Views
305
Replies
6
Views
647

1,130,089
Messages
5,640,052
Members
417,124
Latest member
Herostrata

### 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.

### Which adblocker are you using?

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

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