Highlight a Date Later Than Another in Excel
Question details
The user wants to highlight dates in column R when they are later than the corresponding dates in column S.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Compare dynamically calculated dates in columns R and S row by row using conditional formatting.
- Observed behavior
- Dates in column R should be highlighted whenever they are later than the dates in column S on the same row.
Identify the first data row and the range in column R that you want to format. Check that the values in both columns are actual Excel dates rather than dates stored as text.
Create a Conditional Formatting Rule to Compare Dates
Use a formula rule to compare each date in column R with the date in column S on the same row.
Select R2:R1000, or select the relevant cells in column R starting with your first data row.
On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
Enter =R2>S2 in the formula box. Replace 2 with the first row of your selected range if it starts elsewhere.
Select Format, choose a fill color, and click OK. Click OK again to create the rule.
Open Home > Conditional Formatting > Manage Rules and check that Applies to covers the intended range, such as =$R$2:$R$1000.

Highlight Later Dates in WPS Spreadsheets
Use a formula-based conditional formatting rule in WPS Spreadsheets to compare dates in columns R and S and highlight the later date in column R.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your workbook.
- 2. Select the cells: Select the dates to format in column R, such as R2:R1000.
- 3. Add the formula: Go to Home > Conditional Formatting > New Rule, choose the formula-based rule option, and enter =R2>S2.
- 4. Set the format: Choose a fill color in the formatting options and confirm the rule. Check the selected range in Conditional Formatting > Manage Rules if needed.

Frequently Asked Questions
Will the highlight update when a calculated date changes?
Yes. The conditional formatting rule recalculates with the worksheet, so the highlight changes when the comparison result changes.
How do I avoid highlighting a row when one date is missing?
In the formula rule, use =AND(ISNUMBER(R2),ISNUMBER(S2),R2>S2). Adjust the row number to match the first row of the selected range.
Why is the wrong row being compared?
Check that the row number in the formula matches the first row of the Applies to range. For a range beginning at R5, use =R5>S5.
Can I include dates that are equal?
Yes. Edit the rule through Home > Conditional Formatting > Manage Rules and change the formula to =R2>=S2.




