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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

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