The whole trick of an Excel timesheet is understanding one fact: Excel stores a time as a fraction of a day, so 12:00 noon is 0.5 and 6:00 PM is 0.75. Subtract two times and you get a fraction; multiply by 24 and you get decimal hours, which is what payroll wants. Every formula below is built on that. If you would rather not build at all, our printable timesheet template already totals weeks in the browser - but if you want a file your workplace owns and reuses, this is the build.
Step 1 - Lay out the columns
Row 1 is your header area: employee name in A1, pay period in a cell to the right. Row 3 holds the column titles, and rows 4 to 10 are Monday to Sunday. The columns:
- A - Day. Monday, Tuesday, and so on, typed once.
- B - Time In. Format as Time (h:mm AM/PM).
- C - Lunch Out and D - Lunch In. Same time format.
- E - Time Out. Same time format.
- F - Total Hours. Format as Number with 2 decimals. This is where the formula lives.
- G - Notes. Plain text, wide. Never skip the notes column.
Row 11 is the week total row. Below it, leave rows for Regular Hours, Overtime Hours, Hourly Rate and Gross Pay - the summary block from step 3.
Step 2 - The daily total formula
In F4, type: =(E4-B4-(D4-C4))*24. Read it as: the full span from in to out, minus the lunch span, converted from a day-fraction into hours. Copy it down through F10. Now the defensive version, which you should use instead from day one: =IF(B4="","",MOD(E4-B4-(D4-C4),1)*24). The IF keeps blank days blank instead of showing zeros, and MOD rescues overnight shifts - when someone clocks out at 2:00 AM, the raw subtraction goes negative and MOD rolls it around the clock into the true span.
Test your sheet with a day you can check by eye before trusting it: in 8:00 AM, lunch 12:30 to 1:00 PM, out 5:30 PM must return 9.00. If it returns 0.38, you forgot the x24. If it returns 9.50, the lunch subtraction is missing. If it returns a date in 1900, the cell format is wrong - set it back to Number.
Step 3 - Week total, overtime split and pay
In F11: =SUM(F4:F10). Then the summary block. Regular hours: =MIN(F11,40). Overtime hours: =MAX(F11-40,0). Put the hourly rate in its own labeled cell - say B14 - and gross pay becomes: =Regular*B14 + Overtime*B14*1.5, pointing at your regular and overtime cells. Here is the summary filled in for one real week:
| Summary Line | Formula | Example Value |
|---|---|---|
| Week total | =SUM(F4:F10) | 43.33 |
| Regular hours | =MIN(total, 40) | 40.00 |
| Overtime hours | =MAX(total-40, 0) | 3.33 |
| Hourly rate | (typed in) | $22.00 |
| Gross pay | =40x22 + 3.33x22x1.5 | $989.89 |
Check the pay line by hand once: 40 x $22 is $880, and 3.33 overtime hours at $33 is $109.89, so $989.89 is right. The day your template's example matches your own pencil is the day you can trust it with a real payroll.
Step 4 - Protect it and reuse it
Save the blank, working file as an Excel Template (.xltx) so each week opens as a fresh copy. Then protect the formula cells: select columns B to E (the typing area), Format Cells, Protection, uncheck Locked; then Review, Protect Sheet. Now anyone can enter times but nobody can fat-finger a formula away - the single most common way home-made timesheets die. Save completed weeks as "Name - week ending YYYY-MM-DD" in one folder per employee. When a total is ever questioned, the printable timesheet template tool or the homepage calculator will reproduce any day's figure independently, which settles the question without reopening the file's history.
Common formula errors and how to spot them
Four failures account for nearly every broken home-made timesheet. The total shows a date in January 1900. The formula worked, but the cell is formatted as a date - set it to Number and the "date" becomes the decimal hours you wanted. The total is negative or shows ####. A negative day-fraction usually means the out time is earlier than the in time: either a genuine overnight shift (fix it with the MOD version of the formula) or a punch typed into the wrong row. One day is wildly wrong while others are fine. Someone typed "8.5" or "8am" as text into a punch cell; text does not subtract, and Excel often answers with a quiet zero or an error two cells away from the real problem. Re-type the entry as a proper time, like 8:30 AM. The week total is right but overtime looks off by exactly the lunch amount. The lunch subtraction has been applied twice - once in the daily formula and once in someone's head when typing the day total. Pick one place for lunch to live: inside the daily formula, nowhere else.
The habit that catches all four: keep one test row at the bottom of your master template with known times and a known answer - 8:00 AM in, 12:30 to 1:00 lunch, 5:30 PM out, answer 9.00. If the test row ever stops saying 9.00, a formula has been damaged, and you will know before payroll does.
Frequently asked questions
Why does my Excel timesheet show 0.35 instead of 8:24?
Because Excel stores times as fractions of a day: 8 hours 24 minutes is 0.35 of a day. Either format the cell as [h]:mm to see it as a duration, or multiply by 24 to turn it into decimal hours - 0.35 x 24 = 8.4. Most timesheets multiply by 24, because payroll wants decimal hours anyway.
How do I handle a shift that runs past midnight?
Wrap the subtraction in MOD: =MOD(E2-B2,1) gives the correct span even when the out time is smaller than the in time, because MOD rolls the negative result around the 24-hour clock. Apply the same treatment to the full daily formula so overnight rows behave like normal rows.
Should I enter times as 8:30 or 8.5?
Enter real clock times - 8:30 AM, 5:15 PM - in the punch columns, and let the formula produce decimal hours in the total column. Typing 8.5 into a punch cell destroys the actual record and makes lunch calculations impossible. Punches are facts; decimals are arithmetic. Keep them in separate columns.
How do I stop people breaking the formulas?
Unlock only the input cells (the punch columns), then protect the sheet with a password: select the input cells, Format Cells, Protection, uncheck Locked, then Review, Protect Sheet. Totals, overtime and pay cells become untouchable while the daily entries stay editable.
Can the same Excel template handle biweekly periods?
Yes - build two weekly blocks, each with its own total, regular and overtime formulas, then a period summary that adds the two regular figures and the two overtime figures separately. Never write one overtime formula over 14 days: overtime is weekly, and a single 80-hour formula is the most expensive mistake in timesheet design.
Johnson Ramzan builds and maintains every calculator on Time Calculator Tools himself, and he tests each one against worked examples he has done by hand before it is allowed near a reader. His guides follow US Department of Labor guidance on hours worked, overtime and rounding, and he writes them the way he would want a payslip explained to him: plain English, real numbers, and no step skipped. When a reader writes in with a shift pattern the tools handle badly, fixing it goes to the top of his list.
Last updated: November 18, 2026
Related guides
How to Make a Timesheet Template in Google Sheets
The same layout in the cloud - shared with a link, saved automatically, with the same formulas.
Read the guideHow to Make a Timesheet Template in Word
When you need a printable form instead of live formulas, Word is the right build. Step by step here.
Read the guideTimesheet Templates for Freelancers and Contractors
Add client, project and rate columns to this build and the sheet starts drafting your invoices.
Read the guideTimesheet Templates With Overtime Fields
Why the overtime split deserves its own fields, and how different templates handle the 40-hour line.
Read the guide