Open In App

How to Add or Subtract Dates in Excel

Last Updated: 11 Sep, 2023

S

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

Adding or subtracting dates has many use cases. In many situations, we need to use that. If we want to add a few days/months/years to a project’s schedule date to reschedule the date or you want to check how long a single activity in a list of particular activities will take to complete. You can use a simple formula to add or subtract a number of days from a date, worksheet functions in Excel can be used instead for date manipulation. 

How to Subtract Dates in Excel

If you have two dates in cells, for example in B2 and C2, and you want to know how many days are there between them, Excel has ways to help you find the days between two dates.

Subtract Date from Other Date Directly

In Excel, each date is actually stored as a special number. The number 1 represents March 31, 2000. So, to find the difference between two dates, you can just subtract one number from the other:

‘=C2-B2’

Using the DATEDIF Function

If you prefer a more advanced method, you can use the DATEDIF Function:

This function calculates the difference in days between the two dates. Just keep in mind that it won’t work if start date B2 is later than the end date (C2).

‘=DATEDIF(B2, C2 “d”)’

DatedIf-Function

DATEDIF Function

Subtracting from Today’s Date

To find the difference between a dates in the past and today, you can use similar formulas. Replace one of the dates with the ‘TODAY()’ function.

‘=TODAY()-B2’ Or ‘=DATEDIF(A2, TODAY(),”d”) ‘

Note: This function does not work if the date you’re subtracting from is later than today.

Example: Using the DATE Function

If you want to input the dates directly into the formula, you can use the ‘DATE(year, month,day)’ function. This formula subtracts 15 August 2000 from 20th May 2023.

=DATE(2000, 8, 20) – DATE(2023, 5, 15)

Date-function

Date Function

In general, if you’re just looking to find the difference between two dates, the direct subtraction method is the simplest and most straightforward.

For complex calculations, like finding the difference in months or years, the DATEDIF function can be handy.

How to Subtract or Add Days to Date in Excel

Whether you’re working with a single date or a list of dates, Excel makes it easy to add or subtract a specific number of day using basic arithmetic operations.

Adding Days to a Date in Excel

To add a certain number of days to a date, follow this general formula:

DATE+ N days

Below are some ways to input the date:

  • Use a cell reference, e.g., ‘=A2 + 10’
  • Utilize the ‘DATE(year, month, day)’ function e.g., ‘=DATE(2015, 5, 6) +10 ‘
  • Leverage a function result. For example, to add days to the current date, use the ‘TODAY()’ Function: =’TODAY() +10′
Adding-Days-to-Date

Adding days to date

Subtracting Days form a Date in Excel

Subtracting days form a date is just as straightforward. It’s essentially the same process as addition, but with the minus sign:

Date – N days

Here are examples of how to do this:

  • ‘=A2 -10’
  • ‘=DATE(2015, 5, 6) – 10’
  • ‘=TODAY() -10’
Subtract-days-from-date

Subtract Days from date

How to Subtract Weeks to Date

When you need to adjust a date by specific number of weeks, Excel offers a simple solution. You can build upon the formulas used for adding or subtracting days, with a small modification: Just multiply the number of weeks by 7. This straightforward approach allows you to seamlessly workwith weeks in your date calculations.

=Cell – N week*7

How to Subtarct Months to Date in Excel

If you want to add or subtract a certain number of whole months to a date, you can use the DATE or EDATE function:

Example : Subtract months to a date with Excel EDATE

Excel provides a specialized function called EDATE that simplifies the process of working with dates when adding or subtracting months. This function is available in all versions of Excel form 2007:

=EDATE( start_date, months)

Arguments:

Start_date – the start date from which to count the numbers of months.

Months- the number of months to add( a positive value) or subtract (a negative value).

The following formula used on our column of dates yields exactly the same result as the DATE function in the previous example:

using-EDATE()

Using Edate()

How to Subtract Years to date in Excel

Expanding on the concept of adding months, adjusting dates by years in Excel employs a similar approach. The DATE(year, month, day)function remains your ally, with the added step of specifying the number of years to add or subtract:

‘DATE(YEAR(date) -N years, MONTH(date), DAY(date))’

