Formula Errors

How to Use Excel Conditional Formatting with TODAY and Relative Row References

Khadija KhanKhadija Khan Nov 11, 2026 869 views

Question details

The user needs to create conditional formatting rules that evaluate each row independently using the TODAY function and relative row references.

How to Use Excel Conditional Formatting with TODAY and Relative Row References
Product
Microsoft Excel
Device & OS
not provided
Scenario
Applying conditional formatting across multiple rows where the formula depends on the current date and specific column values for each individual row.
Observed behavior
The user wants to lock the source column while allowing the row reference to change automatically when the formatting rule is applied to a target range.
Before you start

Ensure your date data is formatted as valid dates, not as text, and select the entire range you want to format before entering your custom formula.

Solution 1Recommended

Apply Conditional Formatting Using Mixed References and the TODAY Function

Use a mixed reference to lock the column while keeping the row dynamic, allowing the rule to evaluate each row independently against the current date.

By locking the column with a dollar sign (e.g., $A) but leaving the row number relative (e.g., 1), the software automatically adjusts the row number for each cell in your selected range. Combining this with the TODAY() function is perfect for tracking deadlines, highlighting overdue items, or creating status indicators.

1
Highlight the target range

Select the cell range (e.g., $B$1:$B$9) where you want the conditional formatting to appear.

2
Open Conditional Formatting rules

Go to the Home tab on the ribbon, click 'Conditional Formatting', and select 'New Rule'.

3
Select the formula option

Choose 'Use a formula to determine which cells to format' from the rule types list.

4
Enter the mixed reference formula

Input your formula using a mixed reference. For example, to highlight dates older than 10 days, enter =$A1<=TODAY()-10.

5
Set the format and apply

Click 'Format', choose your desired fill color (like orange or green), click 'OK' to confirm the format, and 'OK' again to apply the rule.

Apply Conditional Formatting Using Mixed References and the TODAY Function
Align the Row Numbers: Make sure the row number in your formula matches the top row of your selected range. If you select B2:B10, your formula must start with $A2.
Manage Dates Effectively

Use WPS Spreadsheet for Advanced Conditional Formatting

WPS Spreadsheet provides robust conditional formatting tools that are fully compatible with Excel formulas, including mixed references and the TODAY() function. It is a free, lightweight alternative that makes tracking deadlines and dynamic dates intuitive.

  1. 1. Open your file in WPS: Launch WPS Spreadsheet and open your existing workbook containing the date data.
  2. 2. Select your data range: Highlight the cells you want to format based on the dynamic date rule.
  3. 3. Create a new rule: Navigate to Home > Conditional Formatting > New Rule.
  4. 4. Enter the formula: Select 'Use a formula...', input your rule like =$A1<=TODAY()-10, set the format color, and click OK.
Fully compatible with Microsoft Excel formulas and .xlsx formatsEasy-to-use Conditional Formatting interface for date trackingFree and lightweight office suite for daily spreadsheet tasksSeamlessly handles mixed and relative references
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting applying the same rule to every row?

This usually happens if you use absolute references for the row (e.g., $A$1 instead of $A1). Ensure you remove the dollar sign before the row number so the formula can adjust for each row in your selected range.

Can I use the TODAY function to highlight upcoming dates?

Yes, you can create a rule to highlight dates occurring in the future. For example, to highlight dates within the next 7 days, use a formula combining AND with TODAY: =AND($A1>TODAY(), $A1<=TODAY()+7).

Does the TODAY() function update automatically?

Yes, the TODAY() function recalculates automatically every time you open the workbook or whenever the spreadsheet recalculates, ensuring your conditional formatting is always based on the current date.