WORKDAY Function in Google Sheets: Explained
In this article, you will learn how to use the WORKDAYS formula in Google Sheets.
What does the WORKDAY formula do in Google Sheets?
The WORKDAY function tells you the date after the specified number of working days from a given starting date. So, this formula is beneficial when you have a starting date and an ideal number of project days and want to know the end date of the project period, excluding the number of holidays if needed.
How do you use the WORKDAY function in Google Sheets?
- Type “=WORKDAY(” or go to “Insert” → “Function” (or directly navigate to the “Functions” icon) → “Date” → “WORKDAY”.
- Input the starting date, the number of working days to add, and dates of holidays to be excluded from the specific period.
- Press the “Enter” key.
The general syntax is as follows:
Start_date: The starting date of an event or project, etc.
Num_days: The number of working days you expect to work
Holidays [Optional]: Dates of holidays you want to take into account
Let’s see the following examples in the picture to get a picture of how the WORKDAY function works in Google Sheets. Look at the table at the top right in the screenshot. We have five pairs to show how outcomes by the formulas change depending on whether they have the “holidays” argument. In a pair, the upper function doesn’t have the “holidays” parameter, whereas the lower formula contains the “holidays” argument. So, you can see the slight differences between the dates returned by the upper and the lower formulas in each pair. As the lower one doesn’t consider holidays as working days, we have the later date in the lower row.
For example, look at the table's fifth pair (Project E). The function in the top cell (H11) returns (12/12/2022) by counting fifteen working days from the starting date (11/21/2023). The lower formula (in cell H12) excludes two days (Thanksgiving Day and Day after Thanksgiving Day) from the working days; thus, its end date (12/14/2023) is two days later than the date returned by the top one (12/12/2023) to secure fifteen working days.
Next, assume you want to add today’s date to this list and make the project list dynamic to monitor the number of working days left to finish each project by its expected ending date.
- Insert a column showing a current date. Use the TODAY function.
- Add another column presenting the number of working days left. You can use the NETWORKDAYS function to calculate it. (Check this article to learn how to use the NETWORKDAS formula: TBU)
- As the dates pulled by the TODAY function are updated whenever you open the file, you can track the number of working days left for the projects in real time.
What is the difference between the WORKDAY and NETWORKDAYS functions in Google Sheets?
As described above, the WORKDAY function gives you the end date after the specified number of days from a particular starting date, excluding the number of holidays input, if any. So, the WORKDAY formula is useful when you have a certain starting date and a specific number of project days. On the other hand, the NETWORKDAYS function returns the number of working days based on the given starting and ending dates, excluding special holidays entered, if any. The NETWORKDAYS is helpful when you have particular starting and ending dates for a project.