Create an Excel Employee Schedule with Vacation and Seniority Rules
Question details
Create an employee schedule that accounts for vacations, location coverage, and seniority.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Assign employees to locations by week while applying availability and staffing rules.
- Observed behavior
- The desired schedule avoids vacation conflicts, separates employees with the same vacation week when required, and balances seniority across locations.
List employees, their seniority levels and vacation weeks, the scheduling weeks and locations, and the minimum and maximum staffing required at each location. Decide whether employees who share a vacation week must be separated at the same location during all other weeks.
Build a schedule model and solve it with Excel Solver
Use Solver when you need to generate assignments that satisfy availability, vacation-group, coverage, and seniority constraints.
This example assumes each employee has one selected vacation week and that employees with the same vacation week cannot work at the same location in the same week. Adjust the group rule if your policy differs; employees with multiple vacation weeks need separate vacation and group-membership records.
Keep the assignment cells binary and the constraint calculations linear so that Solver can use Simplex LP.
In desktop Excel, open File > Options > Add-ins. Select Excel Add-ins next to Manage, click Go, check Solver Add-in, and click OK. Solver appears on the Data tab.
Create tables for employees, seniority levels, vacation weeks, scheduling weeks, and locations. In an Assignments table, create one row for every employee, week, and location combination, with columns for Employee, Week, Location, Seniority, VacationWeek, Available, and Assign. Set Available to 0 when Week equals VacationWeek and 1 otherwise; initialize Assign to 0.
Use SUMIFS on Assignments[Assign] to calculate each employee's total assignments per week, each location's headcount per week, and each seniority level's headcount per location and week. Also calculate assignments per vacation group, location, and week. Place these totals and their limits in helper columns that Solver can reference.
Select Data > Solver and set the objective to a cell containing the sum of Assignments[Assign], with Max selected. Set the Assign cells as the changing variable range and add a binary constraint. Require each employee's weekly assignment total to equal Available, each vacation-group total per location and week to be at most 1, and location and seniority counts to stay within their specified minimum and maximum limits.
In Solver, select Simplex LP and click Solve. If Solver finds a solution, keep it and filter the Assignments table to show Assign = 1. If no feasible solution is found, review coverage, seniority, and vacation-group limits for conflicts before solving again.
Create and check an employee schedule in WPS Spreadsheets
Use WPS Spreadsheets to organize employee availability and manually assign staff to locations. Formulas can flag vacation conflicts and help you review staffing and seniority counts.
- 1. Create the workbook: Open WPS Spreadsheets and create a new workbook. Add sheets for Employees, Vacations, and Schedule.
- 2. Enter scheduling data: On Employees and Vacations, enter employee names, seniority levels, and vacation weeks. On Schedule, add columns for Week, Location, Employee, and Seniority.
- 3. Assign and check staff: Enter assignments in the Schedule sheet. Use COUNTIFS formulas to flag an employee assigned during a matching vacation week and to count staff by week, location, and seniority.
- 4. Review and save: Compare the counts with your location requirements, check whether employees sharing a vacation week are separated where required, and adjust assignments. Select Menu > Save As to save the workbook in Excel format.

Frequently Asked Questions
How do I prevent an employee from being scheduled during vacation?
Mark the employee as unavailable for the vacation week. In Solver, require the employee's total assignments for that week to equal 0; for a manually maintained schedule, use COUNTIFS to flag matching employee and vacation-week entries.
What does it mean to separate employees with the same vacation week?
If that is your policy, group employees by their selected vacation week and limit each group to one assignment per location and working week. Confirm the intended rule before applying it, since some workplaces may mean something different.
How can I balance seniority across locations?
Use SUMIFS to count assignments by seniority level, location, and week. Set minimum and maximum counts for each group, then add those limits as Solver constraints.
Why does Solver say it cannot find a feasible solution?
There may not be enough available employees to meet the location, seniority, and vacation-group limits simultaneously. Review the helper totals and adjust conflicting requirements before selecting Data > Solver and trying again.




