ElyxAI
formulas

How to Use NETWORKDAYS Function

Excel 2016Excel 2019Excel 365Excel Online

Learn to use NETWORKDAYS to calculate working days between two dates, automatically excluding weekends and holidays. This function is essential for project management, HR scheduling, and deadline calculations. You'll master syntax, holiday handling, and practical business applications.

Why This Matters

NETWORKDAYS streamlines project timelines and resource planning by accurately counting working days for deliverables and deadlines. It's crucial for HR, operations, and client-facing teams managing schedules.

Prerequisites

  • Basic understanding of Excel functions and cell references
  • Knowledge of date formats in Excel
  • Familiarity with the formula bar

Step-by-Step Instructions

1

Open a new worksheet and enter start and end dates

In cell A1, type a start date (e.g., 1/1/2024). In cell B1, type an end date (e.g., 1/31/2024). Ensure dates are formatted as dates, not text.

2

Click on the cell for your result

Select cell C1 where you want the working days count to appear.

3

Enter the NETWORKDAYS formula

Type =NETWORKDAYS(A1,B1) and press Enter. This calculates working days between the two dates, excluding Saturdays and Sundays.

4

Add holidays (optional)

To exclude holidays, modify the formula to =NETWORKDAYS(A1,B1,D1:D5) where D1:D5 contains your holiday dates. Place holiday dates in a separate column first.

5

Verify and adjust results

Check the result against your calendar manually. If weekends differ by region, use NETWORKDAYS.INTL for custom weekend definitions.

Alternative Methods

Use NETWORKDAYS.INTL for custom weekends

Replace NETWORKDAYS with NETWORKDAYS.INTL(start, end, weekend, holidays) to define which days are weekends (useful for regions where Friday-Saturday is the weekend).

Manual calculation with WEEKDAY

Combine SUMPRODUCT and WEEKDAY functions for advanced filtering, though NETWORKDAYS is simpler and more efficient.

Tips & Tricks

  • Store holiday dates in a named range (e.g., 'Holidays') for easy formula updates across multiple sheets.
  • Always format your date columns consistently to avoid errors; use Format > Cells > Date.
  • Test your formula with a date range you can manually count to verify accuracy.

Pro Tips

  • Use NETWORKDAYS in dashboards to auto-update SLA (Service Level Agreement) metrics based on current dates.
  • Combine NETWORKDAYS with IF statements to flag projects exceeding allocated working days.
  • Create a master holiday calendar sheet and reference it across all formulas using absolute references ($).

Troubleshooting

Formula returns #VALUE! error

Check that start and end dates are in date format, not text. Select the cells and use Format > Cells > Number tab > Date category. Alternatively, convert text to dates using DATEVALUE().

Holiday dates aren't being excluded

Verify holiday cells are formatted as dates. Ensure the holiday range is included in your formula's third parameter and check for extra spaces or typos in date values.

Result seems incorrect (too many or too few days)

Manually count working days on a calendar to verify. Check if your region uses different weekend days; use NETWORKDAYS.INTL if Friday-Saturday is your weekend.

Related Excel Formulas

Frequently Asked Questions

Does NETWORKDAYS count the start and end dates?
Yes, both start and end dates are included in the count if they fall on working days. If either date falls on a weekend or holiday, it is not counted.
Can I use NETWORKDAYS with different weekend definitions?
Yes, use NETWORKDAYS.INTL instead, which allows you to specify weekend days as a number code (1-7) or text string representing your region's weekend pattern.
What's the maximum range for holidays parameter?
Excel supports up to 1,024 characters in the formula, so you can include hundreds of holiday dates. For large holiday lists, use a named range to keep formulas clean.

This was one task. ElyxAI handles hundreds.

Sign up