Case 1: Pro rata leave for joiners and leavers
Someone who starts or leaves part way through the year rarely gets the full year's leave. You work out the entitlement for six joiners, check it against the statutory minimum, and then calculate pay in lieu for six leavers.
In short: months left in the leave year with 13-MONTH(start), statutory share and contract share as twelfths, bank holidays still to come with COUNTIF(holidays,">="&start), then CEILING(MAX(…),0.5). For leavers, the share of the leave year is days so far divided by days in the year. Tracking leave taken during the year is what the PTO tracker does; this case is about the entitlement itself.
The situation
It is late November 2026 at a facilities services company with about 60 staff. The HR manager wants two lists by Friday: the leave entitlement of everyone who joined this year, so team leaders can finish the December rota, and for everyone who left this year, the remaining balance and the amount paid in lieu with their final pay. The leave year runs from January to December.
The rules this case uses
UK
- Almost all workers are entitled to 5.6 weeks' paid holiday a year; for a 5-day week that is at least 28 days, and statutory entitlement is capped at 28 days (gov.uk: holiday entitlement).
- An employer can include bank holidays as part of statutory annual leave. In this case the contract gives 20 days plus the 8 bank holidays of England and Wales, which is exactly 28 over a full year.
- In the first year leave builds up at one-twelfth a month, and a worker who starts part way through a month can accrue from their first day. The gov.uk example rounds up to the nearest half day (gov.uk: calculate leave entitlement).
- When someone leaves, regulation 14 of the Working Time Regulations 1998 works out the statutory leave still due from the entitlement, the proportion of the leave year that has passed and the leave already taken (legislation.gov.uk). Untaken statutory leave must be paid.
US
Federal law does not require paid vacation: the Fair Labor Standards Act "does not require payment for time not worked, such as vacations" (dol.gov). Vacation or PTO is a matter of company policy, and some states have their own rules, so check with your state labor department. If your policy accrues leave per month or pay period, the same formulas work with your own figures in the settings cells.
The workbooks sheet by sheet
- Joiners and Leavers: six people each with team and date; leavers also have days taken (bank holidays they had off count as taken) and their day rate from payroll.
- Settings: the leave figures, and for leavers the start of the leave year and its number of days. Formulas refer to them with fixed references such as
Settings!$B$2. - Holidays (task 1): the 2026 bank holidays for England and Wales.
Task 1: leave for this year's joiners
Task Six people joined in 2026, all on a 5-day week, leave year January to December. D2: months in the leave year, counting the start month as a whole month. E2: the statutory minimum for that part of the year, 28 days divided by 12 times the months. F2: the contract share, 20 days divided by 12 times the months, plus the bank holidays on the Holidays sheet that fall on or after the start date. G2: the entitlement, the larger of E2 and F2, rounded up to the nearest half day. The formulas are filled down to row 7. B9: in how many rows is the statutory value larger than the contract value?
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Name | Team | Start date | Months | Statutory | Contract | Entitlement | |
| 2 | Hannah Price | Sales | 1 Mar 2026 | |||||
| 3 | Ryan Cole | Operations | 15 May 2026 | |||||
| 4 | Aisha Khan | Admin | 1 Jul 2026 | |||||
| 5 | Daniel Brooks | Operations | 2 Jul 2026 | |||||
| 6 | Grace Miller | Sales | 16 Sep 2026 | |||||
| 7 | Leo Turner | Operations | 1 Nov 2026 | |||||
| 8 | ||||||||
| 9 | Statutory minimum applies | |||||||
| 10 | ||||||||
| 11 |
| A | B | C | |
|---|---|---|---|
| 1 | Leave year (Jan to Dec) | 2026 | |
| 2 | Statutory minimum, 5-day week (5.6 weeks) | 28 | |
| 3 | Contract leave per full year, plus bank holidays | 20 | |
| 4 | |||
| 5 |
| A | B | |
|---|---|---|
| 1 | Bank holiday (England and Wales) | |
| 2 | 1 Jan 2026 | |
| 3 | 3 Apr 2026 | |
| 4 | 6 Apr 2026 | |
| 5 | 4 May 2026 | |
| 6 | 25 May 2026 | |
| 7 | 31 Aug 2026 | |
| 8 | 25 Dec 2026 | |
| 9 | 28 Dec 2026 | |
| 10 | ||
| 11 |
Step 1: months in the leave year
With a January to December leave year, someone who starts in March has 10 months, including March: =13-MONTH(C2). Counting the start month in full follows the gov.uk note that leave can accrue from the first day. If your company works out the first month pro rata instead, this is the cell to change.
Step 2: statutory share and contract share
The statutory share is 28 days divided by 12 times the months: =Settings!$B$2/12*D2. The contract share is 20 days divided by 12 times the months, plus the bank holidays that are still to come: =Settings!$B$3/12*D2+COUNTIF(Holidays!$A$2:$A$9,">="&C2). That second part matters: five of the eight bank holidays fall before June, so a mid-year joiner gets fewer than their share.
Step 3: the larger value, rounded up to half days
The contract must not give less than the statutory minimum, so the entitlement is the larger of the two. =CEILING(MAX(E2:F2),0.5) rounds up to the next half day: 9.33 becomes 9.5, 14 stays 14. In B9, =SUMPRODUCT((E2:E7>F2:F7)*1) counts how often the statutory minimum decides. The lesson on SUMPRODUCT shows how it counts comparisons.
Task 2: leavers and pay in lieu
For leavers the workbook takes the share of the leave year up to and including the leaving date: days since the start of the leave year plus 1, divided by 365. Regulation 14 speaks of the proportion of the leave year that has expired; counting the leaving date as a day worked is the choice this workbook makes, and it is stated in the task so everyone gets the same figure.
Task Six people leave in 2026. Bank holidays they had off count as leave taken. F2: the share of the leave year up to and including the leaving date (days since the start of the leave year plus 1, divided by the days in the year). G2: entitlement = full-year leave times that share, rounded up to the nearest half day. H2: remaining = entitlement minus taken. I2: pay in lieu = remaining times the day rate, rounded to 2 decimals, never negative (this contract has no clause to deduct leave taken in advance). Fill everything down to row 7. B10: total pay in lieu.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Team | Leaving date | Taken | Day rate | Share of year | Entitlement | Remaining | Pay in lieu | |
| 2 | Mark Evans | Sales | 31 Mar 2026 | 4 | 182.4 | |||||
| 3 | Laura Bennett | Admin | 30 Jun 2026 | 18 | 156.8 | |||||
| 4 | Chris Walker | Operations | 15 Aug 2026 | 12 | 171.2 | |||||
| 5 | Natalie Hughes | Operations | 31 Oct 2026 | 16 | 149.6 | |||||
| 6 | Omar Siddiqui | Sales | 14 May 2026 | 2 | 165 | |||||
| 7 | Kate Morgan | Admin | 30 Nov 2026 | 26.5 | 160 | |||||
| 8 | ||||||||||
| 9 | ||||||||||
| 10 | Total pay in lieu | |||||||||
| 11 | ||||||||||
| 12 |
| A | B | C | |
|---|---|---|---|
| 1 | Leave year starts | 1 Jan 2026 | |
| 2 | Leave per full year, incl. bank holidays | 28 | |
| 3 | Days in the leave year | 365 | |
| 4 | |||
| 5 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
The entitlement is 28 days times that share, rounded up to the next half day. The remaining balance is entitlement minus taken. =ROUND(MAX(0,H2)*E2,2) turns a negative balance into 0: whether leave taken in advance can be deducted from final pay depends on the contract, and this one has no such clause. The day rate comes ready from payroll.
Common mistakes
Forgetting the bank holidays
Without COUNTIF the contract share for Hannah, who starts in March, is 16.67 days instead of 23.67. The bank holidays are part of her 28 days and most of them are still ahead of her.
Counting all eight bank holidays
Adding a flat 8 gives Leo, who starts in November, more than 8 days of contract leave for two months. Only the bank holidays on or after the start date count.
ROUND instead of rounding up
ROUND turns 9.33 into 9 and gives Grace less than her statutory share. CEILING with 0.5 always rounds up to the next half day. The lesson on rounding compares the rounding functions.
Share of the year without the +1
Leaving on 31 December would give 364/365 instead of a full year. With +1 the leaving date counts as a day of employment.
How to check your result
- Task 1: entitlement 24, 19, 14, 14, 9.5 and 5.5 days. B9 is 4: for everyone except Hannah and Leo the statutory minimum decides.
- Task 2: shares of the year 0.2466, 0.4959, 0.6219, 0.8329, 0.3671 and 0.9151; entitlement 7, 14, 17.5, 23.5, 10.5 and 26 days; pay in lieu 4013.30 in total.
- Check: no entitlement may be below the statutory share. A helper column with
=G2>=E2must show TRUE in every row.
The functions in German Excel
| English | German |
|---|---|
| MONTH | MONAT |
| COUNTIF, SUMPRODUCT | ZÄHLENWENN, SUMMENPRODUKT |
| CEILING, MAX | OBERGRENZE, MAX |
| ROUND, SUM | RUNDEN, SUMME |
German Excel separates arguments with a semicolon and writes 0.5 as 0,5.
Excel versions
All functions in this case work in Excel for Microsoft 365, 2024, 2021, 2019 and 2016. Newer versions also have CEILING.MATH, which gives the same result here for positive numbers.
Back to the course overview.