Function Problems

Create an Excel Vacation Calendar from Employee Leave Dates

Ayan MasoodAyan Masood Dec 2, 2026 869 views

Question details

Create a yearly calendar that marks vacation dates for an employee selected from a list of approximately 500 people.

Create an Excel Vacation Calendar from Employee Leave Dates
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.
Before you start

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.

Solution 1Recommended

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.

1
Create the leave table

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.

2
Add the employee dropdown

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.

3
Set up the year and dates

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.

4
Mark vacation days

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.

5
Highlight the 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.

Build a Vacation Calendar with an Employee Dropdown and COUNTIFS
Adjust the calendar for each year: The formula includes both the start and end dates and handles multiple leave periods. Extend or shorten the date and formula rows for leap years, and adjust table or cell references if your layout differs.
Build your calendar in WPS

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. 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. 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. 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. 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. 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.
Display vacation days for a selected employee using COUNTIFSCreate a dropdown from a list of approximately 500 employeesOpen and save calendars in Microsoft Excel XLSX formatHighlight vacation marks with conditional formatting
microsoft office alternative - wps office

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.