FormulaCraft

How to count days until a due date in Excel and Google Sheets

Excel & Google Sheets
=B2-TODAY()

Verified example

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

Due DateDays Until Due
2024-01-01
2023-12-15
2023-11-30

=B2-TODAY()-46203

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 your due date in cell B2.
  2. 2In cell C2, enter the formula =B2-TODAY().
  3. 3Press Enter to see the number of days remaining until the due date.

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 date is in a different format?

Make sure your due date is recognized as a date by Excel or Google Sheets. You can change the format by selecting the cell and choosing the Date format from the toolbar.

Can I highlight cells based on the number of days left?

Yes, use conditional formatting to change the cell color based on the number of days remaining.

Formulas used

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

Last reviewed: