Add Workdays in Google Sheets

To add or subtract workdays days from a date, respecting holidays but assuming a 7-day week: you can use the WORKDAY.INTL function with an argument that tells it how many days should be subtracted/added as well as which specific holidays to ignore. In our formula below C2 for this example:

=WORKDAY.INTL(A2,B2,"0000000",A7:A8)

Add workdays no weekends in google sheets1

With this formula, you can have a Thursday evening deadline instead of Monday afternoon! This means that all days in the week are treated as working hours. With two holidays  in range A7:A8  and weekends set using the special syntax “0000000“, your work will be done by 5/29/2022, at midnight PST.

Explanation

WORKDAY.INTL allows you to calculate a date in the future or past that respected holidays and weekends with its special codes for designating which days are considered as such, but using masks is more flexible since it allows any day of the week to be designated into being treated like weekend ones & zeros!

You can calculate the number of days required to complete your project in an official workplace with this handy formula. Simply multiply Saturday’s total hours by 0,8 and add it onto Sunday-Friday count!

To add days excluding weekends, simply do the following:

Type this formula =WORKDAY(A2, B2) into the blank cell, and press Enter key to get your answer.

Add workdays no weekends in google sheets1

Tip: To change the start date of your spreadsheet, simply enter “A2” as desired. This will allow you to input future dates into B2 for each day added on top!

We have now reached the end date, which adds 50 business days, excluding weekends.

Note: The number you’re trying to math is a 5-digit one, so in order for it to show up on your screen correctly formatted as date, click Format> Number > Date. See screenshot:

Add workdays no weekends in google sheets1

Now that you have cells containing all of your holiday data, excluding weekends and any other days we want is easy.

Type this formula =WORKDAY(A2, B2, A7:A8) in blank cells and hit the enter to see the result.

Add workdays no weekends in google sheets1

Tip: To create a formula that excludes holidays, use this equation. A2 is the start date, and A7:A8 are days you want to be excluded from your calculation.

Related Functions

  • Google Sheets WORKDAY function
    The Google Sheets WORKDAY function returns a serial number that represents a date that is the indicated number of working days before or after the starting date you specified.The syntax of the WORKDAY function is as below:=WORKDAY(start_date, days, [holidays])…
  • Google Sheets WORKDAY.INTL function
    The Google Sheets WORKDAY.INTL function returns the serial number of the date before or after a specified number of workdays.The syntax of the WORKDAY.INTL function is as below:= WORKDAY.INTL (start_date, days, [weekend], [holidays])…

 

Google Sheets WORKDAY Function

This post will guide you how to use Google Sheets WORKDAY function with syntax and examples.

Description


The Google Sheets WORKDAY function returns a date or a serial number that represents a date that is the indicated number of working days before or after the starting date you specified. You can add a specified number of working days to the starting date and then returns a serial date. The working days will exclude weekends and any dates specified as holidays.

You can use the WORKDAY function to calculate working days and non-working days.

The WORKDAY function can be used to get a number representing the week of the year where the provided date falls in google sheets. The purpose of this function is to get the week number for a given date and it will return a number between 1 and 54.

The WORKDAY function is a build-in function in Google Sheets and it is categorized as a Date function.

Syntax


The syntax of the WORKDAY function is as below:

=WORKDAY(start_date, days, [holidays])

Where the WORKDAY function arguments are:

  • Start_dateThis is a required argument. The starting date from which you want to count the number of working days. The date should be typed as a valid time a serial date.
  • days – This is a required argument. The number of working days that you want to add. A positive value for days yields a future date; a negative value yields a past date.
  • holidays – This is an optional argument. The list of holidays that you want to exclude from the working days. It can be a range of cells that contain the holiday dates or it can be a list of serial numbers that represent the holiday dates.

Note:

  • If any argument is not a valid Excel date, a #VALUE! Error is returned.
  • If start date value plus days is an invalid date, the WORKDAY function returns #NUM! Error.
  • A serial date is how the google sheets stores dates and it represents the number of days since 1900-01-01, so the January 1, 1900 date is serial number 1 by default.
  • If days value is not an integer number, it will be truncated.

Google Sheets WORKDAY Function Examples


The below examples will show you how to use google sheets WORKDAY Function to return the working days from the start date.

1# get the date 50 workdays from the starting date “3/20/2021”, enter the following formula in Cell B1.

=WORKDAY(DATE(2021,3,20),50)

google sheets workday function1

2# get the date 50 workdays from the starting date “3/20/2021”, excluding holidays 5/1/2021, type the following formula in Cell B2.

=WORKDAY(DATE(2021,3,20),50,DATE(2021,5,1))

google sheets workday function1