How a leave balance works
Leave balance = Opening balance + Days accrued this year − Days taken this year
Opening balance is what was carried forward from the previous leave year. Days accrued builds up month by month as the employee works. Days taken comes from approved leave applications.
Use your own accrual rate. We use 2.5 days per month in the examples because it is easy to follow. The correct rate for your organisation depends on your leave policy, employment contracts, collective agreement and the law that applies to you.
Set up two sheets
Keep your records on two sheets: a Register where every approved leave application goes in as one row, and a Balances sheet that does the calculation. Never type a balance by hand. Let the formulas work it out from the register.Step-by-step formulas
Step 1: Count the months worked this leave year
New employees should only accrue leave from the day they joined. In D2 type:=DATEDIF(MAX(B2,$J$2),$J$3+1,"m")
MAX(B2,$J$2) picks the later of the start date and the start of the leave year, so long-serving staff count from 1 January and new staff count from their first day. DATEDIF then counts complete months up to the calculation date. Adding 1 to J3 makes a month that ends on the 30th or 31st count as complete.
DATEDIF does not appear in Excel’s function list, but it works in every version. If an employee’s start date is after the calculation date, wrap the formula in IFERROR(…,0).
Step 2: Work out days accrued
In E2:=D2*$J$1. The dollar signs lock the reference to the rate cell, so you can copy the formula down.
Step 3: Add up leave taken from the register
In F2, add up only annual leave taken by this employee within the leave year:=SUMIFS(Register!C:C,Register!A:A,A2,Register!B:B,">="&$J$2,Register!B:B,"<="&$J$3,Register!D:D,"Annual")
Sick leave, maternity leave and other types are recorded in the same register but are not deducted from annual leave, because of the last condition.
Step 4: Calculate the balance and flag problems
In G2:=C2+E2-F2. In H2, flag anything that needs attention:
=IF(G2<0,"Negative",IF(G2>$J$4,"Above limit","OK"))
Add conditional formatting (Home tab, then Conditional Formatting) so negative balances turn red and balances above the limit turn amber. Copy row 2 down for every employee.
The finished leave balance sheet
Going further: leave liability
Unused leave has a money value. To estimate it, add a column for each employee’s daily rate (worked out the way your policy or payroll defines it) and multiply it by the balance. The total is your leave liability, a figure finance teams often ask for at year end.Common mistakes to avoid
-
- Counting calendar days instead of working days. Weekends and public holidays inside a leave period are usually not deducted. Record the working days in the register.
-
- Typing balances by hand. Once one balance is typed over a formula, the sheet can no longer be trusted. Protect the formula columns.
-
- Deducting every type of leave. Make sure the leave type column is filled in and the SUMIFS checks it.
-
- Dates stored as text. SUMIFS skips them, so leave quietly disappears from the total. See how to clean an employee list for how to fix them.
-
- Forgetting to roll over. At the start of each leave year, copy the closing balances into the opening balance column (as values) and change J2 and J3.
DO IT IN 2 MINUTES
Skip the setup: use our ready-made calculator
The Leave Balance Calculator does all of this for you. Set your accrual rate, paste your staff list and leave register, and every balance and flag appears. Every formula is explained inside the file.
Get the Leave Balance Calculator Get the full HR & Payroll Analysis Toolkit ($35)
