Calculation Issues

Create an Excel Timesheet for Work Hours, Breaks, and Pay

Emma BrownEmma Brown Nov 22, 2026 868 views

Question details

Create a timesheet that records work and break times and calculates total hours and gross pay.

Create an Excel Timesheet for Work Hours, Breaks, and Pay
Product
Microsoft Excel
Device & OS
not provided
Scenario
Track weekly or biweekly work hours, including lunch and another break, without overtime or leave calculations.
Observed behavior
The desired timesheet subtracts breaks from each shift and calculates total hours and pay before taxes.
Before you start

Gather each shift's start and end times, break times, and hourly pay rate. Decide whether the sheet will cover one week or two weeks.

Solution 1Recommended

Build an Excel timesheet with formulas for breaks and gross pay

Use this layout to calculate daily net hours and weekly or biweekly gross pay.

The formulas below support shifts and breaks that cross midnight. Each shift and break must be shorter than 24 hours, and breaks must fall within the shift.

1
Set up the columns

In a blank Excel workbook, enter Date, Start, End, Lunch Start, Lunch End, Other Break Start, Other Break End, and Net Hours in cells A1 through H1.

2
Enter times and calculate daily hours

Enter a date and shift times in row 2, plus both start and end times for each applicable break. In H2, enter =IF(OR(B2="",C2=""),"",MOD(C2-B2,1)-IF(OR(D2="",E2=""),0,MOD(E2-D2,1))-IF(OR(F2="",G2=""),0,MOD(G2-F2,1))). Copy H2 down through H15.

3
Format and total the hours

Select H2:H16, open Format Cells, and choose Custom with the format [h]:mm. In H16, enter =SUM(H2:H15) to total up to 14 daily entries; use only the rows you need for a weekly sheet.

4
Calculate gross pay

Enter the hourly rate in K1. In K2, enter =H16*24*K1 and format K2 as Currency. Multiplying by 24 converts Excel's time value to decimal hours.

Build an Excel timesheet with formulas for breaks and gross pay
Check break entries: Enter both endpoints for every break. The formula ignores a break if either endpoint is blank. Gross pay does not include taxes, overtime, or leave.
Calculate hours in WPS Spreadsheets

Create the same work and break timesheet in WPS Office

Use WPS Spreadsheets to enter shift and break times, total net hours, and calculate gross pay with the same formulas.

  1. 1. Create the layout: Open WPS Spreadsheets and create a blank workbook. Enter Date, Start, End, Lunch Start, Lunch End, Other Break Start, Other Break End, and Net Hours in A1:H1.
  2. 2. Calculate net hours: Enter shift and break times in row 2. In H2, enter =IF(OR(B2="",C2=""),"",MOD(C2-B2,1)-IF(OR(D2="",E2=""),0,MOD(E2-D2,1))-IF(OR(F2="",G2=""),0,MOD(G2-F2,1))) and copy it down through H15.
  3. 3. Total and format time: Enter =SUM(H2:H15) in H16. Select H2:H16, open Format Cells, and use the custom format [h]:mm.
  4. 4. Calculate pay and save: Enter the hourly rate in K1 and =H16*24*K1 in K2. Format K2 as Currency, then use File > Save As to save the workbook as an XLSX file.
Subtract lunch and other breaks from each shiftTotal weekly or biweekly hours and gross payOpen and save Microsoft Excel XLSX filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

How do I total more than 24 hours in Excel?

Select the total cell, open Format Cells, and choose the custom format [h]:mm. The brackets keep the total hours from resetting after 24.

Can the timesheet handle a shift that ends after midnight?

Yes. The formula uses MOD(End-Start,1) to calculate a shift crossing midnight. Each shift must be shorter than 24 hours.

What if I did not take a lunch or other break?

Leave both the start and end cells for that break blank. The formula subtracts nothing for that break.

Why does the pay formula multiply hours by 24?

Excel stores time as a fraction of a day. Multiplying the total time by 24 converts it to decimal hours before applying the hourly rate.