Example: Subtracting Years from a Date in Excel:

‘=DATE(YEAR(A2) – 5, MONTH(A2), DAY(A2))’

This formula subtracts 5 years from the date in cell A2.

Alternatively, you can establish a universal formula by entering the number of years to add(positive number) or subtract (negative number) in a specified cell. Then, reference within the DATE function.

Date-function

DATE() Function

FAQs on How to Subtract Dates in Excel

How do we subtract two dates to find the difference in days?

To Calculate the difference in days between two dates, simply subtract the earlier date from the later date. For example, if A2 consists the start date then B2 consists the end date, the formula would be : ‘B2-A2’.

How to subtract dates to find the difference in months or years?

You can use DATEDIF function to find the difference in months or years between two dates. The syntax is: ‘=DATEDIF(start_date,end_date,”m”) for months and ‘=DATEDIF(start_date, end_date,”y”)’ for years.

How to create a formula to subtract or add a dynamic number of days, months, or years to a date?

You can use cell reference to store the number of days, months, or years you want to add or subtract, and then incorporate these references into your formulas. This allow for dynamic adjustments based on changing values in those cells.

How to format the result of date subtraction to display as a specific date format?

After subtracting dates, the result may appear as a serial number. To format it as a date, select the cell(s), right click, choose “Format cells”, and select the desired data format under the Number tab.



S

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

How to Use the SUBTRACT Function in Excel

article_img
Subtraction in Microsoft Excel - Quick StepsSelect the cell where you want the result.Type = (equal sign)> then select the first cell to subtract from.Type - (minus sign) > Select the cell you want to subtract.Press Enter.Subtraction in Excel is a basic yet powerful skill that can make your work much easier. Whether you're doing simple math, working with large data sets, or comparing dates, times, and percentages, knowing how to subtract can save you a lot of time. While Excel doesn’t have a specific "subtract" button, its formulas let you easily subtract numbers, cells, columns, and even text. This guide will show you step-by-step how to subtract in Excel, from simple calculations to advanced tasks like subtracting matrices and text.Table of ContentExcel Subtraction FormulaHow to Subtract in ExcelSubtract CellsSubtract Multiple CellsSubtract two Columns Subtract A Value From An Entire Column Subtract Percentages in ExcelSubtract Two Dates Subtract TimesSubtract MatricesSubtract a Text String Excel Subtraction FormulaSubtracting two numbers is a common operation. Excel does not have a "subtract" button or function. You can use the Minus sign (-) instead. We'll show you how to
Read More

C

How to Prevent Grouped Dates In Excel Pivot Table?

We may group dates, numbers, and text fields in a pivot table. Organize dates, for instance, by year and month. In a pivot table field, text elements can be manually selected. The selected things can then be grouped. This enables you to rapidly view the subtotals in your pivot table for a certain group of items. The built-in choices for grouping dates in a pivot table are Seconds, Minutes, Hours, Days, Months, Quarters, and Years. To establish the kind of date grouping you require, choose one or more of those possibilities. This article shows how the dates may be grouped by month and year. Steps to Create a PivotTable Step 1: Create an excel table with fields Date, Category, and Revenue. Step 2: Select the data. Navigate to the Insert tab on the top of the ribbon than in the Tables group select PivotTable. Step 3: PivotTable from the table or range dialog box appear. Here select the table range and select the new worksheet and then click on OK. Step 4: Now you can see the Pivot table and Pivot table field pane in created. From the PivotTable fields pane, selects the Date and Revenue field.  Step 5: Now as you can see, Pivot Table is created with the Date and the revenue field.  Gro
Read More

How to Insert Dates in Excel?

article_img
In Microsoft Excel, the date can be inserted in a variety of ways, including using a built-in function formula or manually entering the date, such as 22/03/2021, 22-Mar-21, 22-Mar, or March 22, 2021. These date functions are typically used for cash flows in accounting and financial analysis. In Excel, there is a built-in function called TODAY() that will insert the exact today's date and will give the updated date whenever the workbook is opened. The NOW() built-in function can also be used to insert the current date and time, and this function will be kept up to date if we open the workbook multiple times. Inserting the date: In the Formula tab, the built-in TODAY is categorized under the DATE/TIME function. Alternate to insert the date in Excel the below keyboard shortcut can be used: CTRL+; It will insert the current date. To insert the current date and time we can use the following shortcut keys: CTRL+; <space key> CTRL+SHIFT+; It returns the current date and time to us. 1. Inserting specific date in Excel: We have to use DATE() to insert a specific valid date in Excel. We can notice in the above function that the DATE requests to provide Year, Month, Day values. If we p
Read More

