How to Create a Rotating Schedule in Excel
In this article
To create a rotating schedule in Excel, build a small grid with the rotation order in one column, use a start date cell and a formula that references the row number, then copy that formula across the date columns. The result is a schedule that reshuffles itself each period without manual editing. This works for shift rotations, chore wheels, on-call rosters and team coverage, and it needs only a standard Excel install — no add-ins.
What You'll Need
- Excel for Windows, Mac or the web (the formulas below are standard and work in all three).
- A list of people, shifts or tasks in the order they should rotate.
- A start date for the first period.
- Optional: a named range for the rotation list, which makes formulas easier to read.
Step-by-Step
- Lay out the rotation list. In a blank sheet, put the names or shift labels in a single column, one per row, starting in A2. For example A2 = Alice, A3 = Ben, A4 = Cara, A5 = Dan. Keep the list contiguous — no blank rows — because the formula counts entries.
- Name the range. Select A2 through the last name, then type a name such as Rotation in the Name Box to the left of the formula bar and press Enter. This is optional but makes the formulas below much easier to audit.
- Set the start date. In a cell away from the grid, say E1, enter the date of the first period (the first Monday, first shift day, or whatever your rotation uses). Format it as a date with Ctrl+1 (Cmd+1 on Mac) if Excel shows a serial number.
- Build the date headers. In B1 enter
=$E$1. In C1 enter=B1+7(for weekly periods) or=B1+1for daily. Drag the fill handle right as far as you need. Each column now represents one period. - Add a period counter. In B2 enter
=COLUMN()-COLUMN($B$1)+1. This returns 1 for the first column, 2 for the second, and so on. Drag it right. This counter is what drives the rotation. - Write the rotation formula. In B3 enter
=INDEX(Rotation,MOD(B$2-1+ROW()-3,COUNTA(Rotation))+1). Drag it right across the row, then drag the whole row down for as many rows as you have people. Each row now shows a different person, and each column advances the rotation by one. - Check the wrap-around. Look at the column where the counter equals the number of people plus one. The first name should reappear at the top. If it does not, the
+1or the-1inside MOD is off by one — adjust and recheck. - Format for readability. Select the grid and apply borders (Home > Borders). Use conditional formatting to colour-code shifts: select the grid, then Home > Conditional Formatting > Highlight Cells Rules > Equal To, and enter a shift label. Repeat for each label. This makes the rotation visible at a glance.
- Freeze the headers. Click cell B2, then View > Freeze Panes > Freeze Panes. The date row and the counter row stay visible as you scroll.
- Extend the schedule. To add more weeks, drag the date header and counter rows further right, then drag the name rows to match. Because the formulas are relative, they copy cleanly.
- Save a template. Use File > Save As and choose Excel Template (.xltx) so you can reuse the layout for the next rotation cycle without rebuilding it.
Common Mistakes
- Forgetting the absolute reference on the start date. If E1 is written as
E1instead of$E$1, dragging the header formula shifts the reference and the dates drift. - Leaving blank rows in the rotation list. COUNTA counts non-empty cells, so a gap silently shortens the cycle and skips a person.
- Off-by-one errors in MOD. MOD returns 0 to n-1, so you must add 1 before using it as an INDEX position. Test the wrap-around column explicitly.
- Hard-coding names into the grid. Typing names directly defeats the purpose; the whole point is that the formula pulls from the list.
- Mixing date formats. If the start date is stored as text,
B1+7returns an error. Check with ISNUMBER. - Dragging instead of copying formulas. Dragging a formula across columns works, but dragging down rows without locking the column reference (the
B$2part) breaks the counter link.
Tips
- Use a separate sheet for the rotation list and reference it by name, so the visible schedule stays clean.
- Add a dropdown (Data > Data Validation > List) for shift labels so conditional formatting stays consistent.
- If your rotation skips weekends or holidays, add a helper column that flags non-working days and use WORKDAY or a simple IF to blank those cells.
- Protect the formula cells (Review > Protect Sheet) before sharing the file so colleagues can read the schedule but not overwrite the formulas.
- Print with Page Layout > Print Titles set to the header row so every printed page shows the dates.
Troubleshooting
If the grid shows #REF!, the named range or the rotation list has been deleted or moved — recreate the name and re-enter the formula. If it shows #N/A, INDEX is being asked for a position larger than the list; check that COUNTA matches the actual number of entries. If every row shows the same name, the ROW() part of the formula was not dragged down, or the column reference was locked when it should not have been. If dates appear as numbers like 45123, apply a date format with Ctrl+1. If the schedule is correct but hard to read, the issue is formatting, not formulas — add borders and conditional formatting rather than rewriting the logic. If you inherit a file and cannot see why it rotates, click a cell and use Formulas > Trace Precedents to see which cells feed it.
Frequently Asked Questions
Can I make the rotation skip weekends?
Yes. Replace the simple date increment with a WORKDAY formula, for example =WORKDAY(B1,1), which advances to the next weekday. For custom holiday lists, add the holidays range as the third argument.
Does this work in Excel for the web?
Yes. INDEX, MOD, COUNTA and ROW are all supported in Excel for the web, and named ranges work there too. Conditional formatting is also available, though the menu wording can differ slightly by version and region.
How do I rotate shifts rather than people?
Put the shift labels (Morning, Evening, Night) in the rotation list instead of names, and put the people in the row headers. The same formula then rotates shifts across people.
Can I start the rotation on a different person?
Yes. Change the start date in E1, or add an offset to the period counter in B2 so the first column begins at a different position in the list.
Why does the last person appear twice in a row?
The MOD formula is off by one, usually because the +1 was omitted or the list has an extra blank cell. Trim the range and recheck the wrap-around column.
Can I share the schedule so others can view but not edit it?
Yes. Use Review > Protect Sheet with a password, and leave the formula cells locked. Share a copy rather than the master file so the original stays intact.