A staff rota that respects everyone's hours with Gemini
The struggle: Building next week's rota around availability, opening hours and labour rules takes you most of Sunday.
What you end up with: A draft weekly rota in Sheets that covers every opening hour and respects each person's stated availability, ready for you to decide.
Put availability and opening hours in a Sheet and ask Gemini's optimization tool for a draft that meets the rules you state. You check it against working-time rules and decide; nobody is ranked or tracked.
Tools: Gemini. Level: Pro. Time: 1 hour once, then 20 min a week.
Use it if
- You schedule a small team around availability and opening hours
- Every version of the rota breaks a rule you spot too late
- You want a fair first draft instead of a blank grid
Skip it if
- You want to monitor or rate staff; this only matches stated availability to shifts
- Your rota has legal rest or break rules that you have not written down
What you need first
- A Google AI plan or Workspace edition that includes Gemini in Sheets
- Each person's stated availability for the week, with their consent to share it in the sheet
The method
Set up three tabs (Gemini: Sheets)
In Google Sheets make three tabs: Availability (one row per person, one column per day, with the hours they said they can work), Cover (opening hours and how many people each hour needs) and Rules (max hours per person, minimum rest between shifts, fixed days off). Use first names only.
You get: A sheet holding people, cover needed and your rules.
Tip: Write every rule as a number a spreadsheet can use, not a sentence like 'be fair'.
Ask for a draft rota (Gemini: Gemini in Sheets)
Open the sheet and click Ask Gemini at the top right. Paste the prompt and press Enter. This is an optimization problem, which the help page lists as something Gemini in Sheets can solve. Read the preview, then click Insert or Apply.
Prompt to copy:
Using the tabs Availability, Cover and Rules, build a one week rota as a new tab. Meet the cover needed for every opening hour, only schedule people when they are available, and obey every rule in Rules. Show total hours per person. If the rules cannot all be met, say which rule fails and why instead of breaking it silently.
You get: A draft rota on a new tab.
Tip: Ask for two options so you can compare how each handles a hard day.
Check the rules cell by cell (Gemini: Gemini in Sheets)
Ask Gemini to add checks to the rota: hours per person against the maximum, rest between shifts and cover per hour. Click Preview, then Apply, and look at any red or flagged cell yourself.
Prompt to copy:
Add check columns to the rota tab: total hours per person versus the maximum, shortest rest between two shifts per person, and hours with too few people. Highlight any breach with conditional formatting. Explain each check in one line.
You get: A rota with visible checks that show any broken rule.
Tip: Test it with one bad shift on purpose to see that the check turns on.
Decide and share it yourself (Gemini: Chat)
Read the rota as the manager. Fix anything unfair or unrealistic by hand, ask the team about problems and only then share the final file. You decide; Gemini only drafted. Keep the sheet to what the team agreed to share.
You get: A rota you approved and shared.
Tip: Ask staff for swaps before publishing, not after.
Where this goes wrong
- Gemini does not know your local working-time rules; only the rules you type are used.
- Have a qualified person check this before you sign, file or send it.
- Use it to match stated availability only: do not rank, score or watch anyone.
- Check working-time, rest and employment rules with a qualified person; Gemini only proposes and the manager decides. Click Insert to keep results, as chat history is lost on reload.
Sources
- Docs Editors Help: Gemini in Google Sheets
- Workspace Updates: build and edit spreadsheets with Gemini in Sheets
More like this
- Check if anyone pays before you build
- A rate card with three clear packages
- Turn a vague idea into five testable offers
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.