Ever found yourself needing to calculate the number of working days between two dates in Excel? While Excel doesn't have a built-in function for this, you can create a formula using existing functions and a few simple steps. Let's dive into how to put together this formula for working days in Excel.

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

Before we start, let's clarify what we mean by 'working days'. For this guide, we'll consider working days as Monday to Friday, excluding weekends (Saturday and Sunday). Now, let's get started!

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

Understanding the Formula

The formula we'll use is a combination of Excel's NETWORKDAYS, TODAY, and other basic functions. NETWORKDAYS calculates the number of whole working days between two dates, excluding weekends and holidays.

How to Use Workday Formula in Excel
How to Use Workday Formula in Excel

Here's the basic structure of the formula: `=NETWORKDAYS(start_date, end_date, [holidays])`. We'll explain each part as we go along.

Using TODAY Function

WEEKDAY formula in Excel to get day of week, weekends and workdays
WEEKDAY formula in Excel to get day of week, weekends and workdays

The TODAY function returns the current date. We can use this function to set the start date of our working days calculation. For example, `=TODAY()` will return today's date in your Excel sheet.

However, if you want to calculate working days for a specific date in the past or future, you can replace `TODAY()` with the specific date in Excel's date format (e.g., `=DATE(2022, 12, 31)` for December 31, 2022).

Setting the End Date

ms excel formula
ms excel formula

The end date is simply the date you want to calculate working days up to. You can enter this date manually in Excel's date format or use a cell reference if the date is located elsewhere in your sheet.

For example, if you want to calculate working days up to December 31, 2022, you would enter `=DATE(2022, 12, 31)` in your formula. If the end date is in cell A1, you would enter `=A1`.

Incorporating Holidays

a notebook with microsoft excel written on it
a notebook with microsoft excel written on it

If you need to exclude specific holidays from your working days calculation, you can do so by listing the holidays in a range of cells and including this range in your formula. The range should be enclosed in brackets and separated by commas.

For example, if you have a list of holidays in cells A1:A5, your formula would look like this: `=NETWORKDAYS(start_date, end_date, A1:A5)`.

"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"
"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"
How to Use 20+ Date Formulas in Excel
How to Use 20+ Date Formulas in Excel
✅ 25 Excel Formulas Every Data Analyst Must Know
✅ 25 Excel Formulas Every Data Analyst Must Know
How to Copy a Formula Down in Excel Using the Fill Handle
How to Copy a Formula Down in Excel Using the Fill Handle
Employee Time Tracking in Excel (+ video tutorial!)
Employee Time Tracking in Excel (+ video tutorial!)
the basic formula for excel formats
the basic formula for excel formats
Exel Formulas
Exel Formulas
Calculate Number of Days Between Two Dates in Excel (8 Quick Tricks)
Calculate Number of Days Between Two Dates in Excel (8 Quick Tricks)
Calculate work days between two dates!
Calculate work days between two dates!
How to use frequency formula in excel
How to use frequency formula in excel
5 Excel Formulas Every Beginner MUST Know (Save This!)
5 Excel Formulas Every Beginner MUST Know (Save This!)
Boost Productivity: Create a Dynamic, Interactive Calendar in Excel 🗓️
Boost Productivity: Create a Dynamic, Interactive Calendar in Excel 🗓️
the basic guide to excelif formulas for beginners and advanced students in english
the basic guide to excelif formulas for beginners and advanced students in english
How to Use HLOOKUP Formula in Excel
How to Use HLOOKUP Formula in Excel
How to Use ROW Formula in Excel
How to Use ROW Formula in Excel
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
How to Use AutoFill in Excel to Save Time
How to Use AutoFill in Excel to Save Time
50 Excel Formulas to Master
50 Excel Formulas to Master
Work in Excel Faster Than Ever – Speed Up Your Workflow
Work in Excel Faster Than Ever – Speed Up Your Workflow
Excel formulas
Excel formulas

Calculating Working Days

Now that we have our start date, end date, and (optionally) holidays, we can calculate the number of working days. Here's the complete formula: `=NETWORKDAYS(TODAY(), end_date, [holidays])`.

This formula will return the number of working days between today's date and the specified end date, excluding weekends and any listed holidays.

Remember to replace `TODAY()` with your desired start date if you're not calculating from today. Also, include your holiday range if you need to exclude specific holidays.

Formatting the Result

By default, Excel displays the result of the NETWORKDAYS function as an integer. If you want to display the result as a number of days (e.g., 5 days), you can wrap the formula in the TEXT function like this: `=TEXT(NETWORKDAYS(TODAY(), end_date, [holidays]), "dd days")`.

This will display the result as a number of days (e.g., 5 days), making it easier to understand at a glance.

Automatically Updating the Formula

If you want your working days calculation to automatically update as the end date changes, you can use a simple trick with Excel's TODAY function.

Instead of entering `TODAY()` directly into your formula, enter the following formula in a separate cell: `=TODAY() + 1`. Then, use this cell's reference in your NETWORKDAYS formula.

Why This Trick Works

Every time you open your Excel sheet, Excel recalculates the formulas. By adding 1 to today's date, the reference date in your NETWORKDAYS formula will always be tomorrow's date, ensuring that your working days calculation is always up-to-date.

This trick allows you to easily update your working days calculation without having to manually change the start date each time.

And there you have it! With these steps, you now know how to put together a formula for working days in Excel. This formula can save you time and effort when calculating working days between two dates, making it a valuable tool for project management, scheduling, and more.

Happy calculating, and remember to keep your Excel skills sharp with regular practice and exploration of new functions and features!