How to Fix Conditional Formatting in Excel Attendance-Tracking Spreadsheets
Question details
The user needs help designing an attendance-tracking spreadsheet and resolving conditional-formatting problems related to elapsed time.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating an easy-to-use attendance tracker for managers that tracks call-ins and tardiness without forcing all managers onto a single worksheet.
- Observed behavior
- The current spreadsheet is experiencing conditional-formatting issues when trying to accurately flag past attendance incidents based on time elapsed.
Before applying new conditional formatting rules, ensure your attendance data is organized into clear columns (e.g., dates, names, incident types) and confirm the exact timeframes (like 6 months or 1 year) you need to track.
Apply Time-Based Conditional Formatting Formulas
Use customized elapsed-time formulas to automatically highlight attendance incidents like call-ins or tardiness that exceed a specific timeframe.
By utilizing the NOW() function within your conditional formatting rules, you can dynamically highlight dates that are older than a specific number of days, such as 365 days for a rolling year or 183 days for a half-year tracking period.
Highlight the specific columns where you want to apply the rule (for example, columns D through K for yearly tracking).
Navigate to the Home tab, click on Conditional Formatting in the Styles group, and select New Rule from the dropdown menu.
Choose 'Use a formula to determine which cells to format'. Enter a formula such as =(NOW()-D4-365)>0 for a 1-year threshold, replacing D4 with your actual starting cell reference.
Click the Format button, choose a recognizable fill color (like red or yellow) to alert managers of the incident, and click OK to apply.

Organize Data Across Multiple Worksheets
Structure the attendance tracker so that each manager has their own dedicated worksheet, making it easier to manage and format.
Easily Track Attendance with WPS Spreadsheet
WPS Spreadsheet offers robust conditional formatting and effortless multi-sheet management, making it the perfect tool to build user-friendly, automated attendance trackers for your team.
- 1. Create your attendance tracker: Open WPS Office and create a new Blank Spreadsheet. Set up your columns for tracking call-ins, tardiness, and specific dates.
- 2. Apply conditional formatting: Select your date columns, navigate to the Home tab, and click Conditional Formatting to add elapsed-time rules.
- 3. Use custom formulas: Select 'New Rule', input your time-tracking formula (e.g., =(NOW()-D4-365)>0), and set a distinct highlight color.
- 4. Duplicate for your team: Right-click the sheet tab to copy your formatted template for different managers, saving hours of manual setup.

Frequently Asked Questions
How do I highlight an attendance date if it is older than 6 months?
Select the cells containing the dates, click Conditional Formatting > New Rule, and use the formula =(NOW()-A1-183)>0 (assuming A1 is your starting cell). Choose your preferred highlight color and click OK.
Can I copy conditional formatting to other sheets easily?
Yes, you can use the Format Painter tool. Select a cell that already has the desired conditional formatting, click Format Painter on the Home tab, and then click and drag over the target cells on the new sheet to apply the same rules.
Why is my conditional formatting formula highlighting the wrong cells?
This usually happens due to incorrect absolute or relative cell references. Ensure that your formula's starting cell exactly matches the top-left cell of your selected range. Remove the dollar signs (e.g., change $D$4 to D4) if you want the rule to adapt dynamically across rows and columns.




