Excel Formulas to Subtract a Past Date From Today's Date

📅 Jun 02, 2026 📝 Sarah Miller

Manually tracking elapsed time for aging invoices or project milestones can lead to costly scheduling errors. While many organizations rely on expensive database platforms or external project management software to monitor timelines, Microsoft Excel offers a direct, native solution.

Utilizing dynamic date calculations grants you instant, real-time tracking capabilities that update automatically every day. However, note this critical stipulation: your formula cell must be formatted as a "Number" or "General" rather than a "Date" to avoid display errors. For instance, subtracting a past invoice date from today's date instantly yields precise accounts receivable aging.

Below, we outline the exact syntax and formulas to implement this tracking tool seamlessly.

Excel Formulas to Subtract a Past Date From Today's Date

Excel Formula to Subtract Today's Date with a Past Date: A Comprehensive Guide

Calculating the difference between today's date and a past date is one of the most common tasks in Microsoft Excel. Whether you are tracking project deadlines, calculating employee tenure, analyzing aging invoices, or counting down days, Excel provides several powerful methods to handle date subtraction seamlessly.

Because Excel stores dates as sequential serial numbers (where January 1, 1900, is represented as number 1, January 2 as 2, and so on), performing mathematical operations on dates is surprisingly simple. In this guide, we will explore the different formulas and functions you can use to subtract today's date from a past date, complete with step-by-step instructions, troubleshooting tips, and real-world examples.

Understanding the Core Concept: The TODAY() Function

To subtract a past date from today's date dynamically, you must use Excel's built-in TODAY() function. This function takes no arguments and always returns the current date based on your computer system's clock. Every time your worksheet is opened or recalculated, the formula updates automatically.

The basic syntax is simple:

=TODAY()

Method 1: Simple Subtraction (The Direct Approach)

The most straightforward way to find the number of days between today and a past date is direct subtraction. Since Excel treats dates as numbers under the hood, you can simply subtract the cell containing the past date from the TODAY() function.

The Formula:

=TODAY() - Past_Date_Cell

Step-by-Step Example:

Imagine you have a project start date in cell A2 (e.g., January 15, 2023). To find out how many days have elapsed between that date and today, follow these steps:

  1. Select an empty cell (for example, B2) where you want the result to appear.
  2. Type the following formula:
    =TODAY() - A2
  3. Press Enter.
Important Formatting Note: If your result looks like a weird date (e.g., 01/15/1900) instead of a regular number, do not panic! Excel sometimes automatically formats the formula cell as a "Date" because it references other dates. To fix this, select the cell, go to the Home tab, look at the Number group dropdown, and change the format from Date to General or Number.

Method 2: Using the Hidden DATEDIF Function

While direct subtraction is excellent for finding the total number of days, it cannot easily calculate the difference in months or years. For more granular control, you should use the DATEDIF function.

Note: DATEDIF is a "hidden" function in Excel. It will not appear in the formula autocomplete list as you type it, but it works perfectly in all modern versions of Excel.

Syntax:

=DATEDIF(start_date, end_date, "unit")
  • start_date: The older date (your past date).
  • end_date: The newer date (in this case, TODAY()).
  • unit: The type of interval you want to return (specified in double quotes).

DATEDIF Unit Options:

Unit Description Output Format
"d" Calculates the number of complete days. Total days elapsed.
"m" Calculates the number of complete months. Total months elapsed.
"y" Calculates the number of complete years. Total years elapsed.
"ym" Calculates months, ignoring days and years. Remaining months (0-11).
"md" Calculates days, ignoring months and years. Remaining days (0-30).

Example Formulas:

If cell A2 contains your past date, you can write the following formulas:

  • For total days elapsed:
    =DATEDIF(A2, TODAY(), "d")
  • For total months elapsed:
    =DATEDIF(A2, TODAY(), "m")
  • For total years elapsed:
    =DATEDIF(A2, TODAY(), "y")

Creating a Detailed Time Counter:

You can combine different DATEDIF parameters using the ampersand (&) operator to display highly descriptive outputs, such as: "5 Years, 3 Months, 12 Days".

=DATEDIF(A2, TODAY(), "y") & " Years, " & DATEDIF(A2, TODAY(), "ym") & " Months, " & DATEDIF(A2, TODAY(), "md") & " Days"

Method 3: Calculating Working Days Only (Excluding Weekends)

In project management and business environments, you often need to know how many working days (business days) have passed since a task was initiated. Standard subtraction includes weekends, which can skew performance metrics. To exclude weekends and national holidays, use the NETWORKDAYS function.

Syntax:

=NETWORKDAYS(start_date, end_date, [holidays])

How to use it with TODAY():

To find the active working days between a past date in cell A2 and today, use this formula:

=NETWORKDAYS(A2, TODAY())

By default, this formula assumes Saturday and Sunday are the weekend days. If you work in a region with different weekend days (e.g., Friday and Saturday), you can use the more flexible NETWORKDAYS.INTL function:

=NETWORKDAYS.INTL(A2, TODAY(), 7)

(The parameter "7" in the formula above specifies Friday and Saturday as the official weekend.)

Adding Holidays to the Calculation:

If you want to exclude public holidays as well, list your holiday dates in a separate range (e.g., E2:E10) and reference that range in your formula:

=NETWORKDAYS(A2, TODAY(), E2:E10)

Practical Use Cases & Scenario Examples

1. Tracking Invoice Aging (Days Overdue)

If you have an invoice due date listed in cell B2, you can calculate how many days the payment is overdue using a simple logical wrapper. This ensures you do not get negative numbers for invoices that are not yet due.

=IF(TODAY() > B2, TODAY() - B2, 0)

This formula checks if today's date is greater than the past due date. If it is, it calculates the elapsed days; if not, it displays a clean "0".

2. Calculating Employee Tenure or Age

To calculate how long an employee has worked at your company based on their hire date in cell C2, you can use:

=DATEDIF(C2, TODAY(), "y") & " Years, " & DATEDIF(C2, TODAY(), "ym") & " Months"

Troubleshooting Common Errors

If your formula returns an error, check the following common issues:

  • #VALUE! Error: This typically occurs when the past date is stored as text rather than a real date serial number. To fix this, make sure your dates are formatted properly, or use the DATEVALUE function to convert textual dates back into date formats.
  • #NUM! Error: This happens in the DATEDIF function if the first date (start date) is newer than the second date (end date). Since you are subtracting a past date from today, make sure your past date cell is always placed first in the argument list: =DATEDIF(Past_Date, TODAY(), "d").
  • Incorrect Negative Values: If you are doing basic subtraction and get a negative number, check if you accidentally formatted your formula as =A2 - TODAY() instead of =TODAY() - A2.

Summary: Which Formula Should You Use?

To recap, choose your approach based on your specific goal:

  • Use =TODAY() - A2 for a quick, simple calculation of raw calendar days.
  • Use DATEDIF when you need the output configured cleanly in months, years, or a combined custom format.
  • Use NETWORKDAYS when you need to calculate professional timelines, excluding weekends and statutory holidays.

By mastering these dynamic date calculation formulas, you can automate trackers, create visual dashboards, and keep your Excel data fully optimized and up-to-date.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.