ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. Highlight Overdue and Upcoming Dates in Excel

Highlight Overdue and Upcoming Dates in Excel

By ExcelReady Team·Updated November 1, 2026·5 min read

The short answer

To highlight overdue dates in Excel, select the rows, go to Home > Conditional Formatting > New Rule, choose Use a formula, and enter =AND($C2<>"",$C2<TODAY()), where C holds the due dates. Pick a red fill. For dates due within the next 7 days, add a second rule: =AND($C2>=TODAY(),$C2<=TODAY()+7). The colours update every day.

Key takeaways

  • Overdue rule: =AND($C2<>"",$C2<TODAY()), written for the first row of the selection.
  • Upcoming rule: =AND($C2>=TODAY(),$C2<=TODAY()+7) flags the next 7 days, including today.
  • Add $D2<>"Done" so finished tasks stop turning red.
  • The $ before the column letter colours the whole row from one date.
  • Count overdue items with =COUNTIFS(C2:C50,"<"&TODAY(),D2:D50,"<>Done").
On this page+
  1. How to highlight overdue dates step by step
  2. How to skip blank cells and finished tasks
  3. How to highlight dates due in the next 7 days
  4. Why is the built-in date rule not enough?
  5. How to manage several rules on one range
  6. How to count and label overdue items
  7. Common mistakes with overdue rules
  8. Practise it

To highlight overdue dates in Excel, add a conditional formatting rule that compares each due date with TODAY(). Anything earlier than today turns red, and because TODAY updates daily, the colours do too. This guide builds a task tracker step by step: overdue in red, due soon in amber, finished tasks left alone, and a count of what's late.

How to highlight overdue dates step by step#

Use a formula rule with TODAY. Here's the tracker the examples use, with due dates in column C:

ABCD
1TaskOwnerDueStatus
2Send invoiceMia03/06/2024Open
3Update CRMJon07/06/2024Done
4Team reviewMia12/06/2024Open
5Order stockAli05/06/2024In progress
6Renew licenceJon20/06/2024Open
7Board packAli10/06/2024Open

To colour overdue rows:

  1. Select A2:D7, starting from A2.
  2. Go to Home > Conditional Formatting > New Rule.
  3. Choose Use a formula to determine which cells to format.
  4. Enter =$C2<TODAY().
  5. Click Format, pick a light red fill on the Fill tab, and click OK twice.

If today is 10 June 2024, rows 2, 3 and 5 turn red. The Board pack, due today, does not: it isn't late yet.

The $ before C locks the column, so every cell in a row checks that row's due date and the whole row is coloured. The row number has no $, so it moves down row by row. The guide to highlighting a whole row explains this in more depth. The TODAY function guide covers how TODAY recalculates.

How to skip blank cells and finished tasks#

Add extra tests with AND so the rule only colours rows that really need attention. The basic rule has two problems.

First, empty due dates turn red. Excel treats an empty cell as 0, and 0 is earlier than any real date. Second, finished tasks like Update CRM stay red forever. Fix both in one formula:

Excel formula
=AND($C2<>"",$D2<>"Done",$C2<TODAY())

AND returns TRUE only when all three tests pass: there's a due date, the task isn't Done, and the date is in the past. Now only Send invoice and Order stock are red.

How to highlight dates due in the next 7 days#

Add a second rule for upcoming deadlines with a softer colour, such as amber. Select the same range and use:

Excel formula
=AND($D2<>"Done",$C2>=TODAY(),$C2<=TODAY()+7)

This colours tasks due from today up to 7 days ahead. On 10 June, Board pack (due today) and Team review (due on 12 June) turn amber. Renew licence, due on 20 June, stays plain.

Change 7 to any window you like, such as 3 or 30 days. To keep the window easy to adjust, type the number of days in a cell such as H1 and use TODAY()+$H$1 in the rule. Anyone can then change the warning period without opening the rule editor. To flag only items due today, use =$C2=TODAY(). For the maths behind these windows, see how to count days between dates.

Why is the built-in date rule not enough?#

Excel's ready-made rule doesn't have an "earlier than today" option. Under Home > Conditional Formatting > Highlight Cells Rules > A Date Occurring, you can choose fixed periods like Yesterday, Today, Tomorrow, In the last 7 days, Next week or Last month.

These are handy for quick views, such as "this week's deliveries". But a task that was due three weeks ago doesn't match any of them, so it wouldn't be flagged. That's why overdue tracking needs a formula rule with TODAY.

How to manage several rules on one range#

When rules overlap, the order decides which colour wins. Open Home > Conditional Formatting > Manage Rules and choose This Worksheet to see them all.

  • Rules higher in the list are applied first. Use the arrow buttons to move the overdue rule to the top.
  • Tick Stop If True on a rule if you don't want later rules to apply when it matches.
  • Check Applies to when the table grows. Extend it, for example to =$A$2:$D$200, so new rows are covered.

In this tracker the rules don't clash, because a date can't be both before today and on or after today. Ordering matters more when you add other rules, such as one for highlighting duplicate entries or highlighting weekends.

How to count and label overdue items#

