You can build a working time sheet in Excel in about ten minutes: set up columns for date, start, end, breaks and total hours, enter a formula that subtracts start from end and subtracts break time, then format the total as hours. No add-ins or templates are required — a blank workbook is enough. The steps below are for Excel on Windows and Mac desktop; Excel for the web works the same way for the formulas, though some formatting options are reduced.

What You'll Need

  • Excel for Microsoft 365, Excel 2021 or 2019 (desktop or web). Older versions work but may label ribbon tabs slightly differently.
  • A blank workbook, or an existing one where you want the time sheet.
  • Your start time, end time and unpaid break length for each day — or a sample week to test with.

Step-by-Step

  1. Open a blank workbook and click cell A1. Type Date and press Enter.
  2. Add the column headers. In B1 type Start, C1 End, D1 Break (min), E1 Total Hours. Press Tab after each entry to move right, or Enter to move down.
  3. Enter your first row of data. In A2 type a date such as 1/6/2025. In B2 type your start time as 9:00 AM. In C2 type your end time as 5:00 PM. In D2 type the unpaid break in minutes, for example 30.
  4. Write the total-hours formula. Click E2 and type =(C2-B2-D2/1440)*24 then press Enter. This subtracts start from end, converts the break minutes to a fraction of a day (1440 minutes = 24 hours), and multiplies by 24 to show decimal hours. A 9:00 AM to 5:00 PM day with a 30-minute break returns 7.5.
  5. Format the result. Select E2, right-click and choose Format Cells, pick Number and set two decimal places. Click OK. If you prefer hours and minutes instead of decimals, use the formula =C2-B2-D2/1440 and format the cell as Time with the h:mm type — but note that totals over 24 hours need the custom format [h]:mm to display correctly.
  6. Copy the formulas down. Click E2, drag the small square at the bottom-right corner (the fill handle) down through E8 for a seven-day week. Excel adjusts the row references automatically.
  7. Add a weekly total. In E9 type =SUM(E2:E8) and press Enter. Label A9 Week Total so the number is clear.
  8. Check for overnight shifts. If a shift ends after midnight, the simple subtraction gives a negative number. Use =((C2-B2)+(C2<B2))-D2/1440 and multiply by 24 for decimal hours, or format as [h]:mm. The +(C2<B2) part adds a day when the end time is earlier than the start time.
  9. Protect the formulas. Select the formula cells, right-click, choose Format Cells and unlock them, then use Review > Protect Sheet to lock the rest. This stops accidental overwrites. Labels in the Review tab can differ slightly by Excel version, so look for the Protect Sheet button if the tab name is not obvious.
  10. Save the workbook with a clear name such as Time Sheet – Your Name – Month. Save a copy for each pay period rather than editing one file forever, so past weeks stay intact.

Common Mistakes

  • Typing times as text. If Excel does not recognise 9am or 17:00, it stores the entry as text and the formula returns an error. Enter times with a space before AM/PM or use 24-hour format, and check that the cell aligns right — numbers align right, text aligns left.
  • Forgetting the break. The break column is easy to leave blank. A blank cell counts as zero, which overstates hours. Enter 0 explicitly if there was no break.
  • Multiplying by 24 twice. If you format the result as Time and also multiply by 24, you get a tiny fraction. Use decimal hours with the *24 formula, or time format without it — not both.
  • Negative totals on overnight shifts. The plain subtraction fails when the end time is before the start time; use the overnight formula above.
  • Dragging the fill handle without checking. Copying a formula down is safe, but copying a total row into the data rows can create circular references. Verify the first and last rows after filling.

Tips

  • Use Data > Data Validation on the time columns to restrict entries to times, which catches typos before they break formulas.
  • Add a Notes column for overtime, travel or unpaid lunch details so the sheet explains itself later.
  • Freeze the header row with View > Freeze Panes > Freeze Top Row so labels stay visible as you scroll.
  • Keep one sheet per pay period and a summary sheet that links to each, rather than one giant sheet.
  • Round only at the end. Rounding each day can drift from the true total by several minutes over a week.

Troubleshooting

  • The total shows a date or a strange number. The cell is formatted as Date or General. Format it as Number with two decimals, or as Time with [h]:mm for a running total.
  • #VALUE! appears. One of the time cells contains text. Retype the time, or use Data > Text to Columns to convert it.
  • The total is negative. Either the end time is earlier than the start (use the overnight formula) or the break is larger than the shift. Check both.
  • Totals do not add up. Look for hidden rows or a SUM range that misses the last row. Click the total cell and check the range in the formula bar.
  • Times shift when you reopen the file. The workbook may be set to a different time system. Check File > Options > Advanced and confirm the date system matches your region; labels vary by version.

Frequently Asked Questions

Can I use a built-in Excel template instead?

Yes. Excel offers time sheet templates through File > New and the template search. They are convenient, but check that the formulas match your break and overtime rules before relying on them.

How do I show hours and minutes instead of decimals?

Use =C2-B2-D2/1440 and format the cell as Time with the custom format [h]:mm. The square brackets keep totals above 24 hours from resetting to zero.

Why does my formula give 0.31 instead of 7.5?

You are seeing a fraction of a day. Multiply by 24 to convert to decimal hours, or format the cell as Time.

Can I track overtime automatically?

Yes, with an extra column: =MAX(0,E2-8) gives hours beyond eight in a day. Adjust the 8 to your threshold.

Does this work in Excel for the web?

The formulas and number formatting work. Some ribbon options and protection features are reduced, so build the sheet in the desktop app if you need them.

How do I stop others from changing the formulas?

Unlock the formula cells, then use Review > Protect Sheet. Keep a copy of the password; a protected sheet without it can only be changed by restoring a backup.