Days Left in Google Sheets: Formula & How to Use It

How-to basics · Updated November 25, 2026

The formula to calculate days left in Google Sheets is =end_date - TODAY() (for example, =B2 - TODAY()), which returns the number of days between today and a future date. For a countdown that includes the current day, use =end_date - TODAY() + 1.

Why You Need a Days Left Formula

Tracking deadlines, project milestones, subscription renewals, or event countdowns is a common spreadsheet task. Manually updating a “days left” number every day is tedious and error-prone. Google Sheets’ TODAY() function recalculates automatically each time the sheet is opened or edited, so your countdown stays current without any extra work. This makes it ideal for dashboards, project trackers, and personal planners.

How the Formula Works

The core calculation is simple subtraction: =end_date - TODAY(). Google Sheets stores dates as serial numbers (the number of days since December 30, 1899), so subtracting one date from another yields the number of days between them. TODAY() returns the current date as a serial number. For example, if today is March 1, 2025, and your deadline is March 10, 2025, the formula returns 9 (because March 10 minus March 1 equals 9 days).

If you want the countdown to include the current day (so on March 1 it shows 10 days left until March 10), add 1 to the result: =B2 - TODAY() + 1. This is a common variation for event countdowns where “days left” means “including today.”

Step-by-Step: Adding a Days Left Column

  1. Open your Google Sheet in a web browser.
  2. Assume your deadline dates are in column A, starting at A2 (with headers in row 1).
  3. In cell B2, type: =A2 - TODAY()
  4. Press Enter. The result appears as a number (e.g., 15).
  5. Click on cell B2, then drag the fill handle (the small blue square at the bottom-right corner of the cell) down to copy the formula to other rows.
  6. To format the result as a plain number (not a date), select the cells, go to Format > Number > Number.

If your dates are in a different column, adjust the cell reference accordingly. The formula works the same regardless of the column letter.

Handling Past Dates and Negative Values

If a deadline has passed, the formula returns a negative number (e.g., -3). That’s technically correct, but you might want to display 0 or a message like “Overdue.” Use the MAX function to cap at zero:

=MAX(0, A2 - TODAY())

This shows 0 for any past or today’s date, and the positive countdown for future dates. To show a text label instead, combine with IF:

=IF(A2 - TODAY() < 0, "Overdue", A2 - TODAY())

This displays “Overdue” for past dates and the number of days left otherwise.

Common Problems and Fixes

  • Result shows as a date (e.g., 01/15/1900): This happens when the cell is formatted as a date. Change the format to Number via Format > Number > Number.
  • Formula returns #VALUE!: This usually means the cell containing the deadline is not recognized as a date. Ensure the cell is formatted as a date (e.g., Format > Number > Date) and contains a valid date entry.
  • Countdown doesn’t update automatically: Google Sheets recalculates TODAY() when the sheet is opened or when any edit is made. If the sheet stays open for days, the value may not update until a change occurs. To force a refresh, press Ctrl+R (Windows) or Cmd+R (Mac) to reload the page.
  • Need to exclude weekends or holidays: Use NETWORKDAYS instead. For example, =NETWORKDAYS(TODAY(), A2) returns the number of working days between today and the deadline, excluding weekends (and optionally holidays if you provide a range).

Comparing with Excel

Excel uses the same TODAY() function and the same subtraction logic. The formula =A2-TODAY() works identically in Excel. The main difference is that Excel’s TODAY() also updates when the workbook is opened, but not while it remains open unless you enable automatic calculation. In Excel, you may need to press F9 to recalculate manually if calculation is set to manual. Also, Excel’s default date system is slightly different (January 1, 1900 as serial 1), but the subtraction result is the same for dates after 1900.

Alternative Approaches for Countdowns

If you want a more visual countdown, you can use conditional formatting to color-code cells based on the number of days left. For example, highlight deadlines within 7 days in red. Select the range (e.g., B2:B10), go to Format > Conditional formatting, and set a custom formula rule like =B2<=7 to apply a red fill. This works because the formula in B2 is a number.

Another alternative is to use the DATEDIF function, though it’s less direct: =DATEDIF(TODAY(), A2, "D") also returns the number of days between two dates. However, DATEDIF can behave unexpectedly with negative differences, so simple subtraction is usually safer.

Frequently Asked Questions

How do I calculate days left including today?

Add 1 to the basic formula: =A2 - TODAY() + 1. This counts today as one of the remaining days. For example, if today is March 1 and the deadline is March 3, the formula returns 3 (March 1, 2, and 3).

Can I use this formula for a countdown to a time (like hours)?

Yes, but you need to include time in the deadline cell. Use =A2 - NOW() where NOW() returns the current date and time. Format the result as a number to see fractional days (e.g., 2.5 days). To show hours, multiply by 24: =(A2 - NOW()) * 24.

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

Because the cell is formatted as a date. Select the cell(s), go to Format > Number > Number to change it to a plain number. This is the most common formatting issue.

How do I make the countdown stop at zero and show “Overdue”?

Use =IF(A2 - TODAY() < 0, "Overdue", MAX(0, A2 - TODAY())). This shows “Overdue” for past dates, and 0 for today’s date (since MAX(0,...) caps at zero).

Does the formula work in Google Sheets mobile app?

Yes, the same formula works in the Google Sheets mobile apps for Android and iOS. The TODAY() function recalculates when the app opens the sheet. There’s no difference in syntax.

Can I exclude weekends from the days left count?

Yes, use =NETWORKDAYS(TODAY(), A2). This returns the number of working days (Monday–Friday) between today and the deadline. If you have holidays, add a third argument with a range of holiday dates, e.g., =NETWORKDAYS(TODAY(), A2, $E$2:$E$10).

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.