How to check shift coverage and hours over the cap in Excel

This is not wage advice, and it is not legal advice. The rates are the numbers Lena Cho typed for Harbor Inn for the week of Monday, 03/16/2026. Every hour in the sample is straight time. No overtime premium is calculated.

A schedule grid is easy to read and hard to check. How to make an employee shift schedule in Excel builds the grid and the hours. This page checks it: how many people are on each day, how many Night shifts there are, and who is over the weekly cap.

The shifts and the week

The shift list has a start and an end time. A Night shift runs 11:00 PM to 7:00 AM, so the end is smaller than the start. MOD fixes it:

=MOD(C2-B2,1)*24

Open is 8 to 4 and returns 8. Swing is 3 PM to 11 PM and returns 8. Night returns 8, because MOD turns the negative difference into 8/24 of a day. Desk is 9 AM to 1 PM, which is 4. Put the shift names in A2 through A6 and the hours in D2 through D6, with Off at 0.

The week grid has one row per person and one column per day, Monday in B and Sunday in H.

Staff Mon Tue Wed Thu Fri Sat Sun
Ana Cruz Open Open Open Open Open Off Off
Ben Cole Swing Swing Swing Swing Off Swing Swing
Cara Diaz Night Night Night Off Night Night Night
Drew Ellis Off Off Desk Open Open Open Open

Who is on duty each day

Put the grid in a sheet called Week, with the header in row 1 and the people in rows 2 through 5. COUNTIF counts the cells in a day that are not Off:

=COUNTIF(B2:B5,"<>Off")

Fill it right to H. The days are 3, 3, 4, 3, 3, 3, and 3. Wednesday has four because Drew’s Desk shift is on it. Sunday has three: Ben, Cara, and Drew. Ana is off.

Count one shift across the whole week:

=COUNTIF(B2:H5,"Night")

It returns 6. All six are Cara’s. No one else works a Night, so a missed Night has no cover in this sample.

Hours for one person

The workbook adds seven SUMIFs, one per day. A shorter version, with the Shifts list in Shifts!$A$2:$A$6 and Shifts!$D$2:$D$6:

=SUMPRODUCT(SUMIF(Shifts!$A$2:$A$6,B2:H2,Shifts!$D$2:$D$6))

SUMIF looks up all seven day cells at once, and SUMPRODUCT adds the seven answers. In row 2 it returns 40 for Ana: five Opens of 8 hours. Ben returns 48 for six Swings. Cara returns 48 for six Nights. Drew returns 36, which is a 4-hour Desk and four Opens of 8. The week is 40 + 48 + 48 + 36 = 172.00 hours.

Pay and the cap

With the rates in a column, $18, $16, $17, and $15, pay is the hours times the rate, rounded to the cent:

=ROUND(B2*C2,2)

Ana is $720.00, Ben is $768.00, Cara is $816.00, and Drew is $540.00. They add to $2,844.00. =SUMPRODUCT(B2:B5,C2:C5) returns the same $2,844.00 in one cell, which is a check on the column.

The cap is 40 hours, in a cell you can change. Hours over it are:

=MAX(0,B2-40)

Ana is 0, Ben is 8, Cara is 8, and Drew is 0. =COUNTIF(E2:E5,">0") returns 2 people over. MAX stops a person under the cap from showing a negative number.

Because every hour is straight time here, the $2,844.00 is not what the week would cost if overtime rules apply. The 16 hours over the cap are the hours to look at with your payroll provider, not hours the sheet has priced. For that, see Overtime pay.

The finished file

The shifts, the week grid, the hours, and a dashboard with the Sunday count and the number over the cap are in the Employee Shift Schedule. The sample is the same four people.


Template for this article

Employee Shift Schedule

More from the blog