← Back to blog
Time Tracking Guides

How to Track Time in Excel Automatically

September 3, 2026

Flat vector illustration of a spreadsheet with a clock and gear icons for automatic time tracking

Tracking time in Excel can be nearly automatic if you set the formulas up correctly — the spreadsheet totals hours, subtracts breaks, and even splits overtime for you. The catch is Excel's quirk of storing time as a fraction of a day, which is why so many timesheets show the wrong total. This guide shows the formulas that make it work and where Excel's limits begin.

Set up the columns

Create headers: Date, Time In, Time Out, Break (mins), Hours Worked, Regular, Overtime. Format Time In and Time Out as time; format the result columns as Number.

The core formula

To calculate hours worked from clock times, subtract and multiply by 24, then subtract the break:

=(C2-B2)*24-(D2/60)

The *24 is essential — Excel stores 6:00 PM as 0.75 (three-quarters of a day), so multiplying by 24 turns the fraction back into hours. Without it, totals come out tiny and wrong.

Handle overnight shifts

For a shift that crosses midnight, the plain subtraction goes negative. Add a correction:

=(C2-B2+(C2<B2))*24-(D2/60)

The (C2<B2) adds a full day when the clock-out time is "earlier" than clock-in, fixing the wrap-around.

Total and split overtime

Sum the week with =SUM(E2:E8). Then, with the weekly total in E9, split at 40 hours:

  • Regular: =MIN(E9,40)
  • Overtime: =MAX(E9-40,0)

Formatting fixes

  • Result cells must be Number, not Time — otherwise 7.5 hours shows as "7:30 AM."
  • Show two decimals so 7.5 and 7.75 are distinct.
  • Lock formula cells so people can't overwrite them.

Where Excel hits its limits

Formulas do the math, but Excel can't:

  • Capture real clock-ins — times are still typed from memory.
  • Prevent version chaos when copies get emailed around.
  • Provide approvals or an audit trail.
  • Handle complex overtime beyond a simple weekly cap.

Once you're managing multiple people's sheets and re-typing them into payroll, the spreadsheet becomes the bottleneck.

Automatic tracking without the formulas

If you want time totaled automatically but not the formula upkeep, Timesheet Maker captures real clock-ins from any device, handles breaks, overnight shifts, and overtime automatically, and exports straight to payroll — the automation Excel promises without the maintenance or version headaches.

Frequently asked questions

How do I automatically calculate hours in Excel? Use =(TimeOut-TimeIn)*24-(BreakMins/60). The ×24 converts Excel's day-fraction into hours; the break term subtracts unpaid time.

Why does my Excel timesheet show the wrong hours? Usually the missing ×24, or a result cell formatted as Time instead of Number. Both are needed for correct totals.

How do I handle overnight shifts in Excel? Add (TimeOut<TimeIn) inside the formula to add a full day when the shift crosses midnight.

Is Excel good for team time tracking? For a few people, yes. As the team grows, manual entry, version control, and lack of approvals make a dedicated app more reliable.

Automate the math

Set up the formulas, format results as numbers, and Excel totals your hours. To get the automation without the upkeep, try Timesheet Maker free.

Build your timesheet in seconds

Track hours, calculate pay and export a clean PDF or CSV — free, no signup.

Open the timesheet maker