Editing Excel Macros in Excel

article_img
Excel Macro is a set of actions that can be recorded, saved, used multiple times. This feature saves us a lot of time when dealing with repetitive tasks and huge data sets. We can always make changes to an existing Macro in Excel. There are two ways to record and run macros: Excel Commands Excel Visual Basic for Applications(VBA).1. Copying a Macro Code We can reuse the existing macro code while creating new Macros. For example, if you have existing macros created using the record function, we can reuse the code to write new macros. To open the code follow the below steps: Select Tools --> Macros --> Visual Basic Editor. Copy code from the existing macros(use Command + C) and paste(use Command + V) in the new macro2. Renaming a Macro Follow the below steps to rename a Macro in Excel: Select Tools --> Macros --> Visual Basic Editor. Select name on the left plane.Edit the name.3. Deleting a Macro Follow the below steps to delete a macro in Excel: Select Tools --> Macros --> Macros... Select the macro to be deleted. Click on the minus(-) symbol at the bottom.Select yes to delete the macro.
Read More

Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024

article_img
Are you ready to unlock a world of opportunities with Microsoft Excel? In today’s data-driven job market, mastering Excel is essential for launching a successful career, whether you're a fresher or an experienced professional. In this article, we will cover the high-paying Excel jobs available in 2024, including crucial roles like data analyst, business analyst, and many more. We'll explore the qualifications needed for these positions, along with salary estimations to help you understand your earning potential. Whether you’re looking for Excel jobs for freshers or seasoned professionals, we’ll also dive into options for Excel freelancing jobs and work-from-home jobs in Excel. Equip yourself with the knowledge to excel in your career and take the first step toward a lucrative future!Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024Table of ContentWhy choose a career in ExcelWhy Excel Skills Are Essential for Your CareerEssential Excel Skills Required to Boost Your Resume Best Microsoft Excel High-Paying JobsFinancial AnalystsData AnalystAdministrative Assistant Accountants Project ManagersManagement ConsultantRetail Store ManagersBusiness Analyst Market Research A
Read More

Excel VLOOKUP Function - Excel Guide for Beginners

article_img
How to do Vlookup in Excel - Quick StepsPrepare Your DataEnter the VLOOKUP Formula >>Press EnterUse a Cell Reference for Flexibility Copy the Formula for Multiple RowsThe VLOOKUP function is one of the most widely used tools in Excel for looking up and retrieving data from a table. Whether you’re working with a single sheet or multiple workbooks, VLOOKUP allows you to search for a value in one column and return a related value from another. If you're new to Excel or still getting the hang of formulas, this guide is for you. We will cover everything from the basics of how VLOOKUP works to practical examples that show how to search data across sheets, troubleshoot common issues, and master the VLOOKUP formula for any task.Excel VLOOKUP FunctionWhat is the VLOOKUP Function in ExcelThe term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row.Syntax of VLOOKUP FormulaVLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Arguments:1. lookup_value: The value you want to search for (e.g., a specific ID, name, or product code).
Read More

AI in Excel: Top 20 Excel AI Tools in 2025 (Free/Paid)

article_img
The integration of AI in Excel is transforming the way professionals manage, analyze, and visualize data. Whether you're handling large datasets, performing financial analysis, or automating repetitive tasks, AI-powered tools can significantly improve efficiency and accuracy. In 2025, advanced Excel AI tools are making complex tasks easier by offering features like data cleaning, predictive analytics, smart automation, and AI-driven insights.In this guide, we’ve gathered a list of the top 20 Excel AI tools for 2025 that are reshaping how users interact with Excel.Table of ContentBest AI Tool in Excel: Top Picks for 2025Top 10 Free Excel AI Tools in 2025Top 10 Excel AI ToolsAI in Excel: OverviewIn Excel, an AI tool (Artificial Intelligence tool) refers to an add-in or extension that leverages artificial intelligence to enhance your spreadsheet experience. These tools can automate tasks, improve data analysis, and generally make you more productive.Excel has always been a powerful tool for data analysis, but with the integration of AI tools, it has transformed into a smarter, more intuitive platform.Best AI Tool in Excel: Top Picks for 2025Explore the below AI tools designed for auto
Read More

