WORKDAY and NETWORKDAYS Functions

The WORKDAY and NETWORKDAYS functions in Excel are incredibly useful when dealing with dates and workdays. These functions help calculate the end date or the number of workdays between two dates, excluding weekends and optional holidays. This article will guide you through their syntax, provide a practical example, and offer exercises to test your understanding.

Syntax

Here’s the syntax for both functions:

FunctionSyntaxDescription
WORKDAYWORKDAY(start_date, days, [holidays])Returns a date that is the number of working days after the start_date, excluding weekends and holidays.
NETWORKDAYSNETWORKDAYS(start_date, end_date, [holidays])Returns the number of working days between two dates, excluding weekends and holidays.

Example

Let’s consider a scenario where you need to calculate the end date of a project, taking into account weekends and a list of holidays. Additionally, you want to know how many working days it will take to complete the project.

TaskStart DateDuration (Days)Holiday ListEnd DateWorkdays
Project A2024-08-01202024-08-15=WORKDAY(B2, C2, D2:D3)=NETWORKDAYS(B2, E2, D2:D3)

Practice Exercise 1:

Task: Calculate the end date and number of workdays for each project, considering the provided holidays.

Practice Exercise 2:

Task: Calculate the start date if a task must be completed by the end date, taking into account holidays and the project duration.

Solution for Exercise 1:

  1. End Date for Project B:
    • Formula: =WORKDAY(B2, C2, D2:D3)
    • Result: 2024-09-23
  2. Workdays for Project B:
    • Formula: =NETWORKDAYS(B2, E2, D2:D3)
    • Result: 15
  3. End Date for Project C:
    • Formula: =WORKDAY(B3, C3, D3:D3)
    • Result: 2024-10-15
  4. Workdays for Project C:
    • Formula: =NETWORKDAYS(B3, E3, D3:D3)
    • Result: 11

Solution for Exercise 2:

  1. Start Date for Task A:
    • Formula: =WORKDAY(B2, -C2, D2:D3)
    • Result: 2024-10-28
  2. Workdays for Task A:
    • Formula: =NETWORKDAYS(E2, B2, D2:D3)
    • Result: 25
  3. Start Date for Task B:
    • Formula: =WORKDAY(B3, -C3, D3:D3)
    • Result: 2024-11-01
  4. Workdays for Task B:
    • Formula: =NETWORKDAYS(F3, E3, D3:D3)
    • Result: 30

Explanation: The use of -C2 here is to calculate the start date by subtracting the number of workdays (specified in C2) from the end date (B2). The negative value indicates that we are moving backward in time from the end date to find the start date.

With this guide, you should be able to effectively use the WORKDAY and NETWORKDAYS functions in Excel to manage your projects more efficiently. The practice exercises are designed to enhance your understanding, and the solutions provided will help you verify your work.