Before the formulas, one fact explains every weird result you will ever see in a time spreadsheet: Excel does not store 8:00 AM as words. It stores it as a fraction of a day - 0.3333 - because a day is 1.0 and eight hours is a third of it. Every formula below is just arithmetic on those fractions, and every trap in this guide comes from forgetting that the fraction is what the cell really holds.
Lay out the sheet
Use one row per day and these columns: A for the date, B for time in, C for lunch out, D for lunch in, E for time out, F for the day total, and G for the day total in decimal. Put headers in row 1 and your first day in row 2. Type times in a form Excel recognizes, such as 8:00 AM or 17:30, and it will store them as time values rather than text. If a time you typed left-aligns in the cell, Excel took it as text and the formulas will fail on that row - retype it until it right-aligns.
Give the total column the elapsed-time format from the start: select column F, open Format Cells, choose Custom, and enter [h]:mm. The square brackets matter. Without them, any total past 24 hours wraps around, and a 40-hour week cheerfully displays as 16:00.
The formulas that do the work
- Day total: in F2 enter =(E2-B2)-(D2-C2). In words: the full span from in to out, minus the lunch span. For the overnight version, use =MOD(E2-B2,1)-MOD(D2-C2,1) so a shift crossing midnight still works.
- Decimal day total: in G2 enter =F2*24 and format as a number with two decimals. That converts the fraction of a day into the decimal hours payroll wants: 8 hours 30 minutes becomes 8.50.
- Week total: below the last day, =SUM(F2:F6) for a five-day week, formatted [h]:mm, and =SUM(G2:G6) beside it for the decimal total.
- Overtime split: with the decimal week total in G7, regular hours are =MIN(G7,40) and overtime hours are =MAX(0,G7-40). That split follows the federal weekly rule and is the pair of numbers payroll actually needs.
Fill the formulas down once and the sheet is reusable forever: each week, clear the typed times, keep the formulas, and type the new week in. Lock the formula cells if other people use the file, because one overwritten formula quietly turns that row's total into whatever someone typed over it.
A filled example
Here is the layout working on a real week - 8:00 AM starts, 30-minute lunches, one late finish. The day total column is what the F formula returns, and the decimal column is what you would hand to payroll.
| Day | In | Lunch | Out | Total | Decimal |
|---|---|---|---|---|---|
| Monday | 8:00 AM | 30 min | 4:30 PM | 8:00 | 8.00 |
| Tuesday | 8:00 AM | 30 min | 4:30 PM | 8:00 | 8.00 |
| Wednesday | 8:00 AM | 30 min | 5:30 PM | 9:00 | 9.00 |
| Thursday | 8:00 AM | 30 min | 4:30 PM | 8:00 | 8.00 |
| Friday | 8:00 AM | 30 min | 3:30 PM | 7:00 | 7.00 |
| Week | 40:00 | 40.00 | |||
Check Wednesday by hand: 8:00 AM to 5:30 PM is 9 hours 30 minutes, minus the half-hour lunch is exactly 9 hours. The week lands on exactly 40 hours, so the overtime formulas return 40 regular and 0 overtime. If Wednesday had run an hour later, the split would show 40 and 1, and that single overtime hour is the one people most often lose in a hand-added sheet. Our guide on converting timesheet hours to decimal goes deeper on the payroll side of that last column.
The three traps that break home-made timesheets
First, the hash symbols. A row of #### usually means the result went negative - an out time earlier than the in time, which happens with text-formatted times or an overnight shift handled by the plain formula. The MOD version above fixes the overnight case. Second, the 24-hour wrap, fixed by the [h]:mm format. Third, and most subtle, typing totals by hand "just this once" into a formula cell. The sheet now holds a typed number that will never update, and next week's copy of the file inherits the error.
A quick sanity check catches all three: pick one day a week and work it out by hand, or run the same week through our time sheet calculator and compare totals. If the spreadsheet and the calculator agree, the formulas are doing their job.
When the spreadsheet is the wrong tool
Excel is excellent for a personal record or a small team's shared file, and poor at one thing: being in your pocket at the moment you clock out. Most people end up with a hybrid - times noted on a phone during the week, totaled later. That is a reasonable workflow, and it is exactly what the time sheet calculator is built for: punch in the week's times, get day totals, the week total, decimal hours and an overtime split without building or maintaining a file. The homepage calculator covers quick one-off sums, and the guides cover the rules behind the numbers.
Frequently asked questions
Why does Excel show 0.33 instead of 8 hours?
Excel stores times as fractions of a day, so 8 hours is held as 0.3333. If the cell is formatted as a plain number you see the fraction. Format the cell as a time, or multiply by 24 and format as a number when you want decimal hours for payroll.
How do I stop my weekly total resetting after 24 hours?
Use the elapsed-time format with square brackets: [h]:mm. A normal h:mm format wraps back to zero every 24 hours, so a 40-hour week displays as 16:00. The bracket format lets the hours run past 24 and shows the true total.
What formula handles an overnight shift?
Wrap the subtraction in MOD: =MOD(finish-start,1). MOD returns the positive remainder, so a shift from 10:00 PM to 6:00 AM correctly gives 8 hours instead of a negative value or a row of hash symbols.
How do I convert the totals to decimal hours for payroll?
Multiply the time value by 24 and format the result as a number with two decimal places. An 8 hour 30 minute day held as a time becomes 8.50, which is the format most payroll systems import.
Can I use the same timesheet layout in Google Sheets?
Yes. Sheets uses the same time storage and the same core formulas - subtraction for spans, MOD for overnight shifts, SUM for the week, and the [h]:mm style duration format (found under Format, Number, Custom). The file in this guide can be uploaded and used as-is.
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: October 31, 2026
Related guides
How to Convert Timesheet Hours to Decimal
The last step before payroll: turning hours and minutes into the decimal figures payment systems actually use.
Read the guideHow to Add Up Hours and Minutes on a Timesheet
The hand method behind the formulas - carry the minutes, check the total two ways, never lose an hour to arithmetic.
Read the guideHow to Calculate Timesheet Hours for 2 Weeks
Two-week periods have one golden rule. Why each week totals separately, and what it does to overtime.
Read the guideHow to Total a Full Month on a Monthly Timesheet
Monthly sheets add their own traps: weeks that straddle two months and totals that run far past 24 hours.
Read the guide