Fix Excel Attendance Template Calendar Not Showing New Leave Type
Question details
The user added a new custom leave type to an employee attendance record template, but the new leave type is not displaying properly in the calendar view.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking employee attendance using a template and adding a new custom leave category.
- Observed behavior
- The newly added leave type fails to show its corresponding color or data in the Calendar View, despite being entered into the system.
Before modifying the conditional formatting rules, ensure your worksheet is unprotected and save a backup copy of your template to prevent accidental data loss.
Update the Conditional Formatting 'Applies to' Range
Expand the cell range of your conditional formatting rules so the settings successfully detect and format the new leave type across the entire calendar.
In many Excel templates, conditional formatting is restricted to a specific block of cells. When you add new variables like a leave type, the formatting rules often ignore the new data unless the range is manually expanded.
Navigate to the Home tab on the ribbon. Click on Conditional Formatting in the Styles group, then select Manage Rules from the drop-down menu.
In the 'Show formatting rules for' drop-down list at the top of the dialog box, select 'This Worksheet' to ensure you can see all active rules related to your calendar view.
Find the rule that applies the colors for leave types. Click inside the 'Applies to' box and update the range to encompass the entire Attendance Record table (for example, change it to =$C$6:$AR$17).
Click the Apply button, then click OK. Check your Calendar View to verify that the newly added leave type now appears correctly.

Troubleshoot Using an Anonymized Copy
If expanding the range does not resolve the issue, duplicate the file to safely test for hidden overlapping rules or broken references.
Manage and Format Attendance Templates Easily in WPS Office
WPS Spreadsheet provides a highly intuitive conditional formatting manager and seamless compatibility with Excel templates, making it effortless to customize employee attendance trackers and add new leave types without formatting errors.
- 1. Open your Template: Launch WPS Spreadsheet and open your existing Excel attendance tracker file.
- 2. Access Formatting Settings: Go to the Home tab, click on Conditional Formatting, and choose Manage Rules.
- 3. Expand the Range: Adjust the cell coordinates in the 'Applies to' field to include the new rows or columns containing your custom leave types, then click OK.

Frequently Asked Questions
Why are my custom leave types not showing colors in the Excel calendar?
This usually happens because conditional formatting rules in predefined templates are locked to specific cell ranges. When you add a new leave type, you must update the rule's 'Applies to' range in the Conditional Formatting Rules Manager to include the new data.
How do I remove an incorrect conditional formatting rule?
Select the affected cells, go to the Home tab, click Conditional Formatting, hover over Clear Rules, and choose either 'Clear Rules from Selected Cells' or 'Clear Rules from Entire Sheet'.
Can I add multiple new leave categories to the attendance template?
Yes, you can add multiple leave types. Just ensure that the source data table is expanded to include them, and that both your Data Validation lists and Conditional Formatting ranges are updated to encompass all the newly added entries.




