Employee Leave Tracking: Entitlement, Balances, Same-Day Absence Limits and an Excel Setup
CONTENTS10 sections
Leave tracking at a shift-based plant means keeping three numbers right: each employee’s balance, the working days a request uses, and how many people from one crew are off the same day. All three fit in one Excel workbook with NETWORKDAYS.INTL, SUMIFS and COUNTIFS. The sheet breaks on decisions, not arithmetic: two supervisors approving the same day, a past record changing without a trace, a correction after payroll has closed.
This page is for HR officers and production managers who track leave in a spreadsheet.
Which leave types and entitlement rules go into the sheet?
At least four leave types go into the sheet, each behaving differently: annual leave reduces the balance; personal leave (excused absence) is counted separately; unpaid leave leaves the balance alone but goes to payroll; sick leave is a record HR enters, not a request, and also goes to payroll. Pick the type from a Data Validation list; otherwise “annual”, “Annual Leave” and “AL” become three types.
Entitlement comes from local law and the contract or collective agreement. It is usually tied to each employee’s service year, not the calendar year (in Turkey, Article 54), so a sheet that grants everyone new days on 1 January loses that link. Service length can include earlier periods with the same employer; take it from HR’s personnel record. Carried-over balance, unused days from the previous period, gets its own column. Which entitlement applies, and how carried-over days are used, is for your employment lawyer; the sheet only carries that decision.
If you are in Turkey: I read Labour Law No. 4857 on 01.11.2026 (mevzuat.gov.tr). Article 53 grants annual leave after one year of service, with minimums of 14 days for one to five years (five included), 20 for more than five and under fifteen, and 26 for fifteen or more; employees aged 18 or under, or 50 or over, get at least 20, and contracts can add more; underground work adds 4 days, which the formula ignores. Article 54 combines periods with the same employer; each service year’s leave is used in the next. Article 56 says holidays and the weekly rest day within annual leave are not counted as leave days. Splitting annual leave needs agreement, one part at least 10 days; whether half days fit is for your lawyer, and the sheet only records them.
Example: one year of leave records at a 140-person plant
The plant, the crews and every number are fictional; I calculated the figures in a script or fixed them as scenario inputs.
A metal processing plant employs 140 people. Four lines (Cutting, Bending, Welding, Painting) run two shifts: eight crews of 13, 104 people; maintenance, warehouse, quality and office staff make 36. Production rests on Sunday; maintenance works Sundays while the lines stop and rests on Monday. Requests come on paper forms and HR enters them into one Excel file.
The year had 684 leave records: 412 annual leave (57 half days), 64 personal, 21 unpaid and 187 sick leave. Employees opened 497 requests; HR entered sick leave. The year-end check and employee complaints found:
- 17 balance errors. The balance formula stopped at row 400, so later records missed 5 employees’ balances. 4 half days were entered as 1 day. 4 requests had a public holiday deducted. 2 employees past five years of service stayed on 14 days. For 2, the previous period’s usage was deducted again after carry-over was entered.
- 11 capacity clashes. More than two people from one crew were on planned leave the same day. In 5, two supervisors approved the same day separately; 6 came from bulk approvals around a holiday bridge day, when two crews were down to 9 of 13.
- 29 retrospective corrections. 9 annual leave records became sick leave, 6 employees returned early, 14 records had wrong dates. 12 overwrote the old value; 7 arrived after that month’s payroll had closed.
- 9 payroll shifts. 9 sick and unpaid leave records crossing a month end went in full to their starting month.
Where does an Excel leave tracker break?
An Excel leave tracker breaks in five places; every error in the example falls into one.
- The balance formula. A fixed end row misses new rows. A total without a period criterion deducts the previous period’s usage again, although the carried-over balance already reflects it.
- Retrospective corrections. Typing a new date over a cell deletes the original; who changed it and why is gone.
- Two approvals for the same day. If 1 person from the Welding night crew is off, two supervisors checking at the same time both see “under the limit” and approve: the result is 3. The formula counts correctly but cannot stand between two decisions.
- Half days. When people type 0.5, “half” or 1, the balance cannot be summed. A half day on a holiday or rest day should count as 0.
- Leave that includes a public holiday. Without the holiday list in the formula, that day is deducted. At a shift plant, the rest day is also not Sunday for everyone: a 13-day absence from a Monday to the following Saturday with one holiday in between is 11 working days for production and 10 for maintenance. Leave the weekend argument blank and Saturdays drop too: 9.
A sound Excel setup: NETWORKDAYS.INTL, SUMIFS, COUNTIFS
If you stay in a spreadsheet, build three sheets: Leave (one row per request), Staff (one row per employee) and Capacity (dates in rows, crews in columns). List public holidays separately and name the range Holidays.
Leave sheet columns:
A Staff ID · B Name · C Start · D End · E Type · F Half · G Days H Crew · I Weekend code · J Status · K Approved by · L Note
E, F (Yes or blank) and J (Pending, Approved, Rejected, Cancelled) come from lists. D is mandatory; for a half day, D equals C. I is the weekly rest day: 11 for production (Sunday only), 12 for maintenance (Monday only). English Excel, commas:
G2: =IF(C2="","",IF(F2="Yes",
0.5*NETWORKDAYS.INTL(C2,C2,I2,Holidays),
NETWORKDAYS.INTL(C2,D2,I2,Holidays)))
NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]) counts both ends; without a weekend argument it drops Saturday and Sunday (Microsoft: NETWORKDAYS.INTL). A half day on a holiday or rest day gives 0.5 × 0 = 0; a blank row stays blank. For sick and unpaid leave, ask payroll whether working or calendar days count.
Staff sheet columns: A Staff ID · B Service years · C Age · D Period start (last entitlement date) · E Entitlement · F Carried over · G Used · H Balance · I Pending.
E2: =IF(B2<1,0,MAX(IF(B2>=15,26,IF(B2>5,20,14)),
IF(OR(C2<=18,C2>=50),20,0)))
G2: =SUMIFS(Leave!$G$2:$G$2000,
Leave!$A$2:$A$2000,A2,
Leave!$E$2:$E$2000,"Annual",
Leave!$J$2:$J$2000,"Approved",
Leave!$C$2:$C$2000,">="&D2)
H2: =E2+F2-G2
I2: same as G2, with "Pending" instead of "Approved"
E applies Turkey’s Article 53 minimums to completed service years; use your own law’s or contract’s thresholds. In SUMIFS the sum range comes first (Microsoft: SUMIFS). The last criterion excludes the previous period; without it, old usage counts twice. Employee P-117, with 6 service years, has 20 days plus 3 carried over; after 11.5 approved days the balance is 11.5, and 9.5 if a pending 2-day request is approved.
On the Capacity sheet, column A holds dates and row 1 holds crew codes (such as Welding-Night):
B2: =COUNTIFS(Leave!$H$2:$H$2000,B$1,
Leave!$E$2:$E$2000,"<>Sick",
Leave!$J$2:$J$2000,"Approved",
Leave!$C$2:$C$2000,"<="&$A2,
Leave!$D$2:$D$2000,">="&$A2)
COUNTIFS(criteria_range1, criteria1, …) checks every criterion on the same row (Microsoft: COUNTIFS). Turn cells above 2 red. Sick leave cannot be planned, so it is excluded, like pending requests. A half-day row with a blank D is not counted; hence D is mandatory.
Approval order, delegation and a same-day absence limit
The approval order I suggest has two steps: the shift supervisor checks the crew, then HR checks type and balance; for unpaid leave the production manager can approve third. Nobody approves their own request; a supervisor’s leave goes to the production manager.
Delegation has a date range: a named deputy approves while the supervisor is away, shown as “on behalf of”. In Excel this is just text in column K; the sheet checks no authority.
The capacity rule is my proposal, not a legal limit: in a 13-person crew, at most 2 people on planned leave the same day, roughly 15%. For roles few people cover, such as crane operation, the limit follows qualification: two holders of the same certificate are not off together. A request over the limit goes to the production manager for a reasoned exception rather than being rejected.
What goes to payroll?
At month end, payroll needs days per employee by type: annual, personal, unpaid and sick leave. How each affects pay and social security days is for your payroll accountant; the sheet puts the right days in the right month.
Excel gets this wrong twice. A list totalled by start date puts leave crossing a month end into one month: 7 sick days (counted as calendar days) from the 28th to the 3rd should split 4 and 3. A correction to a closed month slips silently into that month’s list; unless payroll is rerun, the difference carries forward. The example’s 7 late corrections belonged on a “next month adjustment” list.
Approvers, not headcount: when is a leave sheet no longer enough?
If one HR officer processes requests and one person approves, the sheet works at 140 employees; clashing approvals cannot arise.
You might need no application at all: if your HR or payroll software’s leave module covers requests, approvals, balances and holidays, do not build a second system; keep the spreadsheet only for the Capacity sheet.
Count in your own data: requests that passed more than one supervisor last year, balance complaints, changed past records, corrections after payroll.
| Route | When | Limit |
|---|---|---|
| Paper form + HR’s spreadsheet | One approver, one shift | Balance and capacity checked by hand |
| Leave, Staff and Capacity sheets | One HR processor, few approvers | No protection for double approval or correction history |
| Leave module of HR/payroll software | Covers your types and holidays | Check separately for a crew capacity rule |
| Web application to be built | Many supervisors, delegation, varied rest days | Rules must first be agreed in writing |
From request to payroll in the application to be built
The functions below could be built; they can be set up to fit your needs, and the scope is agreed in writing in the first step. They are not a ready-made product or an installed integration.
- Request screen: the employee picks type, dates and half day; the day count uses their own rest day and holiday list, with balance and “after approval” preview. Employees see only their own records, as on assigned-record screens.
- Approval queue: capacity is recounted at the moment of approval. If two supervisors approve the same day at once, the second stops at the limit and goes to the production manager as an exception; the example’s 5 clashes could not have occurred without an exception decision, because the second approval stops at the limit. Delegation has start and end dates.
- A correction is saved as a new movement: the earlier row stays; who changed what, when and why is visible. Corrections to a closed month go to the adjustment list.
- Payroll list: staff ID, type and days at month end, split by day across month ends, in the layout your payroll accountant’s software needs.
- Privacy: a sick note is health data, a special category under laws such as Turkey’s KVKK, Article 6; calendars show only “on leave”, and only HR sees the document.
- Shift link: if a shift scheduling application is in use, approved leave feeds its availability check.
AI can summarise for a supervisor which crews near the limit in the next two weeks; only crews and counts within that supervisor’s access reach the model, never a sick leave reason. The supervisor decides.
The server can be opened in your company’s name; all leave records are yours and can be taken out as Excel or CSV at any time. For small and mid-sized teams there is no per-user licence; the running cost is the server and maintenance. The source code sits in a repository you can access, with run instructions, a dependency list and known limits.
The first meeting is paid. Prepare your leave types, your approval order and last year’s balance complaints, and write to me through the contact page.
Points I have not verified
- I did not run the formulas in Excel; I imitated them in a script, checking NETWORKDAYS.INTL against the four examples on Microsoft’s page.
- Date criteria such as
"<="&$A2in SUMIFS and COUNTIFS, and blank cells not matching them, are not in Microsoft’s examples; the script assumes this behaviour. - I did not read the leave regulation referred to in Article 60 of Turkey’s Labour Law.
- When service years and age are measured, how personal and sick days count, and payroll effects are for a lawyer and payroll accountant; I give no ruling.
Frequently Asked Questions
Can the application produce a leave record for each employee?
Yes; it can give each employee a statement of entitlement, usage and balance. In Turkey, Article 56 requires the employer to keep a record of annual paid leave; your payroll accountant or lawyer confirms what it must contain.
What happens to unused leave when someone leaves?
That depends on local law. In Turkey, Article 59 says earned but unused leave is paid at the wage on the date the contract ends. The application can lock the balance on the leaving date and add it to the payroll list; payroll calculates the amount.
How is a half day recorded in the sheet?
Put “Yes” in column F and make D equal C; the formula counts 0.5 of a working day, or 0 on a holiday or the employee’s rest day. Whether annual leave can be taken in half days depends on Article 56’s splitting rule in Turkey; ask your lawyer.
How do I work?
Work-hour packages
Tell me about your business and what you need on WhatsApp or by phone; we agree on a work block of somewhere between 5 and 40 hours and I start doing what is needed. What you get is not a calendar window: it is net working hours spent directly on your business. I can use 40 hours working three days straight, or deliberately spread it out and finish it over a year: whatever the work calls for. I do not spend my time estimating how long something will take, I spend it doing the work; every hour I spend leaves a lasting result in your business. We keep going for as long as you find it useful.
Why not monthly?
Does a 40-hour block mean one week?
On a fixed monthly fee both sides are watching the wrong thing: you watch a fixed cost, the other side watches how many more contracts like this they can line up. Working by the hour puts us both in front of the same thing: the real value of the work that got done. I know not having an upfront answer to "how much will this cost in total?" is the natural cost of this model. But instead of paying a fixed fee for months to a setup that is not producing results, you only pay for the qualified time spent on your work: and you see exactly where that time went, start to finish. That is why my clients keep coming back.
