# Excel Days Between Two Dates

Friday, January 6th 2023. | Sample Templates

Excel Days Between Two Dates – Excel has powerful functions to calculate the number of days between two dates in Excel. These are especially useful when creating a Gantt chart or a proposal/project schedule.

In this lesson you will learn how to calculate the number of days between two dates (in different situations):

## Excel Days Between Two Dates The DAYS function in Excel can be used to calculate the total number of days when you have a start and end date.

## Top 25 Ms Excel Formulas One Must Know

You need to specify ‘Start Date’ and ‘End Date’ in the Date function, and it will give you the total number of days between the two specified dates.

For example, suppose you have a start date in cell B1 and an end date in cell B2 (as shown below):

Note that you can also specify work dates in Days by enclosing them in double quotes. Just make sure that dates in double quotes are the date format accepted in Excel.

The day function gives you the number of days between two dates. This means that if the date is December 1, 2017 and December 2, 2017, it will return 1. If you want to count both days, you need to add 1 to the result of the day’s work. You can read more about Days’ work here.

## Between Formula In Excel

The DATEDIF function (derived from DateDifference) also allows you to quickly find the number of days between two dates. But unlike the DAYS function, it can do more.

You can also use the DATEDIF function to calculate the number of months or years that have passed since a specified date.

Suppose you have the following data and you want to find the number of days between these two dates: Also note that we take other Excel functions offline When you type the DATEDIF function in Excel, it will not display IntelliSense (an automatic option that helps you with formula arguments).

## Working Days/network Days Between Two Dates

If you want to calculate the number of days between two given dates, it is better to use the DAYS function. DATEDIF is useful when you want to calculate the total number of years or months that have passed between two dates.

For example, the formula below will give you the total number of months between two dates (for B1 and B2).

You can read more about the DATEDIF function here. One of the most common uses of this function is when you need to calculate age in Excel.

Excel has two functions that will give you the total number of working days between two dates and will automatically enter the specified weekends and holidays.

#### How To Use The Excel Networkdays.intl Function

First we look at an example where you want to calculate the number of working days (working days) between two dates Saturday and Sunday days.

To calculate the number of working days (difference D) – when the start date, end date and holiday are specified – use the following formulas in D3 and copy it to all cells:

This method works well in most cases, except for weekends, which are days other than Saturday and Sunday. In the Middle East, for example, the days off are Friday and Saturday, or in some cases people may have a six-day work week.

Before we take the examples, let’s quickly look at the terms and arguments of the Excel NETWORKDAY INTERNATIONAL function.

Now let’s look at an example of calculating the number of working days between two dates whose weekend is Friday and Saturday.

To calculate the number of working days (difference D) for holidays such as Fridays and Saturdays, use the following formula:

The third argument of this formula (No. 7) tells the formula to consider Friday and Saturday as days off.

## How To Sum By Month

While the Networkdays function calculates the number of working days, we can also use it to find the number of holidays between two dates.

Here is a formula that will give you the total number of days off between two dates:

You can also use the Excel function NETWORKDAYS.INTL to calculate the number of working days for a part-time job. Give an example of someone participating in a project where you have to work part-time (only on Tuesdays and Thursdays).

## How To Calculate Age On Excel: 9 Steps (with Pictures)

Note that instead of selecting the weekend from the drop-down menu in the function, we used “1010111”

By the same logic, “1010111” indicates that only Tuesday and Thursday are working and the 5 rest days are not working.

In case you have breaks (which you don’t want to include in the result), you can specify those breaks in the fourth argument.

To find the number of Mondays between two dates (or any other day), we can use the same logic used above to calculate part-time work.

#### Formula Use Cases

This method gives us the total number of working days considering that Monday is the only working day of the week. The Excel function NETWORKDAYS.INTL returns the number of business days between two given dates. NETWORKDAYS.INTL excludes Saturdays and Sundays by default, but allows you to define a custom week schedule that considers other days of the week as weekends. Additionally, you can remove vacations as an option.

Excel function NETWORKDAYS.INTL Returns the number of working days between two dates. Business days exclude weekends (Saturdays and Sundays by default) and optionally exclude holidays. NETWORKDAYS.INTL is an advanced version of the NETWORKDAYS function because it allows you to define a standard weekend schedule if you need a day other than Saturday and Sunday to be considered a weekend.

In cell C6 we can retrieve the working day between these two dates with the following simple formula: We don’t use optional parameters here, so weekends are weekends by default.

### Javarevisited: 3 Ways To Get Number Of Months And Year Between Two Dates In Java? Examples

With the first option of choosing Weekend, we can now specify the day we want to treat as a weekend. For example, if we pass 11 in this argument, the weekend is set to “Sunday only”:

Alternatively, you can assign a 7-digit string value, where each letter represents a day of the week, starting with Monday. Characters are interpreted as follows:

Additionally, you can also remove holidays from the NETWORKDAYS.INTL function by providing different dates for the holiday argument. In the example above, we refer to the list of specified holidays to calculate the working day between start_date in cell B9 and end_date in cell C9 with the format week 5:

Overall, NETWORKDAYS.INTL proves to be a powerful Excel function that you can use for all kinds of applications, for example to calculate the benefits of an employee increase based on the number of working days, the number of days available for projects and more than that.

### How To Calculate The Difference Between Two Dates In Excel

The Excel function NETWORKDAYS.INTL does not require the date provider to be a normal Excel date. It is also able to handle dates in text format as long as they are properly formatted so that Excel can recognize them.

The Excel function WORKDAY.INTL adds the number of weekdays specified to the start date and allows you to optionally exclude individual holidays.

The Excel WORKDAY function adds the number of specified workdays to the start date and returns the result date. Excludes weekends and holidays as an option. The NETWORKDAYS function in Excel returns the number of business days between two dates. Excludes weekends (Saturdays and Sundays) and voluntary holidays.

#### Excel Formulas To Get The Number Of Workdays Between Two Dates!!

The DAYS function in Excel returns the number of days between two given dates. It can handle dates as both serial numbers and text dates.

We use cookies on our site to provide you with the most convenient experience, remembering your preferences and returning visits. By clicking “OK” you agree to use all cookies. Accept all cookie settings

Necessary cookies are absolutely necessary for the website to function properly. These cookies guarantee the basic functionality and security of the website anonymously.

### Calculating Number Of Days

Functionality cookies enable a number of functions, such as sharing website content on social media sites, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies provide information about visitor metrics, bounce rates, traffic sources, etc. 