leavepad

How to Track PTO in Excel: Step-by-Step with Formulas

How to track PTO in Excel step by step: the sheets, NETWORKDAYS.INTL and SUMIFS formulas, accrual per pay period, a worked example and when to stop.

By the Leavepad team · · 9 min read

To track PTO in Excel, build four sheets: settings (leave year and holidays), employees (each person’s PTO rate and carryover), a requests log (one row per request) and balances. Count hours requested with NETWORKDAYS.INTL, add up approved PTO with SUMIFS, and work out accrued PTO from the number of pay periods completed. Balance = carryover + accrued − used.

This step-by-step guide gives the exact columns and formulas, including accrual per pay period, a worked example with real numbers, and the signs it’s time to stop. If you would rather not build it, our free staff holiday tracker Excel template already has a yearly planner, the US federal holidays and PTO balances worked out.

Key takeaways

  • Track PTO in hours, not days, if anyone works part time or different-length days.
  • Log every request as its own row and calculate balances from the log. Never type a balance in by hand.
  • Accrued PTO = hours per pay period × pay periods completed, plus any carryover.
  • Excel handles caps and mid-year changes badly. That, plus multiple approvers, is usually when it’s time to switch.

How to track PTO in Excel

A PTO spreadsheet only stays accurate if data goes in once and everything else is calculated. The structure below keeps each kind of information in one place:

SheetOne row perWhat it does
SettingsSetting or holidayLeave year start, pay periods, company holidays
EmployeesPersonHours per day, yearly PTO, accrual rate, carryover
RequestsRequestDates, hours, status, approver
BalancesPersonAccrued, used, booked and remaining PTO

The formulas below use Excel’s built-in functions, checked against Microsoft’s documentation for NETWORKDAYS.INTL and SUMIFS (last checked 23 November 2026). They also work in Google Sheets.

Step 1: a settings sheet

Create a sheet called Settings with:

  • B1: leave year start, for example 1/1/2027.
  • B2: as-of date, the date balances are worked out to. Use =TODAY(), or type a date to check a past or future balance.
  • B3: days per pay period: 14 for biweekly, 7 for weekly.
  • A6 down: company holidays, one date per row. Select them and name the range Holidays (Formulas › Define Name). The US public holidays 2027 page lists the federal dates; add or remove days to match your own holiday calendar.

Step 2: the employees sheet

Create a sheet called Employees, one row per person, starting in row 2:

ColumnContentsExample
ANameMaria Lopez
BStart date3/1/2024
CHours per working day8
DWeekend code (days not worked)0000011
EYearly PTO hours120
FAccrual per pay period=E2/26
GCarryover from last year (hours)16
HBalance cap (hours, blank if none)180

The weekend code is the seven-character string NETWORKDAYS.INTL uses. Each position is a day from Monday to Sunday; 1 means a day not worked and 0 a working day. Microsoft’s example, "0000011", is a Saturday-and-Sunday weekend. Someone who works Monday to Thursday would be "0000111". Format column D as text so Excel keeps the leading zeros.

Step 3: the requests log

Create a sheet called Requests. Every request gets its own row, and rows are never deleted.

  • A: employee name (a drop-down from the Employees list)
  • B: leave type (PTO, sick, unpaid…)
  • C: first day off
  • D: last day off
  • E: hours (formula below)
  • F: status (Pending, Approved, Declined, Cancelled)
  • G: approved by

Hours for each request, in E2:

=NETWORKDAYS.INTL(C2,D2,INDEX(Employees!D:D,MATCH(A2,Employees!A:A,0)),Holidays)*INDEX(Employees!C:C,MATCH(A2,Employees!A:A,0))

It counts the person’s working days between the two dates, skipping their days off and company holidays, then multiplies by their hours per day. For a half day, overwrite the formula with the hours and add a note. Use Data › Data Validation for columns A, B and F so typos can’t break the totals. The order of SUMIFS arguments matters later: the range to add up comes first, then each pair of criteria range and criterion.

Step 4: PTO accrual formulas

If PTO is front-loaded (the full amount at the start of the year), skip this step: accrued is just the yearly figure. If it accrues each pay period, you need the number of pay periods completed. Our guide to how PTO accrual works compares the methods.

Pay periods completed = INT((as-of date − later of start date and leave year start) ÷ days per pay period)

In Excel, for the person in row 2 of Balances:

=MAX(0,INT((Settings!$B$2-MAX(Settings!$B$1,Employees!B2))/Settings!$B$3))

Then accrued PTO this year is:

=Employees!F2*B2

where B2 holds the pay periods completed. Using the later of the start date and the leave year start means a new hire only accrues from the day they join. The PTO accrual calculator is a quick way to check the spreadsheet’s figure for any one person.

Step 5: the balances sheet

