Count Days Until a Deadline

Excel Formulas › Date & Time

All versions

A live countdown to a due date is one of the most useful columns in any tracker. It is just subtraction from TODAY() — with a little IF polish for overdue items.


Quick formula: Subtract today's date from the deadline:
=Deadline-TODAY()

Positive means days left; negative means days overdue.

Functions used (tap for the full reference guide):

The example

A list of tasks with due dates. We want days remaining, recalculated every day.

AB
1TaskDays left
2Submit report5
3Renew permit-2 (overdue)

The formula

The core is a subtraction; TODAY() keeps it current automatically:

=B2-TODAY() // deadline minus today = days remaining

How it works

Making it readable:

  1. Subtract today's date from the deadline. Excel stores dates as numbers, so the result is a count of days.
  2. A positive number is days remaining; a negative number means the deadline has passed.
  3. TODAY() recalculates each day the workbook opens, so the countdown is always current.
  4. Wrap it in IF to label overdue items: =IF(B2<TODAY(),"Overdue",B2-TODAY()&" days").

Format the cell as a number, not a date, or 5 days will display as January 5, 1900.

Try it: interactive demo

Interactive

Enter how many days from now the deadline is; see the countdown message.

Variations

Working days until deadline

Count only business days with NETWORKDAYS.

=NETWORKDAYS(TODAY(),B2)-1

Months and days remaining

DATEDIF breaks a long countdown into months and days.

=DATEDIF(TODAY(),B2,"m")&" mo "&DATEDIF(TODAY(),B2,"md")&" d"

Pitfalls & errors

If the result shows a date instead of a number, set the cell format to General or Number.

Pair this with conditional formatting to turn rows red when days left drops below zero.

Practice workbook

📊
Download the free Count Days Until a Deadline practice workbook
Change the yellow due dates; days left and status update against today.

Frequently asked questions

Why does my countdown show a date?
The cell inherited a date format. Change it to General or Number so the day count shows as a plain number.
How do I count only working days?
Use NETWORKDAYS(TODAY(), deadline) to exclude weekends; subtract 1 if you do not want to count today.
Will it update on its own?
Yes. TODAY() recalculates whenever the workbook opens or recalculates, so the countdown stays current.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Highlight expiring dates · Workdays remaining

Function references: TODAYIFDATEDIF