A live countdown — days until a deadline, days since an invoice — is just date subtraction. Because dates are stored as numbers, future - TODAY() gives the days between, and it refreshes itself every day the file opens.
The example
Days remaining until each deadline (as of today).
| A | B | |
|---|---|---|
| 1 | Deadline | Days left |
| 2 | 7/01/2026 | 15 |
| 3 | 6/20/2026 | 4 |
| 4 | 6/10/2026 | -6 |
The formula
Days remaining in B2:
How it works
Date math is plain subtraction:
- Excel stores each date as a serial number (days since 1900), so subtracting two dates yields a count of days.
A2 - TODAY()gives days until A2 — positive while it’s in the future.- Flip it —
TODAY() - A2— for days since a past date (e.g. invoice age). - Format the result as a number; if it shows as a date, set the cell format to General or Number.
Working days only? Use =NETWORKDAYS(TODAY(), A2) to count business days until the deadline, skipping weekends.
Try it: interactive demo
Pick a target date; see days until (or since) today.
Variations
Days since a past date
Invoice age in days:
Working days until
Skip weekends:
Weeks or months remaining
Divide by 7, or use DATEDIF for whole months:
Pitfalls & errors
Result shows as a date. Subtracting dates can inherit date formatting. Set the cell to Number/General to see the day count.
TODAY() changes every day. That’s the point — but it means the value isn’t fixed. To freeze a countdown at a moment, paste the result as a value.
Text dates won’t subtract. If A2 is text, you get #VALUE!. Convert to a real date first.
Practice workbook
Frequently asked questions
How do I calculate days until a date in Excel?
How do I count only working days until a date?
Why does my days-until result show as a date?
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