Create a sheet called Balances with the employee names in column A (in the same order as the Employees sheet), then:

  • B: pay periods completed (formula above)
  • C: accrued: =Employees!F2*B2
  • D: used (approved PTO that has started): =SUMIFS(Requests!E:E,Requests!A:A,A2,Requests!B:B,"PTO",Requests!F:F,"Approved",Requests!C:C,">="&Settings!$B$1,Requests!C:C,"<="&Settings!$B$2)
  • E: booked (approved PTO still to come): =SUMIFS(Requests!E:E,Requests!A:A,A2,Requests!B:B,"PTO",Requests!F:F,"Approved",Requests!C:C,">"&Settings!$B$2)
  • F: available now: =Employees!G2+C2-D2
  • G: available after booked leave: =F2-E2

Add conditional formatting to turn column G red when it drops below zero, so you catch requests that go over before approving them. If you have a balance cap, add a check column that flags anyone over it: =IF(AND(Employees!H2<>"",F2>=Employees!H2),"At cap",""). Excel can’t easily stop accrual at the cap and restart it after leave is taken; you have to adjust by hand, which is one of the signs below.

Worked example

Maria works Monday to Friday, 8 hours a day, and gets 120 hours (15 days) of PTO a year, accrued biweekly. She carried over 16 hours. The leave year starts on Friday 1 January 2027, and we check her balance on Wednesday 30 June 2027.

  • Accrual per pay period: 120 ÷ 26 = 4.62 hours.
  • Pay periods completed: 30 June − 1 January = 180 days. 180 ÷ 14 = 12.86, so 12 full periods.
  • Accrued: 4.62 × 12 = 55.38 hours.
  • Used: she took 3 days in April and 2 in May, 40 hours in total.
  • Available now: 16 + 55.38 − 40 = 31.38 hours.

She asks for Monday 9 August to Friday 13 August 2027. NETWORKDAYS.INTL counts 5 working days, × 8 = 40 hours. Once approved, that moves into “booked”, and column G shows 31.38 − 40 = −8.62 hours. The red cell tells her manager that by 30 June she hasn’t accrued enough yet. By mid-August she will have accrued 3 more pay periods (13.85 hours), so the request is covered by the time she takes it, as long as your policy lets people book against PTO they will have accrued by the date of the leave. That is a policy decision; write it down.

Rules that keep the file accurate

  • One owner, one file. Keep it in one shared location with edit rights for one or two people.
  • Protect formula cells. Lock columns E on Requests and everything on Balances, then protect the sheets.
  • Never delete rows. Mark declined or cancelled requests as such, so the history is complete.
  • Start a new file each leave year. Copy the closing balances into the carryover column once, then lock last year’s file.
  • Track sick leave separately if your state requires it. Add a leave type and a second set of balance columns using the same formulas.

For a UK-style holiday tracker in days rather than PTO hours, see our guide to setting up a staff holiday tracker.

When to stop using Excel for PTO

A spreadsheet is a fine PTO tracker for a small team with one leave type and one approver. These are the signs it has stopped being fine:

  1. Requests arrive by email and chat, and someone has to copy them into the log.
  2. More than one manager approves, and they can’t see each other’s decisions.
  3. Caps, carryover limits or tenure-based rates need manual fixes every few weeks.
  4. Staff in several states or countries with different holidays and sick leave rules.
  5. People ask HR for their balance because they can’t see it themselves.
  6. Someone has overwritten a formula and nobody knows which balances are wrong.

Two or more of those usually means the spreadsheet is costing more time than it saves. Our comparison of a leave management system vs a spreadsheet puts numbers on the trade-off, and a PTO tracker does the same job with requests, approvals and balances in one place.

The bottom line

How to track PTO in Excel: a settings sheet with your holidays, an employees sheet with each person’s accrual rate, a requests log with hours from NETWORKDAYS.INTL, and balances calculated with SUMIFS as carryover + accrued − used. Track in hours, never type balances by hand, and move on when caps, approvers and locations start needing manual fixes. To skip the build, download the staff holiday tracker Excel template.

Frequently asked questions

How do I track PTO in Excel?

+

Use four sheets: settings (leave year and holidays), employees (accrual rate and carryover), a requests log and balances. Count hours with NETWORKDAYS.INTL, add up approved PTO with SUMIFS and calculate balance as carryover + accrued − used.

What is the Excel formula for PTO accrual?

+

Accrued PTO = hours per pay period × pay periods completed. Pay periods completed is INT((as-of date − later of start date and leave year start) ÷ days per pay period). For 120 hours a year paid biweekly, that is 4.62 hours a period.

How do I calculate PTO hours for a date range in Excel?

+

Use =NETWORKDAYS.INTL(start,end,weekend,Holidays) to count working days, skipping the person’s days off and company holidays, then multiply by their hours per day.

Should I track PTO in hours or days?

+

Hours, if anyone works part time or different-length days. Days work only when every employee works the same length of day.

When should I stop using Excel to track PTO?

+

When requests come in through several channels, more than one manager approves, caps and carryover need manual fixes, or staff work in several states with different rules.

Track leave without the spreadsheet

Leavepad keeps balances, approvals and the team calendar in sync, so you always know who is off.

Get started