Skip to content

How to count the days until a deadline in Excel and Google Sheets

Excel & Google Sheets
=MAX(0,A2-TODAY())

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. 1Enter deadlines in column A formatted as dates.
  2. 2In B2 enter =MAX(0,A2-TODAY()) to get days remaining (never negative).
  3. 3To show negative days for overdue items, remove MAX: =A2-TODAY().
  4. 4Format column B as Number (not Date) so it shows a count of days.

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

Why does my result show a date instead of a number?

The cell is formatted as a Date. Change its format to Number or General (Ctrl+1 in Excel, Format > Number > Number in Sheets).

How do I count only business days until the deadline?

Use =NETWORKDAYS(TODAY(),A2)-1 which counts weekdays and optionally excludes holidays.

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

Last reviewed: