How to Count the Days Until a Date in Google Sheets: Days Left, Overdue, Business Days and a Countdown That Updates Itself (2026)
A list of deadlines is easier to act on when every row says how many days are left. Google Sheets stores dates as numbers, so the count is a one-line subtraction, and because TODAY() moves forward on its own, the countdown updates every day without you touching it. This guide shows the basic formula, a label that says Overdue, Due today or days left, working days with holidays, weeks and months left, one formula for a whole column, a count of what is due soon, and row colours.
The short answer
- Days left:
=B2-TODAY()(or=DAYS(B2, TODAY())) with the date in B2. Negative means the date has passed. - Overdue / Due today / days left:
=IF(B2="", "", IF(B2<$G$1, "Overdue by "&($G$1-B2)&" days", IF(B2=$G$1, "Due today", (B2-$G$1)&" days left")))with=TODAY()in G1. - Working days left:
=IF(B2="", "", NETWORKDAYS($G$1, B2, $I$2:$I$3))with holiday dates in I2:I3. - Whole column at once:
=ARRAYFORMULA(IF(B2:B="", "", B2:B-$G$1))
The example
A task list with the task in column A and the due date in column B, rows 2 to 8. Put Today in F1 and =TODAY() in G1. To get exactly the numbers below while you follow along, type 12/1/2026 in G1 instead (a Tuesday), then switch back to =TODAY() when you are done. Holidays go in I2:I3: 12/25/2026 and 1/1/2027.
| Row | A: Task | B: Due date | C: Days left | D: Status | E: Working days |
|---|---|---|---|---|---|
| 2 | Renew domain | 12/15/2026 | 14 | 14 days left | 11 |
| 3 | Pay contractor invoice | 12/1/2026 | 0 | Due today | 1 |
| 4 | Send November report | 11/27/2026 | -4 | Overdue by 4 days | -3 |
| 5 | Car registration | 3/31/2027 | 120 | 120 days left | 85 |
| 6 | Book holiday travel | 12/18/2026 | 17 | 17 days left | 14 |
| 7 | Ask for a quote | (no date yet) | (empty) | (empty) | (empty) |
| 8 | Year-end close | 12/31/2026 | 30 | 30 days left | 22 |
Step 1: count the days left
In C2 enter this and fill it down to C8:
=IF(B2="", "", B2-$G$1)
Google Sheets stores each date as a number of days, so the due date minus today is the number of days between them. A positive result is days left, 0 means it is due today and a negative result is days overdue (row 4 returns −4). The IF(B2="", "", …) part keeps row 7 empty; without it a missing date counts as a date in 1899, so the result is a large negative number (−46357 on 12/1/2026) that Sheets may even display as an odd date such as 1/27/1773.
The DAYS function does the same subtraction and reads a little more clearly. Google describes it as returning “the number of days between two dates”, with the end date first:
=IF(B2="", "", DAYS(B2, $G$1))
Seeing a date such as 1/13/1900 instead of a number? The cell has a date format. Select column C and choose Format › Number › Number (Google’s number format help); the cell then shows 14.00, the same count with two decimal places. Google’s DATEDIF help describes the same symptom and the same fix.
Why a cell for today instead of TODAY() in every row?
You can write =B2-TODAY() in every row and it works. One =TODAY() cell is easier to test (type a fixed date there to check your formulas) and keeps one volatile function in the sheet instead of hundreds: Google’s TODAY help notes that TODAY is a volatile function and can hurt spreadsheet performance.
Step 2: show Overdue, Due today or days left
A number such as −4 is easy to misread. In D2 enter this and fill it down:
=IF(B2="", "", IF(B2<$G$1, "Overdue by "&($G$1-B2)&" days", IF(B2=$G$1, "Due today", (B2-$G$1)&" days left")))
Read it from the outside in: no date gives an empty cell; a date before today gives Overdue by 4 days; a date equal to today gives Due today; anything else gives 14 days left. Google’s IF help warns that putting the true and false values in the wrong order is the most common source of problems with IF, so check the Overdue row first. A date exactly one day away reads “1 days left”; if that bothers you, add another IF for B2-$G$1=1.
Step 3: count working days instead of calendar days
For deadlines that only move on business days, use NETWORKDAYS. Google’s help says it “only treats Saturday and Sunday as the weekend”, and its optional third argument is a range of holiday dates. In E2, filled down:
=IF(B2="", "", NETWORKDAYS($G$1, B2, $I$2:$I$3))
NETWORKDAYS counts both ends when they are working days, so the invoice due today shows 1 and Renew domain (Tuesday 12/1 to Tuesday 12/15) shows 11. Car registration shows 85 because the two holidays in I2:I3 fall on weekdays inside its range; Year-end close shows 22 because 12/25 is skipped. A date in the past gives a negative count (−3 for row 4: Friday, Monday and Tuesday).
To count only the working days still ahead, starting tomorrow:
=IF(B2="", "", NETWORKDAYS($G$1+1, B2, $I$2:$I$3))
That gives 10 for Renew domain and 84 for Car registration. If your weekend is not Saturday and Sunday, NETWORKDAYS.INTL takes a weekend code: Google lists 7 for Friday/Saturday and 11 for Sunday only, or a seven-character string such as “0000011” where the first digit is Monday.
Step 4: weeks or months left
For longer countdowns, split the days into weeks and days:
=IF(B2="", "", INT((B2-$G$1)/7)&" weeks, "&MOD(B2-$G$1, 7)&" days")
| Row | Result |
|---|---|
| 2 | 2 weeks, 0 days |
| 5 | 17 weeks, 1 days |
| 6 | 2 weeks, 3 days |
| 8 | 4 weeks, 2 days |
For months, use DATEDIF, which Google describes as calculating “the number of days, months, or years between two dates”. The “M” unit gives whole months and “MD” the days left after whole months:
=DATEDIF($G$1, B5, "M")&" months, "&DATEDIF($G$1, B5, "MD")&" days"
For Car registration (12/1/2026 to 3/31/2027) it returns 3 months, 30 days. DATEDIF needs the earlier date first. When the date has already passed, it returns an error instead of a negative number, so keep plain subtraction or DAYS for the main countdown.
One formula for the whole column
Instead of filling C2 down, clear C2:C8 and put this in C2 only:
=ARRAYFORMULA(IF(B2:B="", "", B2:B-$G$1))
It returns the days left for every row that has a date, leaves empty rows empty, and covers rows you add later. If a cell below C2 already holds something, the formula can’t expand and shows an error; clear that cell.
Days since a date
Swap the order to count how long ago something happened: =$G$1-B4 returns 4 for the November report. The same Format › Number › Number fix applies.
How many deadlines are coming up?
COUNTIFS counts dates inside a window. Google’s own sample joins an operator to a date with "<"&DATE(1969,7,20); the same pattern works with the today cell:
| What | Formula | Result on the example |
|---|---|---|
| Due in the next 7 days, including today | =COUNTIFS(B2:B8, ">="&$G$1, B2:B8, "<="&$G$1+7) | 1 |
| Due in the next 30 days, including today | =COUNTIFS(B2:B8, ">="&$G$1, B2:B8, "<="&$G$1+30) | 4 |
| Overdue | =COUNTIF(B2:B8, "<"&$G$1) | 1 |
The empty date in row 7 is not counted as overdue.
Colour overdue and due-soon rows
Select A2:D8 and choose Format › Conditional formatting. In the Conditional format rules sidebar, under Format cells if…, choose Custom formula is (the last option in the list) and enter this in the Value or formula box:
=AND($B2<>"", $B2<$G$1)
Under Formatting style, click the Fill color button and pick red (the Text color button sits right next to it, so check you have the fill), then click Done. Click + Add another rule, choose Custom formula is again, and enter this formula with a yellow fill for anything due in the next 14 days:
=AND($B2<>"", $B2>=$G$1, $B2-$G$1<=14)
Row 4 turns red, and rows 2 and 3 turn yellow. The dollar signs lock column B and cell G1 so every row checks its own due date against the same today, as Google’s conditional formatting help explains for formatting an entire row based on one cell. For more on this, see highlighting overdue tasks.
Common problems
- The result is a date, not a number. Format the cell as Format › Number › Number.
- #VALUE! instead of a count. The due date is probably text, not a real date (for example typed with dots or in another locale’s order). A real date is right-aligned by default; retype it, or check File › Settings for the spreadsheet’s locale.
- Every row shows a huge negative number or an odd date such as 1/27/1773. The date cells are empty and there is no
IF(B2="", "", …)guard. - The count is off by one. Subtraction counts the days between the dates (tomorrow is 1); NETWORKDAYS counts both ends. Pick one and use it everywhere.
- The countdown didn’t change overnight. Check that G1 holds
=TODAY()and not a typed date.
FAQ
How do I calculate the days until a date in Google Sheets?
Subtract today from the date: with the date in B2, =B2-TODAY() returns the number of days left. =DAYS(B2, TODAY()) gives the same result. If the answer is negative, the date has passed; if it shows a date in 1900 instead of a number, choose Format › Number › Number for that cell (it then shows 14.00 rather than 14).
Does the countdown update by itself every day?
Yes, as long as it uses TODAY(). Google’s TODAY help says it always represents the current date the last time the spreadsheet was recalculated, and Google’s calculation-settings help says TODAY changes every new day. If you type a fixed date instead of TODAY(), the count stays frozen.
How do I show “Overdue” instead of a negative number?
Wrap the subtraction in IF: =IF(B2="", "", IF(B2<$G$1, "Overdue by "&($G$1-B2)&" days", IF(B2=$G$1, "Due today", (B2-$G$1)&" days left"))) (with today’s date in G1). It shows Overdue by N days, Due today, or N days left, and stays empty when there is no date.
How do I count only working days until a deadline?
Use NETWORKDAYS: =IF(B2="", "", NETWORKDAYS($G$1, B2, $I$2:$I$3)). Google’s help says NETWORKDAYS only treats Saturday and Sunday as the weekend; the optional third argument is a range of holiday dates to skip. It counts both today and the deadline if they are working days; use $G$1+1 as the start to leave today out.
Why does DATEDIF give an error for a date that has passed?
DATEDIF expects the start date first and the end date second. When the end date is earlier, it returns an error instead of a negative number, so use plain subtraction or DAYS for a countdown that can go below zero, and keep DATEDIF for whole months or years left.
How do I count the days until a date for a whole column at once?
Put one formula in the first row: =ARRAYFORMULA(IF(B2:B="", "", B2:B-$G$1)). It fills every row that has a date and leaves rows without one empty. Clear the cells below it first, or it can’t expand.
See SheetReminders
Related guides
- How to Highlight Overdue Tasks in Google Sheets and Send Email Reminders (2026)
- How to Send Automatic Email Reminders Based on a Date in Google Sheets (2026)
- How to Track Bill Due Dates in Google Sheets: Mark Bills Paid, See What’s Due in the Next 30 Days and Get Email Reminders (2026)
- How to Track Follow-Ups in Google Sheets and Get a Daily Reminder Email (2026)
- How to Get Contract Renewal & Expiration Alerts from Google Sheets (2026)
- How to Track Subscriptions in Google Sheets and Get Reminders Before Renewals and Free Trials Charge You (2026)