Remaining Days Calculator Excel: How to Make One
In this article
- Why You Might Need a Remaining Days Formula
- The Basic Formula: End Date Minus Today
- How to Make It Update Automatically
- Counting Workdays Only (Business Days Remaining)
- Handling Dates in the Past or Future
- Common Mistakes and How to Avoid Them
- Alternatives: DATEDIF and Other Functions
- Frequently Asked Questions
You can calculate remaining days in Excel with a simple formula: =EndDate - TODAY(), which returns the number of days left between today and a future date. This article explains how to build that formula, handle different scenarios like workdays or holidays, and avoid common mistakes.
Why You Might Need a Remaining Days Formula
Tracking deadlines is a core part of many jobs and personal projects. Whether you're counting down to a project delivery, a subscription renewal, a visa expiry, or a birthday, knowing exactly how many days are left helps with planning and prioritization. Excel is a common tool for this because it stores dates as serial numbers, making arithmetic straightforward.
For example, if a contract ends on December 31, 2025, and today is November 15, 2025, the formula =DATE(2025,12,31)-TODAY() returns 46. This number updates automatically each day, so you don't have to recalculate manually.
The Basic Formula: End Date Minus Today
The simplest remaining days calculation is:
=EndDate - TODAY()
Where EndDate is a cell containing a date (e.g., A2), or a date entered directly with the DATE function. The TODAY() function returns the current date, and Excel subtracts the two serial numbers to give the difference in days.
If the result is negative, the date has already passed. You can handle that with an IF statement:
=IF(A2-TODAY()<0, "Past due", A2-TODAY())
This shows "Past due" instead of a negative number, which is often clearer for deadline tracking.
How to Make It Update Automatically
The TODAY() function is volatile, meaning it recalculates every time the workbook opens or when a change is made. To ensure your remaining days always reflect the current date:
- Use
TODAY()in the formula, not a static date. - Press
F9to force a recalculation if the sheet doesn't update. - Set calculation to automatic: Formulas > Calculation Options > Automatic.
If you need a static snapshot (e.g., for a report), replace TODAY() with a cell that contains the date, and don't update that cell.
Counting Workdays Only (Business Days Remaining)
Sometimes you only care about weekdays, excluding weekends and holidays. Excel's NETWORKDAYS function does this:
=NETWORKDAYS(TODAY(), EndDate, Holidays)
This returns the number of working days between today and the end date, inclusive of both. The third argument is optional; it's a range of cells containing holiday dates. For example, if you have holidays in D2:D10, the formula becomes:
=NETWORKDAYS(TODAY(), A2, D2:D10)
Note that this counts both the start and end days. If you want to exclude today (because it's already started), subtract 1: =NETWORKDAYS(TODAY()+1, A2, D2:D10).
Handling Dates in the Past or Future
If the end date is in the past, =EndDate - TODAY() gives a negative number. To show a more meaningful result, use MAX:
=MAX(0, A2-TODAY())
This shows 0 instead of a negative. Alternatively, use IF to show "Expired" or "Complete". For future dates, the formula works as expected. If you need to count days remaining in a month or year, use EOMONTH:
=EOMONTH(TODAY(),0)-TODAY()
This gives the days left in the current month. For days left in the year: =DATE(YEAR(TODAY()),12,31)-TODAY().
Common Mistakes and How to Avoid Them
- Text dates: If your date is stored as text, the formula won't work. Use
DATEVALUEto convert it, or format the cell as a date. - Time components: If your date cells include times (e.g., 12/31/2025 14:00), the subtraction may return a decimal. Use
INTto round down:=INT(A2-TODAY()). - Wrong cell references: Ensure the end date cell is absolute if copying the formula:
=$A$2-TODAY(). - Regional date formats: Excel may interpret dates differently depending on system settings. Use the
DATEfunction to avoid ambiguity:=DATE(2025,12,31)-TODAY().
Alternatives: DATEDIF and Other Functions
Excel also has DATEDIF, which calculates the difference in days, months, or years. The syntax for days is:
=DATEDIF(TODAY(), A2, "d")
This returns the number of full days between the two dates. It's similar to subtraction but ignores time components. For months or years remaining, use "m" or "y".
For counting down to a specific time (e.g., hours remaining), you can multiply the day difference by 24 and add the time difference, but that's beyond the scope of a simple days calculator.
Frequently Asked Questions
How do I make the remaining days not go negative?
Use the MAX function: =MAX(0, A2-TODAY()). This caps the result at zero. Alternatively, use IF to display a custom message like "Expired" when the date is past.
Does the formula update automatically?
Yes, TODAY() recalculates whenever the workbook opens or any change is made. If it doesn't update, press F9 or check that calculation is set to automatic in Formulas > Calculation Options.
Can I count only weekdays remaining?
Yes, use NETWORKDAYS(TODAY(), A2). This excludes weekends. To exclude holidays, add a range of holiday dates as the third argument.
What if my date is in text format?
Convert it to a real date using DATEVALUE, e.g., =DATEVALUE("12/31/2025"). Then use that in your formula. Alternatively, use the DATE function with year, month, and day numbers.
How do I calculate days remaining in a month or year?
For the current month: =EOMONTH(TODAY(),0)-TODAY(). For the current year: =DATE(YEAR(TODAY()),12,31)-TODAY(). Both return the number of days left, excluding today.
Is there a way to show the result as "X days left"?
Yes, use concatenation: =A2-TODAY() & " days left". This turns the number into text, so you can't use it in further calculations. For a numeric result that also displays text, use a custom number format like 0 "days left".