Formatting Issues

How to Highlight Entire Rows Based on Today's Date in Excel

John WilsonJohn Wilson Nov 4, 2026 869 views

Question details

The user wants to highlight entire rows in a spreadsheet if a specific date column contains today's date or an earlier date, without affecting rows with blank date cells.

How to Highlight Entire Rows Based on Today's Date in Excel
Product
Excel
Device & OS
not provided
Scenario
Tracking tasks or deadlines where overdue or due-today items need to stand out visually in a large dataset.
Observed behavior
Needs a custom formula-based conditional formatting rule applied to the data range that checks the date column against the TODAY() function and ignores blank values.
Before you start

Ensure your target date column contains valid Excel date values rather than text strings, and make a note of the exact range of your dataset (e.g., A2:N100).

Solution 1Recommended

Use a Formula-Based Conditional Formatting Rule

Use the AND and TODAY functions in a custom formatting rule to highlight rows based on dates in a specific column.

By using a formula like =AND($N2<>"",$N2<=TODAY()), Excel checks two conditions: first, that the cell in column N is not blank, and second, that the date is less than or equal to today's date. The dollar sign ($) locks the column reference so that the entire row gets highlighted based exclusively on that single column's value.

1
Select the data range

Click and drag to select your entire data range (e.g., A2:N100). Make sure to start your selection from the first row of actual data, excluding the header row.

2
Open Conditional Formatting

Go to the Home tab on the Excel ribbon, click on Conditional Formatting, and select New Rule from the dropdown menu.

3
Enter the custom formula

Choose the option 'Use a formula to determine which cells to format'. In the formula box, enter =AND($N2<>"",$N2<=TODAY()), adjusting the column letter (N) and the starting row number (2) to match the upper-left cell of your selected data.

4
Apply your formatting preference

Click the Format button, navigate to the Fill tab to choose your preferred highlight color, and click OK twice to apply the new rule to your spreadsheet.

Use a Formula-Based Conditional Formatting Rule
Formula Adaptation: Always ensure the row number in your conditional formatting formula exactly matches the very first row of your selected data range, otherwise the highlighting will be misaligned.

Easily Apply Conditional Formatting with WPS Spreadsheet

WPS Spreadsheet offers identical conditional formatting capabilities as Excel. You can quickly set up date-based row highlighting to manage your deadlines effectively without changing your workflow.

  1. 1. Select the data range in WPS: Highlight all the cells you want to format in your WPS Spreadsheet, starting from your first data row.
  2. 2. Access Conditional Formatting: Navigate to the Home tab on the top menu, click on Conditional Formatting, and choose New Rule.
  3. 3. Input the TODAY function formula: Select 'Use a formula to determine which cells to format' and type =AND($N2<>"",$N2<=TODAY()).
  4. 4. Set the format and apply: Click Format to pick a background color, then click OK to highlight your due and overdue rows automatically.
Fully compatible with Microsoft Excel (.xlsx) formats and complex formulas.Intuitive Conditional Formatting menu for quick task and deadline tracking.Lightweight software that processes large datasets and formatting rules smoothly.Free to download and use for all your daily spreadsheet needs.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting highlighting the wrong rows?

This usually happens if the row number in your formula (e.g., $N2) doesn't match the top row of your selected data range. For example, if you selected the range A4:Z100, your formula must start with row 4 (i.e., =AND($N4<>"",$N4<=TODAY())).

How do I highlight rows only if the date is exactly today?

To highlight tasks due exactly today, change your formatting formula to =$N2=TODAY() in the conditional formatting rule menu. Ensure the column is locked with the dollar sign ($) so the entire row is formatted properly.

Will this formatting formula update automatically tomorrow?

Yes, the TODAY() function is completely dynamic. Whenever you open the spreadsheet or trigger a calculation, the formatting will instantly update to reflect your computer's current system date.

How do I highlight rows for future dates instead of past ones?

To highlight upcoming dates, simply modify the operator in your formula to "greater than". For example, use the formula =AND($N2<>"",$N2>TODAY()) to apply formatting to rows where the deadline is in the future.