FormulaCraft

How to count business days between two dates in Excel and Google Sheets

Topic:Date arithmetic
Excel & Google Sheets
=NETWORKDAYS(A2,B2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter the start date in A2 and the end date in B2.
  2. 2In a result cell, enter =NETWORKDAYS(A2,B2).
  3. 3This counts Monday-Friday between and including both dates.
  4. 4To exclude holidays, list them in a range (e.g., D2:D6) and use =NETWORKDAYS(A2,B2,D2:D6).
  5. 5For non-standard work weeks (e.g., Sunday-Thursday), use NETWORKDAYS.INTL: =NETWORKDAYS.INTL(A2,B2,"0000011").

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

How do I count business days excluding a list of public holidays?

Create a list of holiday dates in a range, say E2:E10, and pass it as the third argument: =NETWORKDAYS(A2,B2,E2:E10). Any dates in the holiday list that fall on weekdays are excluded from the count.

What does NETWORKDAYS.INTL do differently?

NETWORKDAYS.INTL lets you define which days are weekends via a 7-character string (1=weekend, 0=workday). "0000011" means Saturday and Sunday are weekends, matching the default. Change it for custom schedules.

More on Date arithmetic

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: