KeyOne — by Keywan Fakhri

Articles · HR

How to Create a Shift Schedule in Excel: Steps, Rules and Template

A good shift schedule makes sure enough people are on site at all times, nobody is permanently disadvantaged and legal rest periods are respected. Here is how to build one in five steps – with formulas you can copy straight into Excel.

by Keywan Fakhri, Industrial Engineer (M.Sc.), Konstanz, Germany · Updated: 28 October 2026

Step 1: Work out the staffing need per shift

Before any names go into the plan, answer one question: how many people does each shift need? Start from opening hours, order volume or expected guests. This gives you the minimum staffing per weekday and shift.

People needed = expected work hours in the shift ÷ shift length in hours

Warehouse example: on Monday 1,200 lines are picked and one person picks 60 lines per hour. That is 20 work hours. With an 8-hour early shift you need 20 ÷ 8 = 2.5, so 3 people.

WeekdayEarly (6am–2pm)Late (2pm–10pm)
Monday32
Tuesday–Thursday22
Friday33
Saturday21

Step 2: Choose the right shift model

ModelTypical useWatch out for
Single shiftOffice, trades, small shopSimple – cover holidays and sickness early
Two shifts (early/late)Restaurants, retail, warehouseAvoid late → early changeovers (rest period)
Three shifts (early/late/night)Production, logistics, careRotate forward: early → late → night
Part-time and peak shiftsLunch rush, weekendsAgree minimum length and fixed times

For rotating systems, rotate forward (clockwise). This automatically leaves longer gaps between shifts and makes it easier for the body to adjust.

Step 3: Build in the legal rules

In Germany the Working Hours Act (Arbeitszeitgesetz, ArbZG) sets the key limits. Other countries have similar rules – check your local law. A plan that breaks them is risky and leads to fatigue and mistakes.

RuleWhat it says (Germany)
Maximum working time8 hours per working day, up to 10 hours if the average over 6 months does not exceed 8 hours
Rest periodat least 11 consecutive hours between two working days (exceptions possible e.g. in hospitality and care)
Breaks30 minutes for more than 6 hours, 45 minutes for more than 9 hours
Sundays and public holidaysgenerally work-free; exceptions e.g. for hospitality, with a substitute day off

Common mistake: a late shift until 10pm followed by an early shift at 6am the next day – that is only 8 hours of rest.

Step 4: Build the plan in Excel

  1. One row per employee, one column per day. Use codes in the cells: E (early), L (late), N (night), V (vacation), S (sick); days off stay empty.
  2. Below the plan, count staffing per day and shift and compare it with the minimum.
  3. To the right of each row, calculate the planned hours for the week.
  4. Use conditional formatting to highlight gaps in red: understaffing, too many hours, rest-period conflicts.
  5. Publish the plan in good time and log changes with a date.

Count staffing (early shift on Monday, employees in rows 5 to 14):

=COUNTIF(C$5:C$14,"E")

Weekly hours for one person with 8-hour shifts:

=COUNTIF(C5:I5,"E")*8+COUNTIF(C5:I5,"L")*8+COUNTIF(C5:I5,"N")*8

Rest-period warning when a late shift is directly followed by an early shift (Monday in column C, Tuesday in D):

=IF(AND(C5="L",D5="E"),"Check rest period","")

Step 5: Share shifts fairly and communicate

  • Rotate weekend and late shifts and keep count over several weeks.
  • Collect requests (e.g. days off) by a fixed deadline before building the plan.
  • Publish the plan two to four weeks ahead if possible; in Germany, on-call work must be announced at least four days in advance.
  • Plan a small stand-by reserve for sickness instead of always calling the same people.

Note: this article is general guidance, not legal advice. Your employment contract, collective agreement and works agreement take precedence.

Free Excel template

The Shift & Leave Planner already includes a weekly roster with minimum staffing per weekday, hours and overtime per employee, staff costs and a leave account – for up to 25 employees, no macros.

Frequently asked questions

How far in advance does a shift schedule have to be published?

German working-time law sets no general deadline. For on-call work, the working hours must be announced at least four days in advance. Many collective and works agreements set their own deadlines; two to four weeks ahead works well in practice.

How much rest is required between two shifts?

In Germany, generally at least 11 consecutive hours. In some sectors such as hospitality or care it can be shortened by up to one hour if this is compensated elsewhere.

Which tool is best for shift planning?

For small teams of up to about 25 people, Excel with counting formulas and conditional formatting is enough. With several sites, time tracking or shift swapping via app, specialised software pays off.