Gabriel Ideas Written by Gabriel

Excel Formula: Count Dates in Days

By Gabriel Aug 06, 2026
Excel DATEDIF function to get difference between two dates
Excel DATEDIF function to get difference between two dates

Managing dates and calculating specific days in Excel can be a complex task. One of the most common challenges is counting the number of days between two dates. To simplify this, let's explore an Excel formula that can help you calculate dates effortlessly. Here's a comprehensive guide on how to use the NETWORKDAYS function to count days, excluding weekends and holidays.

Excel DATEDIF function to get difference between two dates
Excel DATEDIF function to get difference between two dates

Before we dive into the formula, let's ensure you have a clear understanding of the NETWORKDAYS function. It calculates the network days between two supplied dates, excluding weekends (saturdays and Sundays) and any specified holidays. This function is incredibly useful for calculating workdays, business days, or any day that excludes certain periods like public holidays.

Count Days Between Two Dates (COUNTIF Date Range) in Excel
Count Days Between Two Dates (COUNTIF Date Range) in Excel

Excel Formula to Count Date from Days using NETWORKDAYS

The NETWORKDAYS function has the following syntax: `NETWORKDAYS(start_date, end_date, [holiday])`. Here, `start_date` and `end_date` are the dates between which you want to count the network days, and `holiday` is an optional holiday list, ranging from "1/1/2018" to "12/31/2018". If no holiday is specified, weekends are automatically excluded.

Excel Formula to Count Days from Date to Today Automatically
Excel Formula to Count Days from Date to Today Automatically

Let's break down this formula and understand its components better:

Start and End Dates

the employee schedule is displayed in excel
the employee schedule is displayed in excel

The `start_date` and `end_date` are required inputs. These dates can be entered as text strings in the format "YYYY-MM-DD" or cell references to dates. For instance, if you want to calculate network days from March 1, 2023, to April 30, 2023, your formula would look like this: `NETWORKDAYS("2023-03-01", "2023-04-30")`.

Note that entering dates as text strings avoids potential date formatting issues. However, cell references to dates can be used for dynamic date ranges.

Holiday List (Optional)

the basic excel formats for each type of text, including numbers and letters in green
the basic excel formats for each type of text, including numbers and letters in green

The `holiday` is an optional range of cells containing the dates you consider as holidays. If you want to exclude specific days (like a birthday or a personal holiday), you should list them here. For example, if you're working in a company that has August 15 as a holiday, you would list that date in the holiday range like this: `NETWORKDAYS("2023-03-01", "2023-04-30", A4:A100)`. In this example, cell A4 contains "2023-08-15", and A100 is the last cell in the holiday list.

Remember, the holiday list should be in descending date order to work accurately with the NETWORKDAYS function.

Using NETWORKDAYS in Real-world Scenarios

the excel time and date sheet is shown in green, with an orange arrow pointing to it
the excel time and date sheet is shown in green, with an orange arrow pointing to it

Now that you understand the basics of the NETWORKDAYS function, let's see how it can be applied in real-world scenarios:

Calculating Workdays

How to calculate time between two dates in Years, Months & Days [Excel Formula]
How to calculate time between two dates in Years, Months & Days [Excel Formula]
Calculate Working Days between two Dates in Excel: Find Workdays Excluding Holidays & Weekends
Calculate Working Days between two Dates in Excel: Find Workdays Excluding Holidays & Weekends
Calculate time before expiration date
Calculate time before expiration date
"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"
"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"
a poster with the words, all about function in excel and an excel
a poster with the words, all about function in excel and an excel
Calculate days from/before date in Excel
Calculate days from/before date in Excel

NETWORKDAYS is often used to calculate workdays or business days between two dates. If your company operates Monday to Friday, using NETWORKDAYS with no holiday list automatically excludes weekends, providing you with the exact number of workdays between the specified dates.

Managing Project Deadlines and Milestones

In project management, stakeholders often need to know how many working days are left until a project's deadline. Using NETWORKDAYS, you can calculate the remaining workdays accurately, helping you plan effectively and ensure tasks are completed on time.

Moreover, planning milestones or phases of a project becomes easier with this function. By knowing the number of workdays required to complete a phase, project managers can set realistic milestones and better estimate project timelines.

Remember, successful project management often relies on clear communication and realistic scheduling. Using NETWORKDAYS can help you make data-driven decisions and ensure everyone is aligned on project timelines.

Excel's NETWORKDAYS function is a powerful tool for calculating dates, enabling you to streamline processes, improve accuracy, and make more informed decisions. By mastering this formula, you'll not only save time but also enhance your productivity and problem-solving skills.

So, don't let date management challenges hold you back. Get started with the NETWORKDAYS function today and watch your efficiency soar. Happy calculating!