Timesheet Calculator: How to Add Up Hours and Overtime in Excel

A timesheet calculator in Excel works once you accept one fact: Excel stores a time as a fraction of a day. The shift from 09:00 to 17:30 is stored as 0.3646, not as 8.5. Subtract start from end, subtract the unpaid break, convert the result to decimal hours, and compare the total against your overtime threshold. The rest of this article shows how to build that in a repeatable way, where it goes wrong, and when a spreadsheet stops being the right tool.

What a timesheet calculator has to do

A working timesheet calculator takes raw start and finish times, removes unpaid breaks, produces a worked total for each day and each week, separates regular hours from overtime, and applies a pay rate if you need pay figures. It should also handle overnight shifts and blank rows without producing errors.

Keep the outputs separate from the inputs. Staff or supervisors enter start, end and break times. Everything else is calculated. This separation makes the sheet easier to audit and reduces the chance that someone overwrites a formula.

Inputs and outputs

ColumnContentTypeEntered or calculated
ADateDateEntered
BStart timeTime (24-hour)Entered
CEnd timeTime (24-hour)Entered
DUnpaid breakTime (hh:mm)Entered
EWorked timeTime (h:mm)Calculated
FWorked hours, decimalNumberCalculated
GDaily overtime hoursNumberCalculated
Clockbay Timesheet and PTO Tracker

Skip the setup

Clockbay Timesheet and PTO Tracker

Hours, overtime and time off for a small team, with the totals worked out for you every pay period.

See it on Taskdale →

How Excel handles time, and why sums go wrong

Most timesheet errors come from misunderstanding how Excel represents time. Once you know the rules, the formulas are straightforward.

Time is a fraction of a day

Excel treats one full day as the number 1. Noon is 0.5, 06:00 is 0.25, and 09:00 is 0.375. When you subtract one time from another, you get a fraction of a day. To turn that into hours, multiply by 24. A result of 0.3333 multiplied by 24 gives 8 hours.

This is why a formula such as =C2-B2 returns a correct-looking time but a useless number if you try to multiply it by a pay rate without converting it first.

Totals over 24 hours need the [h]:mm format

Format a cell as h:mm and Excel wraps the display at 24 hours. A week of 41 hours and 15 minutes shows as 17:15, which is wrong and dangerous if someone reads it. Use the custom format [h]:mm instead. The square brackets tell Excel to keep counting past 24. A cell formatted this way displays 41:15 for the same total.

Apply [h]:mm to any cell that holds a summed time. Keep h:mm for individual shifts, which never exceed 24 hours.

Overnight shifts produce negative times

If a shift starts at 22:00 and ends at 06:00, the simple subtraction 06:00 - 22:00 is negative. Excel shows this as a row of hash marks or an error, depending on the version. The fix is to use MOD, which returns the remainder after division. MOD(C2-B2,1) adds one full day to any negative result, so an overnight shift returns the correct eight hours.

Build the calculator step by step

The following sequence builds a calculator for one employee on a weekly sheet. Copy the layout for each employee or create a separate tab per person.

  1. SOP 1.1: Set up the input columns. Create the headers in row 1 as shown in the table above. Start the data in row 2. Freeze row 1 so the headers stay visible while scrolling.

  2. SOP 1.2: Enter times in 24-hour format. Type times with a colon, such as 09:00 or 17:30. Avoid typing 0930 or 9.30, because Excel may not read these as times, particularly in locales where the full stop is a decimal separator.

  3. SOP 1.3: Calculate worked time for each shift. In E2, enter:

    =IF(OR(B2="",C2=""),"",MOD(C2-B2,1)-D2)

    The IF clause returns a blank for empty rows, so unused lines do not show errors or zeros. MOD handles overnight shifts. Subtracting the break in D2 gives the net worked time. Format E2 as h:mm.

  4. SOP 1.4: Convert to decimal hours. In F2, enter:

    =IF(E2="","",ROUND(E2*24,2))

    Decimal hours are easier to multiply by a pay rate. Rounding to two decimal places keeps the figure readable without distorting the total in any meaningful way. If your policy requires exact minutes, remove the ROUND function and format the cell as a number with two decimal places.

  5. SOP 1.5: Calculate daily overtime if your rules require it. In G2, enter the threshold for a daily rule. For an eight-hour threshold:

    =IF(F2="","",MAX(0,F2-8))

    MAX returns zero when a shift is under eight hours, so the cell never goes negative.

  6. SOP 1.6: Add the weekly summary. Below the rows, create these totals:

    • Total worked, displayed as time: =SUM(E2:E8), formatted [h]:mm
    • Total worked, decimal: =SUM(F2:F8)
    • Regular hours: =MIN(SUM(F2:F8),40)
    • Weekly overtime: =MAX(0,SUM(F2:F8)-40)

    Change 40 to match your contract or the threshold that applies in your location.

  7. SOP 1.7: Calculate pay. With a rate of £16.00 per hour and overtime at time and a half:

    =regular_hours*16 + overtime_hours*16*1.5

    Put the rate in its own labelled cell and reference it, so a change in rate needs one edit rather than a search through every formula.

