Create an Excel Timesheet for Work Hours, Breaks, and Pay
Question details
Create a timesheet that records work and break times and calculates total hours and gross 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.
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.
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.
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.
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.
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.
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.

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. 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. 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. Total and format time: Enter =SUM(H2:H15) in H16. Select H2:H16, open Format Cells, and use the custom format [h]:mm.
- 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.

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.




