How to Calculate Days Between Dates in Excel: 5 Easy Methods

Master Excel’s date calculation features to quickly determine time spans for project planning, financial analysis, and more.

How to Calculate Days Between Dates in Excel: 5 Easy Methods

Excel offers powerful tools for working with dates, including several methods to calculate the number of days between two dates. Whether you’re tracking project timelines, analyzing financial data, or managing schedules, knowing how to perform these calculations can save you time and improve your productivity. This article explores five effective techniques to count days between dates in Excel, from simple subtraction to more advanced functions.

Method 1: Using Simple Subtraction

The most straightforward way to calculate days between two dates in Excel is by using simple subtraction.

Step 1: Enter your start date in one cell (e.g., A2) and your end date in another cell (e.g., B2).

Step 2: In a third cell (e.g., C2), enter the formula: =B2-A2

Step 3: Press Enter. Excel will calculate the number of days between the two dates.

This method works because Excel stores dates as serial numbers, with each day represented by a whole number. Subtracting one date from another gives you the difference in days.


Method 2: Using the DAYS Function

For those using Excel 2013 or later, the DAYS function provides a more intuitive way to calculate the difference between dates.

Step 1: Enter your start and end dates in separate cells.

Step 2: In a new cell, use the formula: =DAYS(end_date, start_date)

For example: =DAYS(B2, A2)

Step 3: Press Enter to see the result.

The DAYS function is particularly useful because it can handle dates entered as text strings, as long as Excel can parse them as valid dates.


Method 3: Utilizing the DATEDIF Function

The DATEDIF function is a versatile tool for calculating differences between dates in various units, including days, months, and years.

Step 1: Enter your start and end dates in separate cells.

Step 2: In a new cell, use the formula: =DATEDIF(start_date, end_date, "d")

For example: =DATEDIF(A2, B2, "d")

Step 3: Press Enter to calculate the number of days.

The “d” parameter specifies that we want the result in days. You can also use “m” for months or “y” for years, making DATEDIF highly flexible for various date calculations.


Method 4: Applying the NETWORKDAYS Function

When you need to calculate working days between two dates, excluding weekends and optionally holidays, the NETWORKDAYS function is your best choice.

Step 1: Enter your start and end dates in separate cells.

Step 2: If you want to exclude holidays, list them in a separate range (e.g., D2:D5).

Step 3: Use the formula: =NETWORKDAYS(start_date, end_date, [holidays])

For example: =NETWORKDAYS(A2, B2, D2:D5)

Step 4: Press Enter to see the number of working days.

This function automatically excludes Saturdays and Sundays, and any dates specified in the optional holidays range. It’s particularly useful for project management and HR applications.


Method 5: Leveraging the TODAY Function

When you need to calculate the number of days between a specific date and today’s date, the TODAY function comes in handy.

Step 1: Enter the specific date in a cell (e.g., A2).

Step 2: In another cell, use one of these formulas:

  • For days until a future date: =A2 - TODAY()
  • For days since a past date: =TODAY() - A2

Step 3: Press Enter to calculate the number of days.

The TODAY function automatically updates each time you open or recalculate your spreadsheet, ensuring your results stay current.


Each of these methods has its strengths, and the best choice depends on your specific needs. Simple subtraction works well for basic calculations, while functions like NETWORKDAYS offer more specialized features. By mastering these techniques, you’ll be able to handle a wide range of date-related tasks in Excel efficiently.