ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Projects
  3. PTO Accrual in Excel: Track Hours Earned, Used and Left

PTO Accrual in Excel: Track Hours Earned, Used and Left

By ExcelReady Team·Updated November 3, 2026·7 min read

The short answer

To track PTO accrual in Excel, work out hours earned, subtract hours used and add any carryover. For a monthly rate, earned is =DATEDIF(start,as_of,"m")*rate. Total the hours taken from a leave log with SUMIFS, then find the balance with =carryover+earned-used, wrapped in MIN if your policy caps the balance.

Key takeaways

  • PTO balance = carryover + hours earned - hours used.
  • For a monthly accrual rate, count full months with DATEDIF(start, as_of, "m") and multiply by the rate.
  • For a per-pay-period rate, divide the yearly hours by the number of pay periods and round with ROUND.
  • Log every day off in one table and total each person's PTO with SUMIFS on name and type.
  • A cap needs a month-by-month balance column with MIN, not one MIN at the end.
On this page+
  1. How PTO accrual works
  2. Step 1: Set up the inputs
  3. Step 2: Calculate hours earned
  4. Step 3: Log the time taken
  5. Step 4: Total hours used with SUMIFS
  6. Step 5: Work out the PTO balance
  7. Track the balance month by month with a cap
  8. Common PTO accrual mistakes
  9. Practise it

PTO accrual in Excel comes down to one line: hours earned minus hours used, plus anything carried over. PTO means paid time off, and accrual means it builds up a little each month or pay period instead of arriving all at once. This guide builds a small tracker with DATEDIF for hours earned, SUMIFS for hours used and MIN for a balance cap. It suits HR and payroll staff, managers and anyone checking their own balance.

How PTO accrual works#

An accrual policy sets how fast PTO builds up and what limits apply. The rules come from your employer's policy and local law, so check them before you build anything. The figures in this guide are examples only, chosen to keep the maths easy:

Policy settingExample valueWhat it means
Accrual rate8 hours per full monthEarned after each complete month worked
Carryover16 hoursUnused hours brought in from last year
Cap120 hoursThe balance can't go above this

Other common methods are a fixed amount per pay period, or a fraction of an hour for every hour worked. The sections below show the formula for each.

Step 1: Set up the inputs#

Put every policy number in its own labelled cell, so the formulas refer to cells, not typed numbers.

AB
1Start date1/15/2026
2As-of date10/31/2026
3Hours per month8
4Cap120
5Carryover16

Enter the dates as real dates, not text, or the date maths will fail. If the rate changes next year, you change one cell and every formula updates.

Step 2: Calculate hours earned#

For a monthly rate, count the full months worked with DATEDIF, then multiply by the rate. In B6:

Excel formula
=DATEDIF(B1,B2,"m")*B3

From 15 January to 31 October is 9 complete months, so the employee has earned 9 × 8 = 72 hours. The "m" unit counts only full months, which matches a policy that credits PTO after each complete month. DATEDIF doesn't appear in Excel's formula suggestions, but it works in every version. The DATEDIF function guide lists all its units, and the article on calculating age and tenure uses the same function for years of service.

Per pay period#

If PTO accrues each payday, divide the yearly hours by the number of pay periods. For an example of 80 hours a year, paid every two weeks (26 pay periods):

Excel formula
=ROUND(80/26,2)

That gives 3.08 hours per pay period. Count the paydays so far and multiply. With a first payday of Friday 9 January 2026, =INT((B2-DATE(2026,1,9))/14)+1 returns 22 paydays by 31 October, so 22 × 3.08 = 67.76 hours.

Per hour worked#

Some policies give, for example, 1 hour of PTO for every 40 hours worked. With hours worked in B8:

Excel formula
=ROUNDDOWN(B8/40,2)

For 1,412 hours worked, that is 35.3 hours of PTO. ROUNDDOWN avoids giving away a fraction of an hour that hasn't been earned yet. Round the same way every time, and match what your payroll system does.

Step 3: Log the time taken#

Keep one row per absence in a leave log, with the same columns every time:

ABC
1EmployeeTypeHours
2LinaPTO8
3OmarPTO16
4LinaSick4
5LinaPTO4
6OmarSick8
7LinaPTO8

Record hours, not days, so half days and short days add up correctly. Use the same spelling for names and types; a drop-down list stops "pto" and "P.T.O." creeping in. In a real tracker, add a date column so you can filter by year. The employee leave tracker guide shows how to count working days for each request with NETWORKDAYS.

Step 4: Total hours used with SUMIFS#

SUMIFS adds the hours in rows that match every condition you give it. To total Lina's PTO, and not her sick time:

Excel formula
=SUMIFS(C2:C7,A2:A7,"Lina",B2:B7,"PTO")

The result is 20 (8 + 4 + 8). The sum range comes first, then each range with its condition. To report on one year only, add a date column and two more conditions, like D2:D7,">="&DATE(2026,1,1). The SUMIFS function guide covers the syntax, and the same pattern totals hours on a timesheet.

Step 5: Work out the PTO balance#

The balance is carryover plus earned minus used. With earned in B6 and used in B7:

Excel formula
=B5+B6-B7

That gives 16 + 72 − 20 = 68 hours. To show it in days, divide by the length of a workday: with 8-hour days, =B9/8 (balance in B9) returns 8.5 days.

To apply the cap, you might try =MIN(B4,B5+B6-B7). That is only right if the balance never reached the cap during the year. Under most capped policies, accrual stops while the balance sits at the cap, so hours "earned" during that time are never added. A month-by-month balance handles this correctly.

Track the balance month by month with a cap#

A running balance applies the cap each month, the way a capped policy works. Put one row per month, and in the Balance column use:

