Business days in Google Sheets, with holidays built in
Google Sheets' NETWORKDAYS only skips the holidays you type in yourself. Holiday Workdays adds three functions that already know each country's public holidays. It is free, has no account, and uses the same holiday rules as our business days calculator.
The three functions
| Type this | You get |
|---|---|
=WORKDAYS("2026-11-02", "2026-11-30", "US") | 19: working days in that range, both dates counted, Thanksgiving skipped |
=WORKDAY_ADD("2026-11-13", 10, "US") | 2026-11-30: the date 10 working days later |
=HOLIDAYS("GB", 2027) | 8 rows of England and Wales bank holidays: date and name |
Use cell references too, like =WORKDAYS(A2, B2, "DE"). The country is a two-letter code: US, GB (England and Wales), DE, FR, JP, CA, AU and about 200 others. Add a region code such as "DE-BY" or "CA-ON" as the fourth argument for regional holidays, and a range of your own days off as the fifth: =WORKDAYS(A2, B2, "US", "", F2:F10).
Add it to your sheet (2 minutes)
- Click Copy the script below.
- In your Google Sheet, open Extensions → Apps Script.
- Delete what is in
Code.gs, paste, and press Ctrl+S (Cmd+S on a Mac). - Go back to the sheet and type
=WORKDAYS(. The functions now work in that file.
A one-click install from the Google Workspace Marketplace is on the way. Until then the copy above works the same way, in that one spreadsheet.
What it sends and stores
Dates are worked out inside Google's Apps Script for your file. US and UK holidays are calculated by the script itself. For other countries it asks the free Nager.Date holiday database for that country and year, sending only the country code and the year, and keeps the answer for six hours to stay fast. Your dates and sheet contents are not sent anywhere.
Questions
Why not just use NETWORKDAYS?
NETWORKDAYS needs a holidays range that you build and update every year. These functions look the holidays up for you, move them when they fall on a weekend the way each country does, and cover the next and previous years too.
Which countries?
The same list as the business days calculator: the US federal holidays, England and Wales bank holidays, and the public holidays in the Nager.Date database for about 200 countries, years 1990 to 2035. China is only approximate: its week-long Spring Festival and National Day breaks and the make-up working weekends are announced each year and are not in the data.
Does it work in Excel?
No, it is for Google Sheets. In Excel, NETWORKDAYS.INTL with a holiday range does the same job; you can copy that range from =HOLIDAYS() in Sheets or from the list on the calculator page.
Something is wrong
Write to the address on the contact page with the formula you typed and what it showed.