FormulaCraft

How to highlight upcoming due dates in Excel and Google Sheets

Topic:Conditional formatting
Excel & Google Sheets
=AND(A2<TODAY()+7,A2>TODAY())

Verified example

Computed by a real spreadsheet engine on the sample data below.

Due DateTask
2023-10-15Report
2023-10-20Meeting
2023-10-25Presentation
2023-10-30Review

=AND(A2<TODAY()+7,A2>TODAY())FALSE

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the range of cells containing your due dates.
  2. 2Go to the Home tab and click on Conditional Formatting.
  3. 3Choose 'New Rule' and select 'Use a formula to determine which cells to format'.
  4. 4Enter the formula `=AND(A2<TODAY()+7,A2>TODAY())` and set your desired formatting style.
  5. 5Click OK to apply the rule.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if my due dates are in a different column?

Simply replace `A2` in the formula with the appropriate cell reference for your column.

Can I highlight past due dates as well?

Yes, use a formula like `=A2<TODAY()` to highlight past due dates.

How do I remove the conditional formatting once it's applied?

Select the formatted cells, go to Conditional Formatting, and choose 'Clear Rules'.

More on Conditional formatting

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: