Guides

Excel NETWORKDAYS and WORKDAY with Bank Holidays (Auto-Updating)

The formulas

=NETWORKDAYS(A2, B2, Holidays!A:A)        // business days between two dates (inclusive)
=WORKDAY(A2, 10, Holidays!A:A)            // 10 business days after A2
=NETWORKDAYS.INTL(A2, B2, 7, Holidays!A:A) // weekend = Friday-Saturday

Note that NETWORKDAYS counts both the start and end dates, unlike most programming conventions.

Fill the holiday range automatically

In Google Sheets, put this in cell A1 of a sheet called Holidays. It loads every holiday for the calendar as a table, so Holidays!A2:A becomes the holiday range:

=IMPORTDATA("https://bankday.dev/v1/holidays?calendar=us-fed&year=2027&format=csv&api_key=YOUR_KEY")

In Excel, use Data → From Web with the same URL. For a key-free option with only the Federal Reserve calendar, import the open fed-holidays CSV. More on spreadsheets: business days in Google Sheets.

Get a free API key

1,000 requests/month free. No credit card. Your key appears instantly.