Skip to content
Foxcolab

How to Make a Leave Tracker in a Spreadsheet

Build a leave tracker that logs requests, counts working days around holidays, accrues earned leave each month, keeps live balances and records approvals, with an optional leave request form, in end-to-end encrypted Foxcolab Sheets and Forms.

7 min read
On this page11 sections

In short

A leave tracker has three parts: your leave policy, a log of every request with its status, and a balance for each person. NETWORKDAYS.INTL counts the working days in each request, skipping weekends and holidays. DATEDIF accrues earned leave by completed months, and SUMIFS subtracts only approved leave. In Foxcolab Sheets the tracker is end-to-end encrypted, and a Forms leave request can feed it.

Key takeaways

  • Write down the leave policy first. In India, minimum leave depends on your State's Shops and Establishments Act or, for factories and other covered workplaces, the OSH Code.
  • Log every request on one sheet with the person, type, dates, days and a status of Pending, Approved or Rejected.
  • NETWORKDAYS.INTL with weekend code 11 counts a six-day week, and a holiday list stops festivals counting as leave.
  • Accrue earned leave from completed months with DATEDIF, so mid-year joiners get the right share automatically.
  • Subtract only Approved leave from balances, and flag pending requests that are bigger than the balance.
  • Sick leave says something about health. Foxcolab Sheets encrypts the tracker on your device, so Foxcolab can't read it.

Last reviewed 3 December 2026 by Foxcolab Team

A leave tracker is a spreadsheet that records every leave request, counts the working days it uses and keeps each person's balance up to date. It has three parts: your leave policy, a log of requests with their approval status, and a balance sheet that works itself out from the log. This guide covers the policy questions to settle first, the formulas for working days, monthly accrual and balances, a worked example, and how to build the leave tracker in Foxcolab Sheets with a Foxcolab Forms leave request feeding it. Both are end-to-end encrypted, which matters because sick leave is health information.

Settle your leave policy first#

A tracker can only apply rules you've written down. Decide these before you build anything:

DecisionExample policy
Leave typesEarned leave (EL), casual leave (CL), sick leave (SL), leave without pay (LWP)
How earned leave builds up1.5 days for each completed month, 18 a year
Leave credited at the start of the year7 days CL and 7 days SL
Leave yearJanuary to December
Carry forwardEarned leave up to 45 days, the rest lapses
Working weekMonday to Saturday, Sunday off
Half daysAllowed, counted as 0.5

That's an example, not a legal minimum. In India, leave for shops and offices comes from your State's Shops and Establishments Act, so the numbers differ from State to State. Maharashtra's 2017 Act, for example, caps accumulated leave at 45 days under section 18(5), and its official Form P tells a worker when they reach it. Factories and other establishments covered by the Occupational Safety, Health and Working Conditions Code give paid annual leave to workers who work 180 days or more in a calendar year, down from 240 under the old laws (PIB). Check your State's Act and your employment contracts, then set your policy at or above them.

Lay out the workbook#

Use three tabs, so the log stays simple and the balances never need typing.

TabColumnsWho edits it
RequestsA Employee, B Type, C From, D To, E Half day, F Days, G Status, H Decided by, I Note, J CheckHR adds rows; approvers set Status
BalancesA Employee, B EL carried in, C EL accrued, D EL taken, E EL balance, F CL left, G SL left, H Pending days, I Carry forward, K JoinedFormulas only, except B and K
HolidaysA list of the year's holiday datesHR, once a year

On Balances, keep the settings at the top: B1 the as-of date, B2 the monthly accrual (1.5), B3 the yearly CL and SL credit (7), B4 the carry-forward cap (45). People start in row 5.

The formulas#

Requests tab (row 2, fill down)·Text
F2  Days     =IF(A2="","",IF(E2,0.5,NETWORKDAYS.INTL(C2,D2,11,Holidays!$A$2:$A$30)))
J2  Check    =IF(AND(G2="Pending",B2="EL",F2>XLOOKUP(A2,Balances!$A$5:$A$50,Balances!$E$5:$E$50,0)),"Over balance","")
Balances tab (row 5, fill down)·Text
C5  EL accrued     =$B$2*DATEDIF(MAX(K5,DATE(YEAR($B$1),1,1)),$B$1+1,"m")
D5  EL taken       =SUMIFS(Requests!$F:$F,Requests!$A:$A,$A5,Requests!$B:$B,"EL",Requests!$G:$G,"Approved")
E5  EL balance     =B5+C5-D5
F5  CL left        =$B$3-SUMIFS(Requests!$F:$F,Requests!$A:$A,$A5,Requests!$B:$B,"CL",Requests!$G:$G,"Approved")
G5  SL left        =$B$3-SUMIFS(Requests!$F:$F,Requests!$A:$A,$A5,Requests!$B:$B,"SL",Requests!$G:$G,"Approved")
H5  Pending days   =SUMIFS(Requests!$F:$F,Requests!$A:$A,$A5,Requests!$G:$G,"Pending")
I5  Carry forward  =MIN($B$4,E5)