Colours help people scan, but a number is better for a summary. COUNTIFS counts rows that meet several conditions. Join the < operator to TODAY with &:

Excel formula
=COUNTIFS(C2:C7,"<"&TODAY(),D2:D7,"<>Done")

On 10 June 2024, the result is 2. Writing "<TODAY()" without the & would not work, because inside quotes TODAY() is just text.

To add a status column instead of, or as well as, colours, use IF:

Excel formula
=IF(D2="Done","Done",IF(C2<TODAY(),"Overdue","Open"))

The guide to IF with dates shows more ways to compare dates in formulas.

Common mistakes with overdue rules#

Most broken rules come from references or from blank cells. Check these:

  1. Formula written for the wrong cell. The rule must point at the first row of the selection, here row 2.
  2. Missing $ on the column. Without $C2, the other columns check the wrong cells and the colours scatter.
  3. Blank due dates colour red. Add $C2<>"".
  4. Text dates. A date stored as text is never "less than" TODAY, so it's never flagged. Convert it to a real date.
  5. Using a fixed date. A rule like =$C2<DATE(2024,6,10) never updates. Use TODAY().

Practise it#

Flagging overdue work is one of the most practical Excel skills, and it shows up in admin and operations job tests. Practise conditional formatting in a live spreadsheet, then practise using dates in criteria with COUNTIFS and SUMIFS. Each lesson checks your work instantly. Or try the exercise on this page first.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

F2 holds the report date (in a live tracker you'd use TODAY()). How many tasks are overdue and not Done? Click G2 and use COUNTIFS: due dates in C2:C7 before $F$2, and status in D2:D7 not equal to Done.

fx
ABCDEFGH
1
Task
Owner
Due
Status
Report date
2
Send invoice
Mia
45446
Open
45453
3
Update CRM
Jon
45450
Done
4
Team review
Mia
45455
Open
5
Order stock
Ali
45448
In progress
6
Renew licence
Jon
45463
Open
7
Board pack
Ali
45453
Open
8
9
10

Tip: Join the operator to the date cell with &: "<"&$F$2. Not equal to is "<>Done".

Practise this in a lesson

LessonConditional formattingMake important numbers stand out: highlight values over a limit, duplicate IDs and the top 3, then color whole rows with a formula rule and a $ on the column.LessonDates in criteria: totals by date range and monthCount and total rows between two dates with COUNTIFS and SUMIFS, build a monthly summary, and drive the date range from input cells.Function guideTODAYUse Excel's TODAY function for days until a deadline, overdue flags and ages that update by themselves. Examples, pitfalls and live practice.

Frequently asked questions

How do I highlight dates before today in Excel?

+

Use a formula rule: select the dates, choose Home > Conditional Formatting > New Rule > Use a formula, enter =A2<TODAY() for a range starting at A2, and pick a fill colour.

How do I highlight dates within the next 30 days?

+

Use =AND(A2>=TODAY(),A2<=TODAY()+30) as the rule formula. It colours dates from today up to 30 days ahead. Change 30 to any number of days.

Why are my blank cells highlighted as overdue?

+

Excel treats an empty cell as 0, which is earlier than today, so it counts as overdue. Add a blank check: =AND(A2<>"",A2<TODAY()).

How do I stop highlighting a task once it is done?

+

Add the status to the rule: =AND($D2<>"Done",$C2<TODAY()). When someone types Done in column D, the row loses its colour.

Can I highlight overdue dates without a formula?

+

Partly. Home > Conditional Formatting > Highlight Cells Rules > A Date Occurring offers options like Yesterday or Last week, but it has no option for any date before today. A formula rule covers that.

Sources

  • Use conditional formatting to highlight information - Microsoft Support
  • TODAY function - Microsoft Support
  • COUNTIFS function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How to highlight overdue dates step by step
  2. How to skip blank cells and finished tasks
  3. How to highlight dates due in the next 7 days
  4. Why is the built-in date rule not enough?
  5. How to manage several rules on one range
  6. How to count and label overdue items
  7. Common mistakes with overdue rules
  8. Practise it

Keep reading

Dates· 6 min read

How to Highlight Weekends in Excel

To highlight weekends in Excel, select the dates, go to Home > Conditional Formatting > New Rule, choose Use a formula, and enter =WEEKDAY(A2,2)>5. With return type 2, Monday is 1 and Sunday is 7, so values above 5 are Saturday and Sunday. Pick a fill colour and click OK. Add AND(A2<>"",...) so empty cells aren't coloured.

Data tools· 6 min read

Find and Highlight Duplicates in Excel

To highlight duplicates in Excel, select the cells, go to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values, and click OK. Every value that appears more than once turns red. To flag or count repeats with a formula instead, use COUNTIF: =COUNTIF($A$2:$A$9,A2)>1 is TRUE for a duplicate.

Data tools· 5 min read

Highlight an Entire Row Based on a Cell Value

To highlight a row based on a cell value, select the whole table without the header, such as A2:E9, then go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Type =$D2="Late", choose a fill colour. The $ locks column D, so each row checks its own status.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free