Choosing between daily, weekly or combined overtime rules

The most important design decision is which overtime rule you apply. Get this wrong and the sheet will be internally consistent but wrong for the people it pays.

Daily overtime counts hours above a set number on each day. Weekly overtime counts hours above a set total across the week. Some arrangements use both, and the risk there is counting the same hour twice.

MethodHow it counts overtimeWorks well forMain risk
Daily onlyHours above a daily limit, for example 8Shift work with fixed daily patternsMisses weeks with many moderate days
Weekly onlyHours above a weekly limit, for example 40Salaried or flexible-hours staff, most office rolesLong days may not trigger overtime if the week is short
CombinedDaily overtime first, then weekly on the remaining hoursContracts with both rulesDouble counting if the second calculation includes daily overtime

For combined rules, calculate weekly overtime on regular hours only. A simple way is to take the weekly total, subtract the daily overtime already recorded, and then apply the weekly threshold to the remainder. Build this as a separate line so the logic is visible to anyone who checks the sheet.

The rule that applies depends on the contract, the sector and the jurisdiction. In the United States, federal law sets a weekly threshold of 40 hours for non-exempt employees, and some states add daily rules. In the United Kingdom, there is no statutory right to overtime pay as such. Overtime rates are set by contract, while the Working Time Regulations 1998 limit average weekly working time, and the National Minimum Wage applies to every hour worked. Check the terms of employment and current official guidance before you fix the thresholds in your sheet, or ask an employment adviser to confirm them.

Rounding and break deductions

Rounding and breaks change pay, so they belong in the design rather than in a footnote.

Deducting unpaid breaks

Store breaks as durations, not as clock times. A 30-minute break is entered as 00:30. The worked-time formula in SOP 1.3 subtracts it directly. Keep a separate rule for paid breaks: if a break is paid, do not deduct it at all.

Some organisations deduct a fixed break automatically when a shift exceeds a set length, for example six hours. Build that as a condition:

=IF(MOD(C2-B2,1)>6/24, 0.5/24, 0)

Enter this in a helper column and reference it in the break deduction. Test the condition with a shift of exactly six hours to confirm it behaves as your policy describes.

Rounding to quarter hours

Some employers round worked time to the nearest quarter hour. Excel’s MROUND function does this:

=MROUND(E2,TIME(0,15,0))

Round the worked total, not the start and finish times separately. Rounding both ends can produce a shift that is longer or shorter than the real one by a quarter hour in either direction, and the errors do not always cancel.

Rounding that consistently favours the employer can leave a worker paid below the National Minimum Wage for the hours they actually worked. Test any rounding rule against the minimum wage for the hours it produces, and keep records of the actual times so the rule can be reviewed.

ShiftHarbor Shift Schedule

Ready-made template

ShiftHarbor Shift Schedule

Build the weekly staff rota, spot overtime early and see labour cost per shift.

See it on Taskdale →

Excel, Google Sheets or a dedicated tool

Excel is one option among several. The right choice depends on who enters the data, how many people are involved, and whether pay is calculated from the sheet or exported to a payroll system.

