Skip to content

Lesson 39 of 92 · Free Excel Course

Excel

How to Make a Schedule in Excel: Weekly Employee Shift Schedule (Free Template)

Build a weekly work schedule in Excel: shift drop-downs, hours with overnight shifts and breaks, overtime alerts, coverage counts. Free template.

Most "how to make a schedule in Excel" guides stop at a coloured grid. That looks fine until someone asks, "How many hours is Ben working this week?" In this project you'll build a weekly employee shift schedule that answers that question by itself. You pick each shift from a drop-down, and Excel works out the hours (night shifts across midnight included), totals each person's week, turns anyone over 40 hours red, and counts how many people cover each shift every day. At the end you'll print it on one page. It pulls together skills from earlier lessons, and the free workbook has a blank template you can use for your own team.

What you'll build

The finished schedule has four parts, all on one sheet:

  1. The grid: dates across the top, employees down the side, one shift code per cell (M, E, N, D, S or OFF).
  2. Hours worked: the same grid again, but showing each shift's paid hours.
  3. Totals: total hours, overtime hours and a status for each person.
  4. Coverage: how many people are on each shift, each day.

Below it sits a small shift table that defines every code once: its start, end and unpaid break. Change a time there and every total updates. Here's the top of the finished sheet:

I6=SUM(B13:H13)
ABCDEFGHIJK
3MonTueWedThuFriSatSun
4Employee11/3012/112/212/312/412/512/6Total hoursOvertime hoursStatus
5AnaMMMMMOFFOFF40.00.0OK
6BenEEEEEEOFF48.08.0Overtime
7ChloeOFFOFFNNNNN40.00.0OK
8DevDDDOFFDOFFOFF36.00.0OK
9ElenaSSOFFSSMOFF24.00.0OK
10FrankMEOFFEMOFFD41.01.0Overtime
The finished week. Ben and Frank go over 40 hours, so their rows turn red. Ana and Chloe are at exactly 40, which isn't overtime.

Step 1: Put the dates across the top

Type the week's first day once and let formulas do the rest, so next week you only change one cell.

  1. In A1 type Week starting and in B1 type the Monday date, 11/30/2026. In A2 type Overtime after (hours) and in B2 type 40.
  2. In A4 type Employee. In B4 type =$B$1.
  3. In C4 type =B4+1 and press Enter. Drag the fill handle from C4 to H4. Each cell adds one day to the one on its left, so you get 11/30 to 12/6.
  4. To show the dates short, select B4:H4, press Ctrl+1, choose Custom and type m/d.
  5. In B3 type =TEXT(B4,"ddd") and copy it to H3. The "ddd" code returns a short day name (Mon, Tue...); "dddd" would give Monday in full.
  6. Type the names in A5:A10, and Total hours, Overtime hours and Status in I4:K4.

Change B1 to 12/7/2026 and the whole header moves to the next week. Dates are just numbers underneath, which is why +1 works; Dates and times explains it.

Step 2: Set up shifts with start and end times

Rather than typing times into every cell, define each shift once. Below the schedule (A28 onwards) build this table. Type times as 7:00 or 7:00 AM and 23:00 or 11:00 PM; Excel recognises them as times.

F31=ROUND(MOD(D31-C31,1)*24-E31/60,2)
ABCDEF
28CodeShiftStartEndUnpaid break (min)Paid hours
29MMorning7:00 AM3:30 PM308.00
30EEvening3:00 PM11:30 PM308.00
31NNight11:00 PM7:30 AM308.00
32DLong day9:00 AM7:00 PM609.00
33SShort10:00 AM2:00 PM04.00
34OFFDay off00.00
The shift table. The Night shift crosses midnight and still comes out at 8 paid hours.

