docs / articles / Excel Formula for Calendar Working Days

Excel Formula for Calendar Working Days

Eric Jul 09, 2026 2026-07-09 04:40:47

Are you looking to create a calendar of working days in Excel? You're in luck! Excel offers a powerful suite of formulas that can help you automate this task with ease. In this guide, we'll explore the Excel formulas you need to create a calendar of working days, step by step.

"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"
"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"

Before we dive in, let's ensure we're on the same page. A calendar of working days is a list of dates that excludes weekends and holidays. This can be incredibly useful for project planning, scheduling, or tracking workdays. So, let's get started!

Free Excel Calendar Template
Free Excel Calendar Template

Understanding the Excel Dates Function

Before we create our calendar, it's crucial to understand the Excel Dates function. This function is the backbone of our working day calendar, as it allows us to generate a sequence of dates.

an image of a calendar in microsoft office 365 with the date and time tab open
an image of a calendar in microsoft office 365 with the date and time tab open

The Dates function has the following syntax: Dates(start_date, end_date, [interval]). Here's what each argument does:

  • start_date: The first date in the sequence.
  • end_date: The last date in the sequence.
  • interval: (Optional) The number of days between each date in the sequence. If omitted, the default interval is 1.
Boost Productivity: Create a Dynamic, Interactive Calendar in Excel 🗓️
Boost Productivity: Create a Dynamic, Interactive Calendar in Excel 🗓️

Example: Generating a Date Sequence

Let's say we want to generate a sequence of dates from January 1, 2022, to December 31, 2022. We would use the following formula: =Dates(44231, 44796). Here, 44231 and 44796 are the serial numbers for January 1, 2022, and December 31, 2022, respectively.

However, if we want to include all the days in the year, we can use the following formula: =Dates(44231, 44796, 1). This will give us a list of all the dates in the year 2022.

Dynamic Calendar with Single formula
Dynamic Calendar with Single formula

Formatting Dates in Excel

By default, Excel displays dates as serial numbers. To display them as actual dates, follow these steps:

  1. Select the cells containing the dates.
  2. Right-click and select "Format Cells".
  3. In the "Number" tab, select "Custom".
  4. Enter the format you prefer (e.g., "yyyy-mm-dd" for "2022-01-01") and click "OK".
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

Excluding Weekends and Holidays

Now that we have a sequence of dates, let's exclude weekends and holidays. For this, we'll use the NetworkDays function, which calculates the number of working days between two dates, excluding weekends and holidays.

Excel Formula Cheat Sheet Printable - Excel Functions Guide PDF - Excel Reference Sheet Digital Download
Excel Formula Cheat Sheet Printable - Excel Functions Guide PDF - Excel Reference Sheet Digital Download
40+ Microsoft Calendar Templates - Free Word, Excel Documents
40+ Microsoft Calendar Templates - Free Word, Excel Documents
How to make a dynamic calendar in excel
How to make a dynamic calendar in excel
ms excel formula
ms excel formula
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
Don't save the date 📆
Don't save the date 📆
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
the excel time and date sheet
the excel time and date sheet
How to Use 20+ Date Formulas in Excel
How to Use 20+ Date Formulas in Excel
Calculate work days between two dates!
Calculate work days between two dates!
a notebook with microsoft excel written on it
a notebook with microsoft excel written on it
Shift Work Calendar Year At A Glance Template In Excel (Download.xlsx)
Shift Work Calendar Year At A Glance Template In Excel (Download.xlsx)
Excel formulas cheat sheet | All formulas
Excel formulas cheat sheet | All formulas
FREE Excel Timesheet Template [DOWNLOAD]
FREE Excel Timesheet Template [DOWNLOAD]
Exel Formulas
Exel Formulas
EVERYTHING about working with Dates & Time in Excel
EVERYTHING about working with Dates & Time in Excel
Daily Work Tracker Excel: Essential Functions for Better Planning
Daily Work Tracker Excel: Essential Functions for Better Planning
data entry
data entry
Excel Formulas
Excel Formulas
the date and time sheet in excel
the date and time sheet in excel

The NetworkDays function has the following syntax: NetworkDays(start_date, end_date, [holidays]). Here's what each argument does:

  • start_date and end_date: The first and last dates in the sequence, respectively.
  • holidays: (Optional) A range of cells containing the holidays to exclude.

Example: Excluding Weekends

Let's say we want to exclude weekends from our date sequence. We can use the following formula: =NetworkDays(start_date, end_date). For example, if our date sequence starts from cell A2, we would use =NetworkDays(A2, A100) to exclude weekends from the first 98 dates in our sequence.

Example: Excluding Holidays

Now, let's say we want to exclude holidays as well. First, we need to list our holidays in a range of cells. For example, let's list our holidays in cells B2 to B5. Then, we can use the following formula: =NetworkDays(start_date, end_date, B2:B5). This will exclude weekends and the holidays listed in cells B2 to B5.

And there you have it! With these formulas, you can create a calendar of working days in Excel. This can be incredibly useful for planning projects, tracking workdays, or even calculating payroll. So, why not give it a try today?

Remember, Excel is a powerful tool, and there's always more to learn. So, keep exploring and experimenting with different formulas and functions. Who knows? You might just discover a new way to streamline your work or solve a complex problem. Happy calculating!