OptionTypical costStrengthsTrade-offs
Microsoft ExcelIncluded in some Microsoft 365 plans, or a one-off licence, depending on versionFull control of formulas, familiar to most finance teams, works offlineManual entry, limited audit trail, version control depends on file handling
Google SheetsFree with a Google account, paid tiers for organisationsShared editing, version history, the same core functions as ExcelPerformance slows with very large files, some formatting differs, data sits in a cloud service
Dedicated time-tracking softwareUsually priced per user per month, so cost rises with headcountClock-in and clock-out, approvals, audit logs, payroll exportsLess control over calculation logic, ongoing subscription, vendor dependency
Payroll system with timesheetsOften bundled with payroll, priced by employee or by pay runCalculates tax and deductions, reduces duplicate entryOvertime rules may need configuration, changes can be slow to implement

For a team of fewer than ten people with simple rules, a single shared spreadsheet is often enough. For larger teams with multiple sites, shift patterns and approval steps, a dedicated tool usually costs less in supervisor time than the spreadsheet costs in corrections.

Where personal data is involved, such as names, pay and working patterns, handle the file as employee data. Restrict who can open it, keep it in an approved location, and check that any cloud service you use meets your obligations under UK GDPR or the rules that apply where you operate.

Worked example: one employee, one week

This example uses a five-day week with a 40-hour weekly threshold and a rate of £16.00 per hour. Overtime is paid at 1.5 times the rate for hours above 40. There is no daily rule.

The employee records these shifts.

DayStartEndUnpaid breakWorked (h:mm)Decimal
Monday09:0017:300:308:008.00
Tuesday08:3017:300:458:158.25
Wednesday09:0018:000:308:308.50
Thursday09:0017:000:307:307.50
Friday09:0019:001:009:009.00

Applying SOP 1.3 to Monday gives MOD(17:30-09:00,1)-0:30, which returns 8:00. The same formula applied to the other rows produces the worked column above.

The weekly summary is then:

  • Total worked, displayed with [h]:mm: 41:15
  • Total worked, decimal: 41.25
  • Regular hours: MIN(41.25,40) = 40.00
  • Overtime hours: MAX(0,41.25-40) = 1.25

The pay calculation is:

  • Regular pay: 40.00 × £16.00 = £640.00
  • Overtime pay: 1.25 × £16.00 × 1.5 = £30.00
  • Gross for the week: £670.00

Check the result against the original shifts. Five shifts totalling 41 hours and 15 minutes should produce 41.25 decimal hours. If the total does not match, the most likely cause is a break entered as a decimal rather than a duration, such as 0.5 instead of 0:30. In a cell formatted as time, 0.5 is read as twelve hours, which makes the worked figure obviously wrong and easy to spot.

When a spreadsheet stops being the right tool

A timesheet calculator in Excel is a sound solution at small scale. It stops being sound when the workload exceeds what one person can check by hand.

Consider a change of tool if any of these apply:

  • More than about twenty people submit timesheets each pay period.
  • Several supervisors approve hours, and approvals must be recorded.
  • Shift patterns change often enough that the formulas need editing every month.
  • Payroll is entered by hand from the sheet, creating a second copy of the same data.
  • A recalculation error has already reached an employee’s pay once.

Before switching, keep the sheet as a reference. Its formulas document the rules the organisation actually applied, which the new system must reproduce. Run the old and new methods side by side for one full pay period and reconcile every difference before going live.

Checklist before you rely on the calculator

  • Times are entered in 24-hour format with a colon, and data validation rejects text.
  • Worked time uses MOD(end-start,1)-break, so overnight shifts calculate correctly.
  • Totals over 24 hours use the [h]:mm format.
  • Pay uses decimal hours, not time values.
  • Thresholds and rates sit in labelled cells, not inside formulas.
  • Daily and weekly overtime do not count the same hour twice.
  • Rounding rules have been tested against the minimum wage for the hours they produce.
  • Blank rows return blanks, not errors.
  • Calculated columns are protected.
  • A check total matches the sum of the daily entries.
  • The rules have been confirmed against the employment contract and current official guidance.
Shiftkind Volunteer Hours Tracker

Get the finished file

Shiftkind Volunteer Hours Tracker

Volunteer schedules and hours logs, with totals per person worked out for you.

See it on Taskdale →

Scroll to Top