How to calculate time cards in Excel
Avery works until 6:15 on Friday morning. Leaving those hours out would cut Avery's weekly total in half. This example shows how to count the shift, subtract lunch, and check each employee's total before you send the sheet on.
Enter one row per shift
Use a real date in column B, Excel times in C and D, and unpaid break minutes as a number in E. Column F is the result you'll calculate.
| A · Employee ID | B · Date | C · Clock in | D · Clock out | E · Break minutes | F · Decimal hours |
|---|---|---|---|---|---|
| Avery | Jan 4 | 9:00 AM | 5:30 PM | 30 | 8.00 |
| Avery | Jan 7 | 9:45 PM | 6:15 AM | 30 | 8.00 |
| Jordan | Jan 8 | 8:30 AM | 5:00 PM | 45 | 7.75 |
Calculate hours after breaks
Enter this formula in F2, format the cell as Number with two decimal places, and fill it down.
=IF(OR(C2="",D2=""),"",24*MOD(D2-C2,1)-E2/60)
Excel stores clock times as fractions of a day. For Avery's night shift, MOD carries the clock past midnight, giving 8½ hours. Subtracting 30 minutes leaves 8.00. Jordan's 7 hours 45 minutes becomes 7.75 in decimal hours.
The formula assumes valid clock times less than 24 hours apart. Equal times can mean a missing punch or a full day. Confirm them against the original record. Check the dates on any row where clock-out precedes clock-in, and investigate a negative result before adding it to a total.
Check the weekly total for each person
For a sheet containing only this week, type Avery in H2 and enter =SUMIF(A2:A4,H2,F2:F4) in I2. Repeat for Jordan. Avery has 16.00 hours, Jordan has 7.75, and the team has 23.75.
Check these three shifts in the calculator →
When a total looks plausible but is wrong
- A missing clock-out. A blank result drops out of SUMIF. Resolve blank cells before treating the weekly total as complete.
- Two punches cover the same time. Adding another Jordan shift from 4:30 to 5:30 PM on Friday makes the sheet count 30 minutes twice. The calculator flags both rows for you to check.
- A night shift crosses the week boundary. With a Monday week start, Sunday 11 PM to Monday 2 AM and an unpaid break from 11:30 PM to 12:30 AM gives 0.50 hours in the old week and 1.50 in the new one. Supply the break start in the calculator to split it correctly. A sum grouped only by the clock-in date puts all two hours in Sunday’s week.
These calculations use the clock times entered. Check daylight-saving transitions against dated time records with their time zones.
Download a two-week Excel time card with the formulas filled in, or get the blank team schedule to check multiple employees together.