How to Use the WORKDAY Function in Google Sheets | Calculate Dates Excluding Weekends and Holidays
How to Use the WORKDAY Function
The WORKDAY function returns the date a specified number of working days (business days) before or after a given start date, excluding Saturdays, Sundays, and any specified holidays. It is essential for calculating delivery dates, shipping dates, and invoice due dates based on business days.
Syntax
=WORKDAY(start_date, num_days, [holidays])
- start_date: The date from which to start counting.
- num_days: The number of working days to count from
start_date, specified as an integer. Use a positive number (e.g.,5) for future business days, or a negative number (e.g.,-3) for past business days. - holidays (optional): A cell range (e.g.,
$E$2:$E$20) containing a list of public holidays or company closures to exclude from working days.
Practical Examples with a Table
These examples use November 20, 2026 (Fri) as the start date, assuming a holiday list in E2:E3 containing 2026/11/23 (Labor Thanksgiving Day) and 2026/11/25 (Company Holiday).
| A (Start Date) | B (Business Days) | C (Formula) | Result | Explanation |
|---|---|---|---|---|
| 2026/11/20 (Fri) | 1 | =WORKDAY(A2, B2) |
2026/11/23 | No holidays specified, so only the weekend is skipped, returning Monday |
| 2026/11/20 (Fri) | 1 | =WORKDAY(A3, B3, $E$2:$E$3) |
2026/11/24 | 11/23 (holiday) is also excluded, returning Tuesday (11/24) |
| 2026/11/20 (Fri) | 3 | =WORKDAY(A4, B4, $E$2:$E$3) |
2026/11/27 | 3 business days excluding weekend, 11/23, and 11/25 is 11/27 |
| 2026/11/26 (Thu) | -2 | =WORKDAY(A5, B5, $E$2:$E$3) |
2026/11/20 | Counting back 2 business days skipping 11/25, 11/23, and the weekend gives 11/20 |
Common Errors and Precautions
- Forgetting absolute references for the holiday range: When auto-filling (copying) the formula downward, leaving the holiday list range as a relative reference like
E2:E20will cause the range to shift. Always use absolute references with$signs, such as$E$2:$E$20. - Specifying
0fornum_days: If you pass0as the second argument, the start date itself is returned regardless of whether it is a weekday, weekend, or holiday. #VALUE!error: Occurs if the start date or any cell in the holiday list contains text that cannot be recognized as a valid date.
Frequently Asked Questions
Q. Are public holidays automatically excluded by the WORKDAY function?
A. No, they are not excluded automatically. By default, WORKDAY only excludes Saturdays and Sundays. To exclude holidays as well, create a list of holiday dates in your sheet and pass that cell range as the third argument, 'holidays'.
Q. What should I do if my non-working days are Wednesday and Thursday instead of Saturday and Sunday?
A. Since WORKDAY is fixed to Saturday and Sunday weekends, use the 'WORKDAY.INTL' function when you need to specify custom days of the week as weekends.