Home / Formula Types / Date / Workday

Formula generator for WORKDAY function

The WORKDAY function calculates the end date after a specified number of working days. It excludes weekends and optionally specified holidays. The function takes three arguments: start_date, which is the initial date; num_days, which is the number of working days to add to the start_date; and [holidays], which is an optional range of dates representing holidays to exclude from the calculation.

Formula generator

Spreadsheet AI is the #1 AI for generating and comprehending Excel and Google Sheets formulas. With its advanced capabilities, it goes beyond the basics by providing support for VBA and custom tasks. Streamline your spreadsheet with Spreadshee AI

Product Demo

How to generate an WORKDAY formula using AI.

To obtain information on the ARRAY_CONSTRAIN formula, you could ask the AI chatbot the following question: “To obtain the WORKDAY formula, you could ask an AI chatbot something like: "What is the Excel formula that calculates the next working day, excluding weekends and specified holidays?"

WORKDAY formula syntax

The WORKDAY function in Excel calculates the date that is a specified number of working days before or after a given start date. The syntax for the WORKDAY function is: WORKDAY(start_date, days, [holidays]) - start_date: This is the starting date from which you want to calculate the working days. - days: This is the number of working days you want to add or subtract from the start_date. - [holidays]: This is an optional parameter that allows you to specify a range of cells containing holiday dates. These dates will be excluded from the calculation. The WORKDAY function returns a new date that is the specified number of working days before or after the start_date, excluding any holidays if specified.

Use Cases & Examples

In these use cases, we use the WORKDAY function to calculate the workday date by excluding weekends and optionally, specified holidays.

Project Deadline Calculation


Calculates the deadline for a project based on the start date and the number of working days required. It takes into account weekends and specified holidays.


WORKDAY(start_date, num_days, [holidays])

Employee Leave Calculation


Calculates the end date of an employee's leave based on the start date and the number of working days requested. It excludes weekends and public holidays.


WORKDAY(start_date, num_days, [holidays])

Delivery ETA Calculation


Calculates the estimated time of arrival for a delivery based on the dispatch date and the number of working days required. It considers weekends and any specified holidays.


WORKDAY(start_date, num_days, [holidays])

AI tips

Enhance Your Excel Efficiency with AI Tips: Discover our innovative Excel add-in feature, ‘AI Tips.’ Streamline your workflow and boost productivity as AI-powered suggestions offer real-time insights for optimal spreadsheet organization, data analysis, and visualization. Elevate your Excel experience with intelligent recommendations tailored to your unique needs, helping you work smarter and achieve more.

Provide Clear Context

When describing your requirements to the AI, provide clear and concise context about the data you have, the specific task you want to accomplish, and any relevant constraints or conditions. This helps the AI understand the problem accurately.

Include Key Details

Include important details such as column names, data ranges, and specific criteria that need to be considered in the formula. The more precise and specific you are, the better the AI can generate an appropriate formula.

Use Examples

If possible, provide examples or sample data to illustrate the desired outcome. This can help the AI better understand the pattern or logic you are looking for in the formula.

Mention Desired Functionality

Clearly articulate the functionality you want the formula to achieve. Specify if you are looking for lookups, calculations, aggregations, or any other specific operations.