How to Use the WORKDAY Function in Excel

The WORKDAY function is an essential tool in Excel and Google Sheets for calculating a specific workday before or after a designated date, while automatically excluding weekends and any dates set as holidays.

Basic Syntax

The syntax for the WORKDAY function is as follows:

WORKDAY(start_date, days, [holidays])
  • start_date: The initial date from which the workday count starts.
  • days: The number of workdays to count forward (positive value) or backward (negative value) from the start date.
  • holidays (optional): An array or range of dates that are recognized as holidays and excluded from the workday count.

Examples and Use Cases

Example 1: Calculate Future Workday

Imagine you are managing a project that begins on August 1, 2023, and requires 10 working days to complete. You need to determine the project’s completion date considering weekends and any holidays.

Start Date Duration (days) End Date
1-Aug-2023 10 =WORKDAY(A2, B2)

Example 2: Exclude Holidays

Consider the situation where you need to calculate the date 15 workdays after September 1, 2023. Additionally, holidays falling on September 7, 2023, and September 14, 2023, should be excluded.

Start Date Duration (days) Holidays End Date
1-Sep-2023 15 7-Sep-2023, 14-Sep-2023 =WORKDAY(A2, B2, C2:C3)

The above examples demonstrate the utility of the WORKDAY function in Excel and Google Sheets for accurately calculating future or past workdays, while taking holidays and weekends into consideration.

More information: https://support.microsoft.com/en-us/office/workday-function-f764a5b7-05fc-4494-9486-60d494efbf33

Other functions
Returns the serial number of a particular date
Calculates the number of days, months, or years between two dates This function is useful in formulas where you need to calculate an age
Converts a date in the form of text to a serial number
Converts a serial number to a day of the month
Returns the number of days between two dates
Calculates the number of days between two dates based on a 360-day year
Returns the serial number of the date that is the indicated number of months before or after the start date
Returns the serial number of the last day of the month before or after a specified number of months
Converts a serial number to an hour
Returns the number of the ISO week number of the year for a given date
Converts a serial number to a minute
Converts a serial number to a month
Returns the number of whole workdays between two dates
Returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days
Returns the serial number of the current date and time
Converts a serial number to a second
Returns the serial number of a particular time
Converts a time in the form of text to a serial number
Returns the serial number of today's date
Converts a serial number to a day of the week
Converts a serial number to a number representing where the week falls numerically with a year
Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days
Converts a serial number to a year
Returns the year fraction representing the number of whole days between start_date and end_date