List of Upcoming Marvel Movies With Release Dates (2022-2025)

When we think of action hero movies, the first name that pops up in our mind is Marvel Cinematic Universe (unless of course, you are a DC fan!). It won't be wrong to say that Marvel Studios is one of the biggest movie production globally, after all, every other movie of MCU makes records at the worldwide box office. Well, how can we forget the second highest grossing movie of all time and the highest grossing movie of Marvel Studios, Avengers: Endgame? The major highlight movie of Marvel phase 3. After the end of legendary superhero legacies such as Iron Man and Captain America in the Marvel phase 3, many people thought that Marvel Cinematic Universe won’t be able to delight their fanbase with unforgettable characters and movies as they did in the past decade. However, with films like Shang Chii and the Legend of Ten Rings, Spider-Man: No Way Home, Eternals, and Doctor Strange: Multiverse Of Madness, Marvel really stumped all these talks. While there is still some time left for the end of phase 4, Marvel has already released its upcoming movies for phase 5 and fans have no par of their joy and excitement! In this article, we’ll talk about all the upcoming movies and TV series of th
Read More

Marvel Phase 5: New Release Dates, Delays & Story

article_img
Marvel Phase 5 is a new chapter in the Marvel Cinematic Universe (MCU) that includes many exciting movies and TV shows. There have been some changes to the release dates because of the writer's strike, but fans can still look forward to big hits like Deadpool 3, Captain America: Brave New World, and Thunderbolts. This phase will bring new stories, popular characters, and lots of action.Marvel Phase 5 will expand the MCU with a mix of humor, drama, and adventure. It will introduce new heroes and bring back old favorites, keeping fans excited and entertained. Let's look at the latest updates, release dates, and story details for Marvel Phase 5.Table of ContentList of Series Under the Marvel Phase 5Updated Release Dates and Story Details1. Deadpool 32. Captain America: Brave New World3. Thunderbolts4. BladeTV Shows and Series1. Daredevil: Born Again2. Echo 3. Agatha: Darkhold Diaries4. Ironheart5. What If...? Season 2List of Series Under the Marvel Phase 5Here is a list provided with the timeline of the recently delayed projects, and here it how the timeline stands out in the recent coming times in Marvel Phase 5Ant-Man and The Wasp: Quantumania (February 17, 2023)Secret Invasion (Jun
Read More

I

CUET PG 2024 Exams Begin on March 11: Check Important Dates, Shift Timings and Other Details

article_img
CUET PG 2024 is scheduled to be held from March 11 2024 to March 28, 2024, for admissions to various PG courses. The CUET 2024 PG examination will be conducted in three shifts each day. The reporting time and duration for the shifts also vary from each other. How to Check the CUET PG Exam Date?Step 1: Visit the official website of CUET PG at pgcuet.samarth.ac.in.Step 2: Click on the "CUET PG Exam Schedule".Step 3: Check the CUET PG exam dates accordingly.Step 4: You can download the schedule for your reference or print it out if needed.CUET PG 2024: OverviewName of the ExamCommon University Entrance Test (CUET)Conducting BodyNational Testing Agency (NTA)Purpose of the ExamFor admission in PG courses in participating universities/institutesNumber of Participating UniversitiesCentral Universities: 49 State Universities: 41 Deemed Universities: 12 Private Universities: 62 Official Websitepgcuet.samarth.ac.inCUET PG Date 2024 - ScheduleCUET PG 2024 Application form dateDecember 26, 2023Last date of filling NTA CUET PG 2024 application formFebruary 10, 2024The last date to pay the CUET PG application feeFebruary 10, 2024CUET 2024 PG correction windowFebruary 11 to 13, 2024CUET PG Admit
Read More
three90RightbarBannerImg