Excel formula
=MIN($B$4,D2+B3-C3)

Here D2 is the previous month's balance, B3 the hours earned this month and C3 the hours used. $B$4 is the cap, locked so it stays fixed as you fill down. Using an example cap of 40 hours and an opening balance of 24:

MonthEarnedUsedBalance
Opening24
Jan8032
Feb81624
Mar8032
Apr8040
May8040
Jun81632

In May, 40 + 8 would be 48, so MIN holds it at 40. The true June balance is 32. A single MIN on the half-year total gives 24 + 48 − 32 = 40, capped to 40, which overstates it by 8 hours: the hours "earned" in May while the balance sat at the cap are counted after all.

Common PTO accrual mistakes#

Most wrong balances come from a handful of slips:

  1. Counting part months. DATEDIF with "m" counts complete months only. If your policy credits PTO on the 1st of each month, count calendar months instead.
  2. Rounding each row differently. Decide on ROUND or ROUNDDOWN and the number of decimals once. The payroll calculator guide shows why rounding every line the same way keeps totals right.
  3. Mixing hours and days. Keep everything in hours and convert to days only for display.
  4. Text dates. A date typed as text makes DATEDIF return #VALUE!.
  5. Counting sick days as PTO. Always add the Type condition to SUMIFS.

These are core skills for HR and payroll roles; the article on Excel skills for payroll jobs lists the rest.

Practise it#

A PTO tracker is three formulas, and each one is a skill you can practise. Practise SUMIF in a live spreadsheet to total hours by condition, practise days between dates to count months of service, and practise rounding so accruals match payroll. Each lesson checks your formula instantly. Start with the exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The leave log is in A1:C7. In F2, use SUMIFS to total the PTO hours (C2:C7) taken by Lina. Sick days must not count.

fx
ABCDEFG
1
Employee
Type
Hours
2
Lina
PTO
8
Lina PTO used
3
Omar
PTO
16
4
Lina
Sick
4
5
Lina
PTO
4
6
Omar
Sick
8
7
Lina
PTO
8
8
9
10

Tip: SUMIFS starts with the hours to add, then pairs of range and criteria: the names with "Lina", the types with "PTO".

Practise this in a lesson

LessonSUMIFAdd up only the numbers that meet a condition, with and without a separate sum range.LessonDays between dates: DAYS, DATEDIF and TODAYMeasure the gap between two dates in days, months and years, and calculate tenure as of today.LessonROUND, ROUNDUP and ROUNDDOWNControl decimals properly, which isn't the same as formatting.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.Function guideDATEDIFCalculate tenure, age and contract length with DATEDIF. Learn every unit (Y, M, D, YM), the hidden-function quirks, and practice live.

Frequently asked questions

How do you calculate PTO accrual in Excel?

+

Multiply the accrual rate by the number of periods worked. For 8 hours a month, use =DATEDIF(start,as_of,"m")*8. Then subtract the hours used, totalled with SUMIFS, and add any carryover.

How do I calculate PTO accrual per pay period?

+

Divide the yearly PTO hours by the number of pay periods. For 80 hours a year paid every two weeks, that is 80/26, about 3.08 hours per pay period. Multiply it by the pay periods so far.

How do I convert PTO hours to days in Excel?

+

Divide the hours by the length of a workday. With 8-hour days, =B9/8 turns 68 hours into 8.5 days.

How do I stop the PTO balance going over the cap?

+

Use MIN in a month-by-month balance column, such as =MIN(cap, previous balance + earned - used). One MIN on the yearly total can overstate the balance if the cap was reached during the year.

Is there a PTO accrual template in Excel?

+

You can build one quickly: an inputs block with start date, as-of date, rate, carryover and cap, a leave log, and three formulas for earned, used and balance. This guide walks through each part.

Sources

  • SUMIFS function - Microsoft Support
  • DATEDIF function - Microsoft Support
  • ROUND function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How PTO accrual works
  2. Step 1: Set up the inputs
  3. Step 2: Calculate hours earned
  4. Step 3: Log the time taken
  5. Step 4: Total hours used with SUMIFS
  6. Step 5: Work out the PTO balance
  7. Track the balance month by month with a cap
  8. Common PTO accrual mistakes
  9. Practise it

Keep reading

Projects· 6 min read

Build an Employee Leave Tracker in Excel

A leave tracker in Excel has a log with one row per request: employee, leave type, start date and end date. =NETWORKDAYS(Start,End,Holidays) counts the working days in each request. A summary table then uses SUMIFS to total each person's days by type, subtracts them from the yearly allowance, and COUNTIFS shows who is off on any date.

Projects· 6 min read

Build a Simple Payroll Calculator in Excel

To do simple payroll in Excel, list each employee's hours and hourly rate, then calculate gross pay with overtime. Look up a tax rate from a band table with VLOOKUP and TRUE for an approximate match, multiply, and round to cents with ROUND. Net pay is gross minus deductions. Real tax rules vary, so use your official tables.

Tests & careers· 7 min read

Excel Skills for Payroll Jobs

The core Excel skills for payroll are: calculating gross pay with overtime, rounding money with ROUND, counting working days with NETWORKDAYS for pro-rata pay, totalling by department with SUMIFS, looking up rates with XLOOKUP or VLOOKUP, and checking results with simple reconciliations. Accuracy matters more than speed, so payroll tests often check the cents.

More on projects

  • How to Make a Purchase Order in Excel With Formulas
  • Build a Quotation Template in Excel
  • How to Make a RACI Matrix in Excel With Built-In Checks
  • Build a Recipe Cost Calculator in Excel
  • How to Build a Recruitment Tracker in Excel for Hiring
  • How to Build a Rent Roll in Excel for Rental Properties
All projects articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free