Formatting Issues

Highlight a Date Later Than Another in Excel

Anum MushtaqAnum Mushtaq Nov 18, 2026 869 views

Question details

The user wants to highlight dates in column R when they are later than the corresponding dates in column S.

Highlight a Date Later Than Another in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the date range

Select R2:R1000, or select the relevant cells in column R starting with your first data row.

2
Create a formula rule

On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Enter the comparison

Enter =R2>S2 in the formula box. Replace 2 with the first row of your selected range if it starts elsewhere.

4
Choose the highlight

Select Format, choose a fill color, and click OK. Click OK again to create the rule.

5
Check the applied range

Open Home > Conditional Formatting > Manage Rules and check that Applies to covers the intended range, such as =$R$2:$R$1000.

Create a Conditional Formatting Rule to Compare Dates
Exclude missing dates: If either cell can be blank or return an empty string, use =AND(ISNUMBER(R2),ISNUMBER(S2),R2>S2) instead. This highlights a row only when both cells contain numeric date values.
Compare dates in WPS Spreadsheets

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. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your workbook.
  2. 2. Select the cells: Select the dates to format in column R, such as R2:R1000.
  3. 3. Add the formula: Go to Home > Conditional Formatting > New Rule, choose the formula-based rule option, and enter =R2>S2.
  4. 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.
Compare dates row by row as calculated values change.Choose a fill color to make matching dates easy to spot.Open and edit Microsoft Excel XLSX and XLS files.Use a familiar spreadsheet interface with conditional formatting tools.
microsoft office alternative - wps office

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.