In F29 type =ROUND(MOD(D29-C29,1)*24-E29/60,2) and copy it down to F34. Here's what each piece does:

  • D29-C29 is end minus start. Excel stores a time as a fraction of a day (noon is 0.5), so 3:30 PM minus 7:00 AM gives 0.354.
  • *24 turns that fraction into hours: 8.5.
  • MOD(...,1) fixes overnight shifts. For the Night shift, 7:30 AM minus 11:00 PM is negative, and Excel shows a negative time as ####. MOD with a divisor of 1 adds a day to a negative result, so −15.5 hours becomes +8.5. For normal shifts it changes nothing, so one formula fits every row.
  • -E29/60 takes off the unpaid break, converting minutes to hours. 8.5 − 0.5 = 8.
  • ROUND(...,2) cleans up tiny rounding leftovers, so five 8-hour shifts are exactly 40, not 40.0000001. That matters for the overtime test.

Want to check a shift by hand? The time calculator gives the hours between any two times.

Step 3: Add shift-code drop-downs

Drop-downs stop typos like "M " or "Eve" that would break the totals.

  1. Select B5:H10.
  2. Go to Data, then Data Validation.
  3. Under Allow, choose List. In Source, select the codes A29:A34 (it becomes =$A$29:$A$34) and click OK.

Now each cell has an arrow; pick the week's shifts. If the codes live on another sheet (the template uses a Lists sheet), the source is =Lists!$A$2:$A$7. On a Mac it's the same Data Validation command; in Excel for the web it's Data, Data Validation too. Drop-down lists covers error messages and lists that grow.

Step 4: Total each person's hours

Now turn codes into hours. In A12 type Hours worked and in B12 type =B$3 (copy to H12) so the day names repeat. Then:

  1. In A13 type =IF(A5="","",A5) to repeat the name (it stays empty for a blank row).
  2. In B13 type =SUMIF($A$29:$A$34,B5,$F$29:$F$34). SUMIF finds B5's code in the table and returns its paid hours. Because every code appears once, it acts as a lookup, and a blank or unknown code simply gives 0 instead of an error. See COUNTIF, SUMIF and AVERAGEIF.
  3. Copy B13 across to H13, then copy A13:H13 down to row 18. The $ signs keep the table fixed while B5 moves.
  4. In I5 type =SUM(B13:H13) and in J5 =MAX(0,I5-$B$2). Copy both down to row 10.

Ben's hours row reads 8, 8, 8, 8, 8, 8, 0, so I6 shows 48.0 and J6 shows 8.0 overtime hours. The Night shift's hours count on the day it starts, so Chloe's Sunday night is in Sunday's column.

Step 5: Flag overtime over 40 hours

Under U.S. federal law, overtime is owed for hours over 40 in a workweek, at least time and a half. Some states have extra rules, so check yours. The schedule flags it two ways.

A status word. In K5 type =IF(A5="","",IF(I5>$B$2,"Overtime","OK")) and copy down. Exactly 40 shows OK, because 40 isn't more than 40.

A red row. Select A5:K10, go to Home, Conditional Formatting, New Rule, choose Use a formula to determine which cells to format and type =$I5>$B$2. Click Format, pick a light red fill and click OK twice. The $ before I locks every cell to the total column, so the whole row lights up. On a Mac, in New Rule set Style to Classic first. In Excel for the web, New Rule opens a side pane instead. Conditional formatting explains formula rules in depth.

Change Ben's Saturday to OFF: his total drops to 40 and the red disappears.

Step 6: Count daily coverage

A schedule can add up perfectly and still leave a shift empty. Count it:

B23=COUNTIF(B$5:B$10,"N")
ABCDEFGHI
20Coverage
21Morning (M)2111210
22Evening (E)1212110
23Night (N)0011111
24People working5545632
25Paid hours37.037.033.036.045.024.017.0229.0
Coverage counts. The yellow zeros are gaps: no night cover Monday or Tuesday, and nobody on mornings or evenings Sunday.
  1. In B21 type =COUNTIF(B$5:B$10,"M"), in B22 the same with "E" and in B23 with "N".
  2. In B24 type =COUNTIFS(B$5:B$10,"<>OFF",B$5:B$10,"<>"). It counts cells that aren't OFF and aren't blank.
  3. In B25 type =SUM(B13:B18) for the day's paid hours. Copy B21:B25 across to H.
  4. In I25 type =SUM(B25:H25): 229, the same as adding up column I, a handy check.
  5. Select B21:H23 and add a rule =B21=0 with a yellow fill, so gaps jump out.

