Spreadsheet Practice

How to calculate the number of working days in a month in Excel

Formula (Excel and Google Sheets)

=NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0),$D$2:$D$6)

Use NETWORKDAYS from the first to the last day of the month: =NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0),holidays).

Result on the example
one result per row in B2, filled down to B6
Works in
Every current version
Google Sheets
Same formula

See it work

The formula is already in B2, filled down to B6. Change any input and the result updates, or edit the formula to experiment.

How it works

EOMONTH(A2,-1)+1 and EOMONTH(A2,0) are the first and last days of the month, whatever day A2 is. NETWORKDAYS counts the weekdays between them, both included, minus the holidays. January 2026 has 22 weekdays; less New Year's Day and Martin Luther King Jr. Day, that is 20.

=NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0),$D$2:$D$6)

Result20

  1. A2Jan 2026

    The value in A2.

  2. -1-1

    Makes the value negative.

  3. EOMONTH(A2,-1)12/31/2025 (46022)

    EOMONTH: Last day of the month, months away.

    • start_dateA2Jan 2026
    • months-1-1
  4. EOMONTH(A2,-1)+146023

    The + operator adds.

  5. EOMONTH(A2,0)1/31/2026 (46053)

    EOMONTH: Last day of the month, months away.

    • start_dateA2Jan 2026
    • months0
  6. $D$2:$D$65 rows × 1 col: 1/1/2026, 1/19/2026, 2/16/2026, 5/25/2026, …

    A range: 5 cells in one column.

  7. NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0),$D$2:$D$6)20

    NETWORKDAYS: Weekdays between two dates, inclusive.

    • start_dateEOMONTH(A2,-1)+146023
    • end_dateEOMONTH(A2,0)1/31/2026 (46053)
    • holidays$D$2:$D$65 rows × 1 col: 1/1/2026, 1/19/2026, 2/16/2026, 5/25/2026, …

In Google Sheets

The same formula works in Google Sheets: =NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0),$D$2:$D$6). We ran it in Google Sheets mode on the same data and it returns the same results.

Other ways to do it

Each one was run on the same example sheet.

FormulaResultWhen to use it
=NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0))22, 20, 22…Different resultWeekdays only, with no holiday list. Holidays count as working days.

Common mistakes

  • With a mid-month date in A2, NETWORKDAYS(A2,EOMONTH(A2,0)) counts only the rest of the month. Start from EOMONTH(A2,-1)+1 for the whole month.
  • A holiday on a weekend doesn't reduce the count. List the observed weekday instead, like July 3, 2026 for Independence Day.

Try it yourself

Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.

Calculate the number of working days in a month

In B2, count the working days (Monday to Friday) in the month of A2, leaving out the holidays in D2:D6. Fill down to B6.

Questions

How many working days are left in the month?

Start from today: =NETWORKDAYS(TODAY(),EOMONTH(TODAY(),0),$D$2:$D$6). It includes today if today is a working day.

What if my weekend isn't Saturday and Sunday?

Use NETWORKDAYS.INTL, which takes a weekend code, such as 7 for Friday and Saturday.

Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.