What each one does:

  • Days: NETWORKDAYS.INTL counts working days between two dates. Weekend code 11 means Sunday only. Use NETWORKDAYS(C2,D2,Holidays!$A$2:$A$30) instead if Saturday is off too. A ticked Half day box counts 0.5.
  • Accrued: DATEDIF with "m" counts completed months from 1 January, or from the joining date for someone who joined this year. Adding 1 to the as-of date makes a month count on its last day. Put =TODAY() in B1 if you want it to update itself.
  • Taken: SUMIFS adds only Approved requests, so a Pending or Rejected request never touches a balance.
  • Check: flags a pending earned-leave request that's bigger than the person's balance, before anyone approves it.
  • Carry forward: at year end, MIN applies the cap. Copy column I into next year's B.

A worked example#

Here's the log for three people, with 26 January, 15 August and 2 October 2026 on the Holidays tab.

EmployeeTypeFromToDaysStatus
Asha RaoELMon 9 MarFri 13 Mar5Approved
Asha RaoCLFri 19 JunFri 19 Jun1Approved
Asha RaoELMon 28 SepSat 3 Oct5Approved
Ravi KumarSLFri 14 AugMon 17 Aug2Approved
Meera IyerELMon 4 MayFri 8 May5Rejected
Meera IyerCLFri 20 Nov (half day)Fri 20 Nov0.5Approved
Ravi KumarELMon 21 DecThu 31 Dec10Pending, Over balance

Asha's September leave spans six working days, but 2 October is a holiday, so it costs 5. Ravi's sick leave skips 15 August (a holiday) and 16 August (a Sunday). With the as-of date set to 30 November 2026:

EmployeeJoinedEL carried inEL accruedEL takenEL balanceCL leftSL leftPending
Asha Rao12 Jun 2023616.51012.5670
Ravi Kumar1 Jul 202607.507.57510
Meera Iyer1 Feb 20241016.5026.56.570

Ravi joined in July, so he has accrued 5 months × 1.5 = 7.5 days, and his 10-day December request is flagged. Meera's rejected May request doesn't reduce her balance.

Make a leave tracker in Foxcolab Sheets#

Leave records show who was ill, who took unpaid time off and who is away when. Foxcolab Sheets encrypts every spreadsheet on your device with its own key, and cells, titles and comments are encrypted before they sync, so Foxcolab can't read them. Sheets and Forms come with every Foxcolab account, the free plan included.

Build the tabs#

  1. Create the spreadsheet

    In your Sheets library, click New, then Blank spreadsheet. Name it Leave tracker 2026 and right-click the first tab to Rename it Requests.

  2. Add the other tabs

    Choose Insert → Sheet twice and rename the new tabs Balances and Holidays. Type the holiday dates on Holidays from A2.

  3. Type the headings and formulas

    Add the column headings from the layout table, then the formulas above. Fill the Requests formulas down a few hundred rows and the Balances formulas down for everyone on the team.

  4. Add the Half day box

    Select E2:E500 on Requests and choose Insert → Checkbox.

  5. Keep headings in view

    On each tab, choose View → Freeze → 1 row, so headings stay put as the log grows.

Make approvals clean#

  1. Add the Type and Status lists

    Select B2:B500 and choose Data → Data validation → Add rule. Set Criteria to Dropdown, use Add item for EL, CL, SL and LWP, choose Reject the input and click Done. Do the same for G2:G500 with Pending, Approved and Rejected, giving each item its own color with Display style set to Chip.

  2. Highlight problems

    Select J2:J500 and choose Format → Conditional formatting → Add rule. Under Format cells if, pick Text is exactly, type Over balance, choose a red Fill color and click Done.

  3. Lock the balances

    Open Balances, select C5:I50 and choose Data → Protect sheets and ranges → Add a protected range or sheet. Pick Only the owner and you and click Done, so nobody can type over a formula.

  4. Keep a trail

    File → Show changes lists who changed each Status and when. At the end of each month, choose File → Version history → Name current version, for example "Nov 2026 closed", before payroll runs.

