Formatting Issues

Add New Leave Types to an Excel Attendance Tracker

Muhammad TalhaMuhammad Talha Nov 14, 2026 869 views

Question details

Update an Excel attendance calendar so new leave types appear with the correct colors and Key Statistics counters.

Add New Leave Types to an Excel Attendance Tracker
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user has added leave types to an attendance tracker and wants the calendar and statistics area to recognize them.
Observed behavior
The new leave types need matching calendar colors and counters in the Key Statistics area.
Before you start

Locate the new entries in the Leave Types table and identify the codes or names used in calendar cells. Inspect an existing conditional formatting rule and Key Statistics counter so you can follow the workbook's formula pattern.

Solution 1Recommended

Add a Formatting Rule and Statistics Counter for Each Leave Type

Use the existing tracker rules and counters as a model to give each new leave type a matching color and count.

1
Inspect an existing rule

Select a calendar cell, then open Home > Conditional Formatting > Manage Rules. Find a rule for an existing leave type and note its formula, color, and Applies to range.

2
Create a rule for each new type

Select C6:AR17, then choose Home > Conditional Formatting > New Rule. Use the existing rule's formula pattern, changing the leave-type reference to the correct new row in the Leave Types table. Set the matching fill color and repeat for each new type.

3
Check the rule range and priority

Return to Conditional Formatting > Manage Rules and confirm each new rule applies to C6:AR17. Check the rule order and any Stop If True settings if another rule overrides the new color.

4
Copy and update a counter

In the Key Statistics area, copy an existing leave-type counter into an available space. Change its label and edit its formula or formulas to reference the new row in the Leave Types table, following the existing counter's pattern.

5
Match the color and test

Use Home > Fill Color or the existing counter's formatting to apply the matching color. Enter a new leave code in a calendar cell and confirm that the cell color and its Key Statistics count update.

Add a Formatting Rule and Statistics Counter for Each Leave Type
Keep the workbook's formula pattern: Cell references and counter formulas depend on the tracker. Preserve the existing relative and absolute references, changing only the leave-type reference needed for each new rule or counter.
Update your attendance tracker

Add Leave Types to Your Attendance Tracker in WPS Spreadsheet

Open the tracker in WPS Spreadsheet, add a conditional formatting rule for each new leave type, and update copied statistics counters using the workbook's existing formulas.

  1. 1. Open the tracker: Open the Excel attendance workbook in WPS Spreadsheet and locate the Leave Types table and Key Statistics area.
  2. 2. Review an existing rule: Select a calendar cell and open Home > Conditional Formatting > Manage Rules. Note an existing leave-type rule's formula, color, and range.
  3. 3. Add new rules: Select C6:AR17 and use Home > Conditional Formatting to create a rule for each new type. Follow the existing formula pattern, update the leave-type reference, and choose the matching color.
  4. 4. Update and test counters: Copy an existing Key Statistics counter, change its label and formula references, and apply the matching color. Enter a new leave code in the calendar to check the color and count, then save the workbook.
Apply matching calendar colors for new leave typesUpdate statistics counters using existing formula patternsCompatible with Microsoft Excel XLSX and XLS filesEdit spreadsheets in a familiar, easy-to-use interface
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't a new leave type change the calendar color?

Open Home > Conditional Formatting > Manage Rules and check that a rule references the correct leave-type row and applies to C6:AR17. Also check whether a higher-priority rule overrides it.

Do I need a separate rule for every new leave type?

For this tracker, create a separate conditional formatting rule for each new leave type so you can set its reference and matching color independently.

Why is the new Key Statistics count incorrect?

Select the copied counter and inspect its formulas in the formula bar. Confirm that they reference the new leave-type row and preserve the calendar range and reference style used by the existing counter.

Can I update the tracker in WPS Spreadsheet?

Yes. Open the Excel workbook in WPS Spreadsheet, use Home > Conditional Formatting to add the rules, and copy and edit an existing Key Statistics counter.