Skip to content

Guides

Excel Timesheet Formula: How to Calculate Time Worked

HadyPublished 15 min read
Excel timesheet grid with time-in, time-out, break, and hours-worked formula columns

Frequently asked questions about Excel Timesheet Formula

What is the formula for a timesheet in Excel?

Subtract start from end when both cells are formatted as Time: =C2-B2. For payroll decimals, multiply by 24: =(C2-B2)*24. With unpaid break duration in column D, use =(C2-B2-D2)*24 in your hours column—that is the core excel timesheet formula most shift employers use.

How do I calculate total hours worked from time in and time out in Excel?

Put time in in column B and time out in column C (start and end time work the same way), both formatted as Time. In the hours column (for example F2), use =(C2-B2)*24 for decimal payroll hours, or =C2-B2 with [h]:mm for duration. Copy the formula down each shift row, then SUM the column for the week.

How do you calculate hours worked on a timesheet?

For each shift: gross time = end minus start; net paid time = gross minus unpaid breaks. On a timesheet, managers approve those net hours before payroll. A spreadsheet row such as =(C2-B2-D2)*24 automates the math; your handbook still defines rounding and which breaks are unpaid.

How do you calculate hours worked in Excel with a lunch break?

Store lunch as a duration (for example 0:30) in column D and use =(C2-B2-D2)*24 in the hours column—a common timesheet formula with lunch break. If lunch has its own in/out times, subtract break hours the same way you subtract shift hours. Overnight shifts may need =(MOD(C2-B2,1)-D2)*24; see the overnight section in this guide.

How do you calculate working hours in Excel using a 24-hour clock?

Format in/out cells as hh:mm (24-hour) or enter full date-time values. Once cells are true Time values, payroll math is still =(C2-B2)*24 for decimal hours. Avoid mixing 12-hour AM/PM and 24-hour formats in the same column—mixed formats are a common source of half-day errors.

What is the formula for calculating total hours worked?

Per row: =(time out - time in - unpaid break)*24 in decimal form—the same formula to calculate time worked in excel as your daily rows. Per week: =SUM(F2:F8) on the hours column, or SUMIF by employee name. Match the sum to your pay period dates before you export to payroll.

How do you calculate overtime hours in Excel using the IF function?

A simple weekly flag: =IF(SUM(F2:F8)>40,SUM(F2:F8)-40,0) next to the employee total. Daily overtime states need per-day thresholds, not only a 40-hour week. For pay rates and examples, see overtime pay and your counsel’s guidance—not spreadsheet logic alone.

How do you create a timesheet formula in Excel?

Build columns for date, time in, time out, and break; enter =(C2-B2-D2)*24 in the hours column; format times correctly; copy down; add a weekly SUM. You can start from Ordio’s free timesheet Excel template if you want pre-built structure instead of a blank sheet.

What is the formula for an employee timesheet in Excel?

There is no single built-in Excel function named “timesheet”—you combine subtraction, optional MOD for midnight, and SUM for totals. The same row formula works for each employee; put employee ID or name in column A and use SUMIF when one file covers a whole team.

How do you make a simple timesheet in Excel with a formula?

Create one row per shift, use =(C2-B2)*24 for hours (add a break column before you scale to a full crew), and sum the column at the bottom. Validate a few rows with a timesheet calculator, then lock formula cells so only time entry stays editable.

Where can I download a free timesheet template in Excel?

Ordio offers a free timesheet Excel template with formulas for daily rows, break checks, and decimal hours—useful when you want structure without building every column from scratch. This guide explains the formulas behind that template if you need to customize or audit the math.