Staff and shifts → weekly roster, XLSX and PDF

Shift Schedule Maker

List your staff with roles, weekly hour limits and availability, say which shifts each day needs, and let the planner fill the week. It respects roles, availability, overlaps, a minimum rest between shifts and hour limits. Adjust any shift by hand, see conflicts and hours per person, and download the roster as XLSX or PDF.

Staff

Roles split by semicolons. Availability like Mon-Fri 09:00-17:00; Sat 10:00-14:00; Sun off. Blank means always free.

Drop a staff CSV or XLSX to replace the table

columns: name, roles, max_hours, availability

Shifts needed

Days like Mon-Fri or Sat,Sun. A shift that ends before it starts runs overnight.

0 staff, 0 shifts to cover

Roster

Add staff and shifts, then press Fill the roster.

The week appears here.

Shift Schedule Maker

Operator: Abdulla Al Fahad. How tools are built and checked

Next week's rota starts as a pile of messages: someone cannot do Mondays, someone else has a second job on weekday mornings, two people can close and nobody wants to. Turning that into a roster by hand is a puzzle where fixing one gap opens another.

This tool takes the pile in a structured form. List each person with their roles, weekly hour limit and availability, and say what each day needs. It fills the week and tells you what it could not fill.

You then change any shift with a menu and watch the rules re-check, and export the result as a spreadsheet and a printable PDF. It enforces only what you enter, so legal limits on daily hours or breaks remain your job to check.

Key features

  • Roles, availability windows, weekly hour limits and a minimum rest between shifts
  • Auto-fill that handles the hardest-to-staff shifts first and balances hours
  • One-step repair for open shifts
  • Manual edits with an issues list and hours against each person's limit
  • XLSX with live hours formulas, and a landscape PDF
  • Overlap and rest checks that wrap from Sunday night into Monday morning
  • Staff and shift tables remembered in this browser; staff can be loaded from CSV or XLSX

Availability syntax, the rules checked and how shifts are assigned

A week runs Monday to Sunday. Staff have a name, roles separated by semicolons, a maximum number of hours for the week (blank for no limit) and an availability text. A person with no roles listed can take any role. Availability is a list of segments separated by semicolons, each a set of days and then times or the word off: Mon-Fri 09:00-17:00; Sat 10:00-14:00; Sun off. Days may be single (Sat), listed (Mon,Wed,Fri), ranges (Mon-Fri, Fri-Mon wraps over the weekend) or weekdays, weekends and daily.

Times accept 24-hour or am/pm, and several windows for one day can be given with commas. Blank availability means free all week. If any working window is given, days that are not mentioned are unavailable; if only off days are given, every other day is free all day. A window that ends before it starts runs overnight into the next day.

Shifts are rows of days, a role, a number of people, a start and an end: Mon-Fri, Barista, 1, 06:30-12:30 makes five shifts. A row with no role is treated as blank. Rows expand into at most 600 shifts. A shift that ends before it starts runs overnight and belongs to the day it starts.

A person can take a shift only if they hold the role, their availability window covers the entire shift (including the next day for an overnight shift), it does not overlap any shift they already hold, the gap to their neighbouring shifts is at least the minimum rest (default 10 hours, 0 turns it off, and Sunday night is compared with Monday morning), and the shift's hours would not push them over their weekly maximum. Shifts are filled in order of how few people are eligible, and each goes to the eligible person with the fewest hours so far, which spreads work evenly.

If a shift is still open afterwards, repair looks for a person who is blocked only by one of their own shifts and moves that shift to someone else who can take it. It repeats up to three times while it still finds a swap, but each swap is a single step and not a full optimisation, so a roster with a genuine shortage will show open shifts rather than hide them. Manual changes are re-checked for role, availability, overlap, rest and weekly hours, and each problem is listed by name. The XLSX has a Roster grid (staff by day with the hours column as a SUMIFS formula over the Shifts sheet) and a Shifts list; the PDF is landscape with hours against each person's maximum and the open shifts listed below.

How it works

Every constraint check runs on absolute minutes within the week, so a shift ending at 02:00 on Sunday and one starting at 08:00 on Monday are compared correctly. The same function decides both the auto-fill and the checks on manual edits, so the two never disagree.

The week is treated as a loop. To catch a Sunday-night shift that runs into Monday morning, each pair of shifts is also compared with one of them moved a week later or earlier: a negative gap there is an overlap, and a gap shorter than the minimum rest is a rest problem. Sunday 22:00 to 06:00 and Monday 05:00 to 13:00 held by one person is reported as an overlap, because they share the hour from 05:00 to 06:00.

Filling starts with a count of eligible people for each shift, computed against the empty roster, and takes the shifts with the fewest first. That is why a shift only one person can cover is placed before the many shifts anyone can cover. Ties keep the order of your rows, and among eligible people the one with the fewest hours so far is chosen.

When to use it

  • A cafe rota of 4 baristas and 2 cashiers covering 06:30 to 18:00 seven days, where two people can do both roles
  • A clinic front desk with 8:00-13:00 and 13:00-18:00 cover Monday to Friday and three part-time staff capped at 20 hours
  • A night roster with 22:00-06:00 shifts for 6 nurses and a strict 11-hour minimum rest

Inputs

  1. Enter staff, or load the sample or a staff file.
  2. Add the shift rows: which days, which role, how many people, and the times.
  3. Set the minimum rest, and the Monday date if you want dates on the printout.
  4. Press Fill the roster and read the open shifts and issues.
  5. Fix anything with the menus and check each person's hours against their maximum.
  6. Download the XLSX or the PDF.

Worked example

Staff row and shift row

Ben Ito; Barista; max 24 h; availability Mon,Wed,Fri 06:00-14:00; Sat,Sun 07:00-15:00
Shift row: Mon-Fri, Barista, 1, 06:30-12:30

What the sample produces

Ben is eligible for the Monday, Wednesday and Friday barista shifts (6 h each) and for Saturday and Sunday 08:00-14:00
24 hours is his limit, so a fifth shift stays open or moves to someone else

Limits

Availability for a week is the same every week; there is no way here to mark one-off days off, so edit the roster by hand for those.

Unpaid breaks are not subtracted: hours are end minus start.

A shift spanning midnight into Monday of the next week is not scheduled across weeks.

  • List a person's secondary role after their main one; fairness spreads hours, so they will be used for both.
  • Put hard-to-fill shifts in their own row so you can see exactly which one stays open.

Common errors and how to fix them

"Could not read ... Use a day list and times"
A segment in the availability cell is not a day list followed by times. Write it as Mon-Fri 09:00-17:00, or Sun off.
"is not filled"
No eligible person was found. Check whether anyone holds the role and is free for the whole shift, or relax the rest rule or an hour limit.
"would have less than the minimum rest between shifts"
A manual change put two shifts too close together. Move one of them or lower the rest hours.
"works 41.0 hours, over the maximum of 40"
A manual change pushed someone past their weekly limit. The hours bar turns red until you move a shift.

Frequently asked questions

Does it follow labour-law limits?

No. It enforces only the limits you enter: roles, availability, hours and the rest gap. Check legal requirements such as maximum daily hours yourself.

Can I keep last week's setup?

Yes. The staff and shift tables are saved in this browser and come back next time; the roster itself is recreated with Fill the roster.