Clarified Potential

JANUARY 29, 2025

How to add and subtract a date from today in Excel

How to add and subtract a date from today in Excel

Date manipulation in Microsoft Excel is an essential skill for managing project timelines, tracking due dates, or calculating the number of days difference between specific dates.

Excel stores dates as a serial number of the current system date, making it possible to perform arithmetic operations like adding or subtracting days, months, or years.

Using simple formulas such as the TODAY function, EDATE function, or even custom number formats, you can easily handle tasks like determining a future date, calculating a past date, or adjusting a date column to fit project deadlines.

Whether you’re working with a single column of worksheet dates, a specific number of days, or advanced features like Power Query and VBA macros, Excel offers various worksheet functions to simplify your work.

In this post, we’ll explore practical examples and easy ways to handle date subtraction, missing dates, and custom format adjustments for your business and personal needs.

You may also want to see How to delete multiple sheets or tabs in Excel.

Add and subtract a date from today in Excel

Here’s how you can add or subtract a date from today’s date in Microsoft Excel:

 

1. Understanding Dates in Excel
  • Microsoft Excel stores dates as serial numbers, representing the date value relative to a base date.

  • For instance, today’s date is represented as the serial number of the current system date.

  • You can manipulate dates using worksheet functions, such as the TODAY function, DATEDIF function, EDATE function, and simple arithmetic operations.

 

2. Adding or Subtracting Days

To add or subtract a specific number of days to/from today’s date:

  1. Enter =TODAY() in a blank cell (e.g., Cell B2) to display the current date.

  2. Use simple subtraction or addition:

    • To add days: =TODAY() + [number_of_days]

    • To subtract days: =TODAY() – [number_of_days]

    • Example: =TODAY() + 30 gives a future date that is 30 days after today’s date.

    • A negative number (e.g., =TODAY() – 15) provides a past date.

 

3. Adding or Subtracting Months

To add or subtract a specific number of months, use the EDATE function:

  • Formula: =EDATE([start_date], [number_of_months])

  • Example:

    • =EDATE(TODAY(), 6) gives a future date 6 months ahead.

    • =EDATE(TODAY(), -3) calculates a negative value for a date 3 months earlier.

 

You may also want to see: How to calculate weighted average in Excel with percentages.

 

4. Adding or Subtracting Years

To work with years, use the YEAR function or EDATE:

  • Formula: =DATE(YEAR(TODAY()) + [number_of_years], MONTH(TODAY()), DAY(TODAY()))

  • Example:

    • =DATE(YEAR(TODAY()) + 2, MONTH(TODAY()), DAY(TODAY())) calculates the current date two years in the future.

 

5. Calculating Date Differences

To calculate the number of days difference between two dates:

  1. Use the DATEDIF function:

    • Formula: =DATEDIF([start_date], [end_date], “d”)

    • Example: If Cell B2 contains a start date and Cell C2 contains an end date, use =DATEDIF(B2, C2, “d”) to get the total number of days.

  2. For business days, use the NETWORKDAYS function:

    • Formula: =NETWORKDAYS([start_date], [end_date]).

 

6. Practical Examples for Worksheets
  • Project timelines: Calculate a project deadline:

    • =TODAY() + 45 gives a specific date for the due date 45 days from now.

  • Checking account: Use date columns to subtract past dates from the current time to find the number of days difference.

  • Custom number format: Highlight date formats by using the Format Cells dialog box to apply a custom format (e.g., dd/mm/yyyy).

 

You may also want to see: How to apply the same formula to multiple cells in Excel.

 

7. Handling Negative Results

When subtracting dates, a negative result can appear:

  • Example: =A1 – B1 may show ##### if the result is negative. Fix it with the ABS function:

    • Formula: =ABS([value_of_the_start_date] – [given_date]).

 

8. Using VBA or Power Query for Advanced Date Manipulation
  • A VBA macro or Power Query can simplify date manipulation for more complex needs, such as filling missing dates in a list of dates or converting text strings to valid dates.

 

9. Common Issues
  • Date format errors: Ensure all cells use the same date data type.

  • Column alignment: Use a single column for worksheet dates like column B or cell D.

  • Extra cost: Avoid overwriting data by using paste values after applying formulas.

 

10. Examples of Formulas
  1. Add 10 days: =TODAY() + 10

  2. Subtract 5 days: =TODAY() – 5

  3. Add 3 months: =EDATE(TODAY(), 3)

  4. Calculate number of months: =DATEDIF(B1, C1, “m”)

  5. Find number of business days: =NETWORKDAYS(TODAY(), B2)

 

These formulas allow you to handle date columns, calculate differences, and keep track of project deadlines or specific dates.

You may also want to see: How to add specific cells in excel (summing cells).

Conclusion

Mastering date manipulation in Excel unlocks powerful capabilities for managing project timelines, tracking important deadlines, and calculating date differences.

By understanding how Excel stores dates and leveraging tools like the TODAY function, DATEDIF function, and simple subtraction formulas, you can streamline tasks like adding a specific number of days to today’s date or subtracting dates to find earlier dates.

Whether you’re calculating business days for an open date, adjusting a due date using a negative value, or working with custom formats in the Format Cells dialog box, Excel’s robust functionality has you covered.

Remember to watch for common issues like handling negative results, blank cells, or date format inconsistencies.

With the above formulas, arithmetic operations, and practical examples, you’re equipped to manage any project deadline efficiently and effectively.

Dive into Excel’s powerful features and start exploring different ways to simplify date-related tasks today!

You may also want to see How to delete multiple sheets or tabs in Excel.