Holiday Entitlement formula calculation

Jacko1307

Board Regular
Joined
Sep 4, 2012
Messages
92
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am trying to create a formula which changes with the dates entered for partial year entitlements.

a. Annual Leave = 28 Days
b. Leave Year starts on 01 Jan each Year.
c. If a person commences work on say 01 June 2020 the entitlement would be 1/12th of the annual year entitlement and every month would increase so 01 July it would be 2/12ths and so on for each month worked.
I have two Cell References that I have dates for (E8) start date & (H8) End Date.

I am using NETWORKDAYS between the two date but am having a bit of trouble working out the MONTH number calculation as it is dynamic.
Formula at present in Cell (K8) RESULT = "=NETWORKDAYS(E8,H8)-MONTH(H8-E8)/12"

Any help much appreciated
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Book1
DEFG
2
3Current Yr01-Jan-2031-Dec-20
4
5
6
7AnnualStartEntitlement
82801-Jun-2015-Sep-207.00
901-Jan-1931-Dec-2028.00
1001-Jun-2031-Jul-204.67
1a
Cell Formulas
RangeFormula
G8G8=DATEDIF(E8-1,F8,"M")/12*D8
G9:G10G9=DATEDIF(MAX($E$3-1,E9-1),F9,"M")/12*$D$8
 
Upvote 0
Using the table provided by @Dave Patton for testing, here's a single formula that will do full and partial years instead of having different ones for each.

=MIN(DATEDIF(E8-1,F8,"M"),12)/12*$D$8
 
Upvote 0
Thank you brilliant works great.

I was trying to over complicate workings.

Best Regards and Happy New Year
 
Upvote 0
Using the table provided by @Dave Patton for testing, here's a single formula that will do full and partial years instead of having different ones for each.

=MIN(DATEDIF(E8-1,F8,"M"),12)/12*$D$8
Hello @jasonb75 - I am trying to calculate pro-rata leave for employees starting or leaving part way through a year. I have used your suggested formula however for an annual leave entitlement of 25 days and someone leaving say 20/12/2024 (year starts 01/01, year ends 31/12) the formula is returning a value of 22.92, however, using online calculators such the value returns at 24.5 or 25 depending if rounding up to nearest 0.5 or whole number.

Do you have any suggestions as to why this would be happening as we would like the value in using excel to match if that is possible.

Thank you :)
 
Upvote 0
Please show how the value that you want is calculated.
What are the rules applicable for the calculation?
Is the calculation by months completed or days completed?
 
Upvote 0
Hello @jasonb75 - I am trying to calculate pro-rata leave for employees starting or leaving part way through a year. I have used your suggested formula however for an annual leave entitlement of 25 days and someone leaving say 20/12/2024 (year starts 01/01, year ends 31/12) the formula is returning a value of 22.92, however, using online calculators such the value returns at 24.5 or 25 depending if rounding up to nearest 0.5 or whole number.

Do you have any suggestions as to why this would be happening as we would like the value in using excel to match if that is possible.

Thank you :)
The formula was based on whole months only as per the requirements of the original question. This would be 11 months based on your example dates, which works out at 22.92 days when calculated pro-rata.

The result that you are expecting appears to be taking partial months into consideration as well, this formula should do what you want it to.

Book1
AB
2Year start01/01/2024
3Year end31/12/2024
4
5Emp start01/01/2024
6Emp end20/12/2024
7
8Entitlement25
9
10Result24.5
Sheet1
Cell Formulas
RangeFormula
B10B10=CEILING((B6-B5)/(B3-B2)*B8,0.5)
 
Upvote 0

Forum statistics

Threads
1,223,931
Messages
6,175,465
Members
452,646
Latest member
tudou

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