Date & Time Excel 2010 ◉ 33 views

=NETWORKDAYS.INTL()

string values are seven characters long and each character in the string represents a day of the week, starting with Monday. 1 represents a non-workday and 0 represents a workday. Only the characters 1 and 0 are permitted in the string. Using 1111111 will always return 0.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016Excel Web App
=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
Hover argument names in the table for details.
Output typeNumber
Popularity55 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =NETWORKDAYS.INTL() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download NETWORKDAYS.INTL.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
start_date Date Required and end_date Required. The dates for which the difference is to be computed. The start_date can be earlier than, the same as, or later than the end_date.
weekend Number Optional Indicates the days of the week that are weekend days and are not included in the number of whole working days between start_date and end_date. Weekend is a weekend number or string that specifies when weekends occur. Weekend number values indicate the following weekend days: 1 or omitted = Saturday, Sunday; 2 = Sunday, Monday; 3 = Monday, Tuesday; 4 = Tuesday, Wednesday; 5 = Wednesday, Thursday; 6 = Thursday, Friday; 7 = Friday, Saturday; 11 = Sunday only; 12 = Monday only; 13 = Tuesday only; 14 = Wednesday only; 15 = Thursday only; 16 = Friday only; 17 = Saturday only.
holidays Date Optional An optional set of one or more dates that are to be excluded from the working day calendar. Holidays shall be a range of cells that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.

▣ Examples

Results in 22 future workdays. Subtracts 9 nonworking weekend days (5 Saturdays and 4 Sundays) from the 31 total days between the two dates. By default, Saturday and Sunday are considered non-working days. =NETWORKDAYS.INTL(DATE(2006,1,1),DATE(2006,1,31))
Result: 22
Results in -21, which is 21 workdays in the past. =NETWORKDAYS.INTL(DATE(2006,2,28),DATE(2006,1,31))
Result: -21
Results in 22 future workdays by sutracting 10 nonworking days (4 Fridays, 4 Saturdays, 2 Holidays) from the 32 days between Jan 1 2006 and Feb 1 2006. Uses the 7 argument for weekend, which is Friday and Saturday. There are also two holidays in this time period. =NETWORKDAYS.INTL(DATE(2006,1,1),DATE(2006,2,1),7,{"2006/1/2","2006/1/16"})
Result: 22
Results in 22 future workdays. Same time period as example directly above, but with Sunday and Wednesday as weekend days. =NETWORKDAYS.INTL(DATE(2006,1,1),DATE(2006,2,1),"0010001",{"2006/1/2","2006/1/16"})
Result: 20

§ Remarks

  • If start_date is later than end_date, the return value will be negative, and the magnitude will be the number of whole workdays.
  • If start_date is out of range for the current date base value, NETWORKDAYS.INTL returns the #NUM! error value.
  • If end_date is out of range for the current date base value, NETWORKDAYS.INTL returns the #NUM! error value.
  • If a weekend string is of invalid length or contains invalid characters, NETWORKDAYS.INTL returns the #VALUE! error value.

✦ Tips

  • If start_date is later than end_date, the return value will be negative, and the magnitude will be the number of whole workdays.

⚠ Common Errors

#NUM! If start_date is out of range for the current date base value, NETWORKDAYS.INTL returns the #NUM! error value. If end_date is out of range for the current date base value, NETWORKDAYS.INTL returns the #NUM! error value.
Fix: Use codes 1 to 7 or 11 to 17
#VALUE! If a weekend string is of invalid length or contains invalid characters, NETWORKDAYS.INTL returns the #VALUE! error value.
Fix: برای weekend یک رشته هفت‌نویسه‌ای فقط شامل 0 و 1 یا یک کد عددی معتبر 1 تا 7 و 11 تا 17 وارد کنید.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.