Step 7: Print it on one page

  1. Select A1:K25 and choose Page Layout, Print Area, Set Print Area.
  2. Choose Page Layout, Orientation, Landscape.
  3. Press Ctrl+P. Under Settings, change No Scaling to Fit Sheet on One Page and print or save as PDF.

On a Mac, use Page Setup and set Fit to 1 page wide by 1 tall. In Excel for the web, check the print preview; if it splits across pages, open the file in the desktop app for exact fitting. More in Printing.

Try it yourself

Download the practice workbook. The Your task sheet walks you through it:

  1. On Practice, fill F29:F34 with the paid-hours formula. Check: 8, 8, 8, 9, 4, 0.
  2. Build the dates (B4:H4) and day names (B3:H3).
  3. Fill the hours grid (A13:H18) with SUMIF.
  4. Add total hours, overtime hours and status in I5:K10. Ben 48, Frank 41.
  5. Add the coverage counts in rows 21–25. I25 should be 229.
  6. Use a drop-down to change Ben's Saturday to OFF and watch the red go.
  7. Set the print area and print to one page.

The Answers sheet has the finished schedule, cell for cell. The Blank template sheet is ready for your own team: type the Monday date in B1, up to 10 names, and pick shifts. Its shift times are on the Lists sheet, so edit them there to match your business.

Common mistakes

  • Typing shifts as text like "9-5". Excel can't add text, so totals come out 0. Use codes or real times.
  • Plain subtraction for night shifts. End minus start goes negative across midnight and shows ####. Use MOD(end-start,1).
  • *Forgetting 24. Without it you get 0.33 instead of 8. A time difference is a fraction of a day.
  • Counting 40 as overtime. Use >40, not >=40.
  • Missing $ signs. Without $A$29:$A$34 the table range slides down as you copy and later rows give 0.
  • A rule without $ on the column. =I5>40 only colours one cell per row; =$I5>40 colours the whole row.

What's next

You've built a schedule that does the maths for you, and a template you can reuse every week. The previous lesson, Project: build a budget, used the same mix of formulas and rules for money. Next, Project: dashboard turns a page of numbers into charts and KPI cards on one screen. Or go back to the full Excel course.

Frequently asked questions

How do I calculate hours worked in Excel?

Type the start and end as real times (7:00 AM, 3:30 PM), then subtract and multiply by 24: =(D2-C2)*24 gives 8.5. Excel stores a time as a fraction of a day, so the *24 turns it into hours you can add up and multiply by a pay rate. To check a single shift quickly, try the time calculator.

How do I calculate hours for a night shift that goes past midnight?

Use =MOD(D2-C2,1)*24. For 11:00 PM to 7:30 AM, plain subtraction gives a negative number, which Excel shows as ####. MOD(...,1) adds a day to any negative result, so you get 8.5 hours. It works for normal day shifts too, so you can use one formula for every row.

How do I subtract an unpaid lunch break?

Keep the break in its own column in minutes and take it off at the end: =MOD(D2-C2,1)*24-E2/60. A 30-minute break turns an 8.5-hour shift into 8 paid hours. Wrapping it in ROUND(...,2) stops tiny rounding errors from making 40 hours look like 40.0000001.

How do I highlight overtime over 40 hours in Excel?

Total each person's week in one column (say I5), then select the employee rows, go to Home, Conditional Formatting, New Rule, Use a formula to determine which cells to format, type =$I5>40 and pick a red fill. The $ before I keeps every cell in the row looking at the total, so the whole row turns red. Under U.S. federal law, overtime is hours over 40 in a workweek; some states add their own rules.

How do I print a schedule on one page in Excel?

Select the schedule, choose Page Layout, Print Area, Set Print Area, switch Orientation to Landscape, then in File, Print change the last setting to Fit Sheet on One Page. On a Mac use Page Setup and Fit to 1 page wide by 1 tall. The printing lesson covers headers, margins and PDFs.

Is Excel good enough for employee scheduling?

For a small team with one schedule per week, yes: it's free if you already have Excel (or use Excel for the web), and the template here does hours, overtime and coverage. What it can't do is text staff when shifts change or let them swap shifts themselves. That's when dedicated scheduling apps earn their price.