On this page11 sections
In short
To make an employee schedule, list who works for you down the side and the days across the top, then fill each cell with a shift code from a short key, such as E for early and L for late. COUNTIF turns the codes into weekly hours and daily coverage, and conditional formatting flags gaps, overtime and a late shift followed by an early one. Foxcolab Sheets keeps the rota end-to-end encrypted.
Key takeaways
- Start from what you need covered each day, then fit people to it. A schedule built around people first leaves gaps.
- A shift key with start, end and unpaid break turns one-letter codes into paid hours for every person.
- COUNTIF does the checking: hours per person, people per shift and days off per week.
- Flag a late shift followed by an early one. In the EU, workers get at least 11 consecutive hours of rest in every 24.
- Foxcolab Sheets encrypts the schedule on your device, so Foxcolab can't read who works when or why someone is off.
Last reviewed 3 December 2026 by Foxcolab Team
An employee schedule shows who works which shift on each day of the week. The quickest one to build and read is a grid: people down the side, days across the top, and a short shift code in each cell. A small key turns the codes into hours, and a few COUNTIF formulas check that every shift is covered, nobody goes into overtime by accident and everyone gets enough rest. This guide builds that schedule step by step with a worked week. Then it shows how to publish it in Foxcolab Sheets, where the rota is end-to-end encrypted and Foxcolab can't read who works when.
Gather four things first#
A schedule is a puzzle with fixed edges. Write these down before you open a spreadsheet:
- What you need covered. Opening hours, and how many people each shift needs. A café open 7:00 to 23:00 might need two people on an early shift and two on a late shift every day, plus a manager on weekdays.
- Who you have. Each person's role, contracted hours and any skills a shift needs, such as a keyholder or first aider.
- Availability and time off. Approved leave, fixed days off, and people who can't work certain hours.
- The rules. Maximum hours, overtime, rest between shifts and how early the schedule must be published.
The rules depend on where you operate. A few examples:
| Where | Rule that shapes a schedule |
|---|---|
| European Union | At least 11 consecutive hours of rest in every 24, a break when on duty for more than 6 hours, 24 uninterrupted hours of weekly rest on top of daily rest, and average working time of no more than 48 hours a week including overtime (European Commission) |
| United States (federal) | Overtime at no less than one and a half times the regular rate for hours over 40 in a workweek, with no averaging across weeks (DOL Fact Sheet #23) |
| New York City fast food | Schedules 14 days before they start, showing all shifts for at least 7 days, premiums for many late changes, and a 100 dollar premium plus the right to refuse a "clopening", closing and then opening on back-to-back shifts (NYC DCWP, workers' notice) |
Treat these as examples, not a checklist. Your country, state, city and any union agreement may add more.
Make a shift key#
On a sheet named Shifts, give each shift a code, a start, an end and an unpaid break. A formula works out the paid hours:
| A: Code | B: Shift | C: Start | D: End | E: Break (min) | F: Paid hours |
|---|---|---|---|---|---|
| E | Early | 7:00 | 15:00 | 30 | 7.5 |
| D | Day | 9:00 | 17:30 | 30 | 8 |
| L | Late | 15:00 | 23:00 | 30 | 7.5 |
| OFF | Day off | 0 | |||
| TO | Approved time off | 0 |
F2 =IF(C2="",0,MOD(D2-C2,1)*24-E2/60)MOD keeps a shift that ends after midnight positive. Short codes keep the grid readable on a phone and make every formula below simple.
Build the schedule grid#
On a sheet named Week, put names in column A, roles in column B, Monday to Sunday in columns C to I and the dates under the day names. Here's a worked week for an example café:
| Name | Role | Mon | Tue | Wed | Thu | Fri | Sat | Sun | Hours |
|---|---|---|---|---|---|---|---|---|---|
| Alex Morgan | Manager | D | D | D | D | D | OFF | OFF | 40 |
| Sam Rivera | Barista | E | E | E | E | E | OFF | OFF | 37.5 |
| Priya Shah | Barista | OFF | OFF | E | E | E | E | E | 37.5 |
| Jordan Lee | Barista | E | E | OFF | OFF | OFF | E | E | 30 |
| Chen Wei | Barista | L | L | L | L | L | OFF | OFF | 37.5 |
| Omar Haddad | Barista | OFF | OFF | L | L | L | L | L | 37.5 |
| Lena Fischer | Barista | L | L | OFF | OFF | OFF | L | L | 30 |
| Early on | 2 | 2 | 2 | 2 | 2 | 2 | 2 | ||
| Late on | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
Everyone has two days off in a row, every shift has the two people it needs, and nobody goes over 40 hours. The formulas below prove it, so you don't have to count by eye.
The formulas that check it#
With people in rows 5 to 11, the coverage counts in rows 13 and 14, and what you need typed in rows 15 and 16:
J5 Hours this week =COUNTIF(C5:I5,"E")*Shifts!$F$2+COUNTIF(C5:I5,"D")*Shifts!$F$3+COUNTIF(C5:I5,"L")*Shifts!$F$4
C13 Early on =COUNTIF(C$5:C$11,"E")
C14 Late on =COUNTIF(C$5:C$11,"L")
C15 Early needed 2
C16 Late needed 2
L5 Days off =COUNTIF(C5:I5,"OFF")+COUNTIF(C5:I5,"TO")Fill J5 and L5 down for each person and C13 and C14 across to Sunday. Then add four highlight rules, so problems show up the moment you type a code:
| Rule | Apply to | Formula | Catches |
|---|---|---|---|
| Short-staffed shift | C13:I14 | =C13<C15 | Fewer people than the shift needs |
| Late then early | D5:I11 | =AND(C5="L",D5="E") | A 23:00 finish followed by a 7:00 start, which leaves 8 hours of rest |
| Too many hours | J5:J11 | =J5>40 | Overtime you didn't plan |
| No day off | L5:L11 | =L5=0 | A seven-day week |
Here's the late-then-early rule at work. Say Priya asks for Wednesday off and you give her early shift to Lena, who is off that day. Lena's Wednesday cell lights up straight away: she finishes Tuesday's late shift at 23:00 and would start again at 7:00. That breaks the EU's 11-hour daily rest, and in a New York City fast food restaurant it's a clopening that needs her agreement and a premium. Give the shift to Jordan instead. He's also off on Wednesday, and his Tuesday shift ends at 15:00.
The rule compares neighboring days, so it can't see Sunday into next Monday. Check that pair by eye when you start a new week.
Publish it, then handle changes#
- Publish early. Give people the schedule as far ahead as you can, and at least as early as local rules require.
- Keep one current version. Copy the week to start the next one, so last week's schedule stays as it was published.
- Record changes. When a shift moves after publishing, note who agreed and when. Some rules, such as New York City's for fast food, attach premiums to late changes.
- Let people ask in writing. Swap and cover requests in comments on the cell leave a record next to the shift they're about.
- Compare the plan with the hours worked. The schedule says who should work. A timesheet records who did. How to make a timesheet has the formulas.
Make an employee schedule in Foxcolab Sheets#
A schedule shows where every employee will be and when, and the time off column often hints at why: medical appointments, family leave, a second job. Foxcolab Sheets encrypts every spreadsheet on your device with its own key, and cells, titles and comments are encrypted before they sync. Foxcolab stores only encrypted data, so it can't read your rota, and only the people you share it with can open it. Sheets comes with every Foxcolab account, the free plan included.
Build the grid#
Create the spreadsheet
In your Sheets library, click New → Blank spreadsheet, then File → Rename it, for example "Café schedule". Choose Insert → Sheet to add the Shifts sheet, and right-click each tab to Rename it.
Turn shift codes into colored chips
On the Week sheet, select C5:I11 and choose Insert → Dropdown, then Add rule. Keep Criteria on Dropdown, enter E, D, L, OFF and TO as the options and give each its own color. Keep Display style on Chip, choose Reject the input and click Done. Every cell now shows a colored chip, and nobody can type a code that isn't in the key.
Add the formulas
Type the Paid hours formula on the Shifts sheet and the Hours, coverage and Days off formulas on the Week sheet, as above.
Add the highlight rules
For each rule in the table, select its range and choose Format → Conditional formatting → Add rule. Under Format cells if, pick Custom formula is, type the formula for the first cell of the range, choose a Fill color and click Done.
Keep names and days in view
Click a cell in column C on the dates row, then choose View → Freeze and pick the option that freezes up to that row, and 2 columns for names and roles.
Use conditional formatting in Sheets explains rule order and every condition type, and Add drop-down lists and data validation in Sheets covers dropdown chips.
Protect the key and the formulas#
Select the Hours, coverage and Days off cells, then choose Data → Protect sheets and ranges → Add a protected range or sheet. Pick Range, add a Description such as "Schedule formulas", choose Only the owner and you and click Done. Add a second protection with Sheet for the Shifts sheet. Other editors can still change shift codes, but not the hours behind them.
Copy it each week#
Right-click the Week tab, choose Duplicate and Rename the copy to the next week, such as "Dec 14". Change the dates and adjust the codes. When the week is final, choose File → Version history and click Name current version, for example "Dec 14 published". If a shift moves later, File → Show changes shows who changed it and when.
Share it with your team#
Open sharing
Click Share, or choose File → Share….
Add shift leads as editors
Invite managers and shift leads as Editor so they can update codes.
Add staff as commenters
Invite everyone else as Commenter. They can read the schedule and ask for a swap in a comment on the cell, but can't change it. Choose Viewer if you don't want comments.
Use one link for the whole team
Under Create a link, choose Invite link, set the Role to Viewer, pick when it Expires and how many people can use it, then click Create & copy link. People sign in with their Foxcolab account to join.
For a printed copy on the staff room wall, choose File → Print, set Scale to Fit to width and click Download PDF. The PDF is made on your device, and like any downloaded file it isn't encrypted. Share a spreadsheet in Sheets covers link passwords, expiry dates and removing access.
Related#
- Share a spreadsheet in Sheets
- Use conditional formatting in Sheets
- How to make a timesheet
- How to schedule meetings across time zones
Your team's schedule is nobody else's business. Create a free account and build your rota in a spreadsheet Foxcolab can't read, or see plans for your own domain and more storage. Scheduling hundreds of people across sites? See Foxcolab for enterprise or talk to sales.
Frequently asked questions
What's the easiest way to make an employee schedule?
Use a grid. Put each employee on a row and each day of the week in a column, and fill the cells with shift codes from a small key, such as E (7:00 to 15:00), L (15:00 to 23:00) and OFF. Formulas then count hours per person and people per shift, so you see gaps and overtime before you publish.
How far in advance should I post a work schedule?
As early as you can, and never later than local law requires. Some places set a minimum. New York City's Fair Workweek Law, for example, requires fast food employers to give workers their schedules 14 days before the schedule starts and to pay premiums for many late changes.
How do I avoid scheduling someone to close and then open?
Add a conditional formatting rule that highlights an early shift on the day after a late shift, such as =AND(C5="L",D5="E"). A 15:00 to 23:00 shift followed by a 7:00 start leaves 8 hours of rest. EU rules give at least 11 consecutive hours in every 24, and New York City fast food workers get a 100 dollar premium and the right to refuse such clopening shifts.
Can employees see the schedule without being able to change it?
Yes. Share the spreadsheet as Viewer, or as Commenter if you want people to ask for swaps in comments. In Foxcolab Sheets, only editors can change cells, protected ranges block even editors, and the schedule is end-to-end encrypted.

Written by
Foxcolab TeamThe Foxcolab team, who build the apps and help people set them up.
More from FoxcolabDid this guide help you get it done?
One click, no account needed.