Add drop-down lists and data validation in Sheets and Protect a range in Sheets cover every option.

Take requests with a Foxcolab Forms leave request#

A form saves HR from retyping requests from chat messages, and in an Encrypted form each answer is encrypted on the employee's device.

  1. Create the form

    In Foxcolab Forms, select New form, then Blank form. Type the Title Leave request and keep Answers set to Encrypted.

  2. Add the questions

    Add a Short answer for the employee's name, a Dropdown for the leave type, two Date questions for the first and last day, a Yes / No for a half day and an optional Long answer for a note. Mark the first four Required. Forms doesn't collect names unless you ask, so keep the name question.

  3. Limit it to your team

    Under Access, set Who can respond to People in my organization, then Publish and share the link.

  4. Review and record requests

    Open Results → Responses to see new requests. Add each one to the Requests tab as Pending, then mark the response Done with Mark as. To bring in many at once, choose Export → CSV, then in Sheets choose File → Import…, pick Insert new sheet(s) and copy the rows across.

Two Date questions put the first and last day in their own columns, which makes copying them into From and To simple. Ask for the reason type, never a diagnosis. Exported files aren't encrypted, so delete them once the rows are in the tracker.

Share it carefully#

Sheets shares the whole spreadsheet, so the full tracker belongs with HR and approvers only. Click Share and invite them as Editor. Give payroll Viewer access, with Access expires for an outside payroll firm. Employees can ask HR for their balance, or you can copy their row into a sheet of their own. If you remove someone, Sheets puts a new key in place, so they can't read anything added afterward.

Mistakes that break a leave tracker#

MistakeWhat happensFix
Counting calendar daysWeekends and holidays come off the balanceUse NETWORKDAYS.INTL with a holiday list
Subtracting pending requestsBalances drop before anyone approvesSUMIFS on Status "Approved" only
Typing balances by handThey drift from the logLet formulas work them out
A full year's accrual for July joinersNew starters get too much leaveAccrue from the joining date with DATEDIF
Medical details in NoteHealth information spreads to every editorRecord the leave type, not the reason
No holiday list for next yearJanuary's leave counts festival daysUpdate Holidays before the year starts

Leave records belong to your people. Create a free account and build your leave tracker in a spreadsheet Foxcolab can't read, or see plans for your own domain and more storage. Managing leave across offices and States? See Foxcolab for enterprise or talk to sales.

Frequently asked questions

How many days of leave are employees entitled to in India?

It depends on where and what kind of workplace. Shops and offices follow their State's Shops and Establishments Act, so entitlements differ between States. Factories and other establishments covered by the Occupational Safety, Health and Working Conditions Code, 2020 give paid annual leave to workers who work 180 days or more in a calendar year. Check your State's rules and your contracts, then set your policy at or above them.

How do I calculate earned leave accrual in a spreadsheet?

Multiply the monthly accrual by the number of completed months. With 1.5 days a month and the as-of date in B1, =1.5*DATEDIF(MAX(joining date,DATE(YEAR(B1),1,1)),B1+1,"m") gives 16.5 days on 30 November for someone who worked all year, and 7.5 days for someone who joined on 1 July.

How do I count leave days without weekends and holidays?

Use NETWORKDAYS.INTL(start, end, 11, holidays) for a week with only Sunday off, or NETWORKDAYS(start, end, holidays) for a Saturday and Sunday weekend. Leave from Monday 28 September to Saturday 3 October 2026 counts as 5 days in a six-day week, because 2 October is a holiday.

Can employees request leave with a form?

Yes. In Foxcolab Forms, build a leave request with a name, a leave type dropdown and two Date questions, and keep answers Encrypted. Requests arrive in Results, where you can review them and export them to add to the tracker.

Written by

Foxcolab Team

The Foxcolab team, who build the apps and help people set them up.

More from Foxcolab

Did this guide help you get it done?

One click, no account needed.

Try the tools we write about.

Mail, files, documents, spreadsheets and meetings in one account, with no ads. The free plan is enough to start.

Jump to