Create an Excel Vacation Calendar from Employee Leave Dates
Question details
Create a yearly calendar that marks vacation dates for an employee selected from a list of approximately 500 people.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user has employee leave start and end dates and wants to view one employee's vacation days across a year.
- Observed behavior
- The desired calendar displays a mark on each date covered by the selected employee's leave.
Prepare a list of employee names and a separate list of leave records with employee, start date, and end date columns. Make sure the dates are stored as actual spreadsheet dates and names match the employee list.
Build a Vacation Calendar with an Employee Dropdown and COUNTIFS
Use a structured leave table and a dropdown to show vacation days for one selected employee at a time.
On a Data sheet, enter the headers Employee, Start Date, and End Date, followed by one row for each leave period. Select the range, choose Insert > Table, and name the table Vacations on the Table Design tab.
On a Calendar sheet, place the unique employee names in A8:A507, adjusting the range for your list. Select B2, choose Data > Data Validation, select List, and enter =$A$8:$A$507 as the source.
Enter the desired year in B1. In C4, enter =DATE($B$1,1,1); in D4, enter =C4+1. Drag the formula across until December 31 appears, and format the date row using Home > Number Format > Short Date.
In C5, enter =IF(COUNTIFS(Vacations[Employee],$B$2,Vacations[Start Date],"<="&C$4,Vacations[End Date],">="&C$4)>0,"U","") and drag it across beneath all the calendar dates. Select an employee in B2 to display their marks.
Select the calendar cells in row 5, then choose Home > Conditional Formatting > Highlight Cells Rules > Equal To. Enter U and choose a fill color.

Create an Employee Vacation Calendar in WPS Spreadsheet
Use WPS Spreadsheet to organize leave records, select an employee, and mark matching dates across a yearly calendar.
- 1. Enter leave records: In WPS Spreadsheet, create a sheet named Data. Enter Employee, Start Date, and End Date in A1:C1, then add leave records below them.
- 2. Create an employee selector: Create a Calendar sheet and enter the unique employee names in A8:A507, adjusting the range as needed. Select B2, choose Data > Data Validation, select List, and set the source to =$A$8:$A$507.
- 3. Lay out the dates: Enter the calendar year in B1. Enter =DATE($B$1,1,1) in C4 and =C4+1 in D4, then drag D4 across through December 31. Format the row as dates.
- 4. Add the leave formula: In C5, enter =IF(COUNTIFS(Data!$A$2:$A$5000,$B$2,Data!$B$2:$B$5000,"<="&C$4,Data!$C$2:$C$5000,">="&C$4)>0,"U","") and drag it across the date row. Expand the referenced ranges if you have more than 4,999 leave records.
- 5. Highlight vacation days: Select the formula cells in row 5 and use Home > Conditional Formatting to create a rule that highlights cells equal to U. Choose an employee in B2 to view their leave.

Frequently Asked Questions
How do I add another vacation period for an employee?
Add a new row to the Vacations table on the Data sheet with the employee's name and the new start and end dates. The calendar formula checks all matching rows in the table.
Why are no vacation marks appearing for a selected employee?
Check that the name in B2 matches the Employee entry on the Data sheet, and confirm that the start and end dates are actual dates rather than text. Also check that the calendar dates fall within the leave period.
Does the calendar include the first and last day of leave?
Yes. The COUNTIFS formula uses less than or equal to for the start date and greater than or equal to for the end date, so both dates are marked.
How do I handle a leap year?
Enter the leap year in B1 and extend the date and formula rows through December 31. A leap year needs 366 date columns, while most years need 365.
Can I show a different symbol instead of U?
Yes. Replace "U" in the formula with the symbol or text you prefer, then update the Conditional Formatting rule to match it.




