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.

Week starting Monday, January 4, 2027
A · Employee IDB · DateC · Clock inD · Clock outE · Break minutesF · Decimal hours
AveryJan 49:00 AM5:30 PM308.00
AveryJan 79:45 PM6:15 AM308.00
JordanJan 88:30 AM5:00 PM457.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

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.