Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

NETWORKDAYS.INTL in Google Sheets: How to Use It

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

NETWORKDAYS.INTL counts the number of working days between two dates while letting you define which days count as weekends. Use it when your work week is not Monday–Friday — for example, a Sunday–Thursday schedule or a six-day week — or when you need to count only specific weekdays as working days. The syntax is =NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]). All four arguments can be cell references or literal values, and the function returns a single number.

What You'll Need

  • A Google account with access to Google Sheets (desktop browser or mobile app).
  • Two dates to compare: a start date and an end date.
  • Optional: a list of holiday dates if you want them excluded from the count.
  • Knowledge of which days are your weekend, expressed as a weekend code (a number or a seven-character string).

Step-by-Step

  1. Open your spreadsheet. Launch Google Sheets and open the file where you want the result. The steps below work in the desktop browser version; the mobile app uses the same function but the formula bar is smaller, so typing long formulas is easier on a computer.
  2. Pick an empty cell for the result. Click a cell such as A1 or any blank cell where the working-day count should appear.
  3. Enter the start and end dates. Type the formula beginning with an equals sign, then the start date, a comma, and the end date. Dates can be typed as text in a recognised format (for example "2025-01-01") or referenced from cells that already contain dates. Using cell references is safer because Sheets reads them as real dates.
  4. Choose the weekend argument. The third argument tells Sheets which days are non-working. You can use a number code or a seven-character string. The number codes are: 1 = Saturday and Sunday (default), 2 = Sunday and Monday, 3 = Monday and Tuesday, 4 = Tuesday and Wednesday, 5 = Wednesday and Thursday, 6 = Thursday and Friday, 7 = Friday and Saturday, 11 = Sunday only, 12 = Monday only, 13 = Tuesday only, 14 = Wednesday only, 15 = Thursday only, 16 = Friday only, 17 = Saturday only. The string method uses seven characters starting with Monday: "0000011" means Saturday and Sunday are weekends (1 = weekend, 0 = working day). For a Sunday–Thursday week, use "1000001" (Friday and Saturday are weekends).
  5. Add holidays if needed. The fourth argument is optional. Select a range of cells that contain holiday dates, or type a list of dates separated by commas inside curly braces, for example {"2025-12-25","2025-01-01"}. Holidays that fall on a weekend are not double-counted.
  6. Close the parenthesis and press Enter. The cell shows the number of working days between the two dates, inclusive of both the start and end dates if they are working days. For example, =NETWORKDAYS.INTL(DATE(2025,1,1), DATE(2025,1,31), 1) returns the number of weekdays in January 2025 excluding Saturdays and Sundays.
  7. Copy the formula down or across. Drag the fill handle to apply the same logic to other rows. Use absolute references (with $) for the weekend code and holiday range if you want them fixed.

Common Mistakes

  • Using the wrong weekend code. The number codes and string codes are not interchangeable. Code 1 means Saturday–Sunday, but the string "1000000" means Monday only. Double-check which method you are using.
  • Forgetting that the count is inclusive. NETWORKDAYS.INTL includes both the start and end dates if they are working days. If you need exclusive counting (only days after the start date), subtract one from the result or adjust the start date.
  • Passing dates as text without quotes. A date like 2025-01-01 typed without quotes may be interpreted as a subtraction. Use quotes, the DATE function, or cell references.
  • Holiday range includes non-date values. Blank cells or text in the holiday range can cause errors. Keep the range clean or use a named range.
  • Weekend string has wrong length. The string must be exactly seven characters of 0s and 1s. A six-character string returns an error.

Tips

  • Use the string method for unusual weekends because it is easier to read: "0000011" clearly shows Saturday and Sunday off.
  • Store your weekend code in a separate cell and reference it, so you can change it without editing every formula.
  • Combine with WORKDAY.INTL to find a future working date: =WORKDAY.INTL(start_date, num_days, weekend, holidays).
  • If you only need Monday–Friday counting, the simpler NETWORKDAYS function works and uses the same holiday argument.
  • Format the result cell as a number, not a date, to avoid confusion.

Troubleshooting

If you see #VALUE!, check that the start and end dates are valid dates or date references, and that the weekend argument is a number from the list or a seven-character string. If you see #NUM!, the weekend code may be out of range (for example, 8 or 10) or the string contains characters other than 0 and 1. If the result looks wrong, verify that the holiday range does not include the start or end date unintentionally, and confirm that your weekend code matches your actual non-working days. For formulas that reference other sheets, ensure the sheet name is correct and the range exists. If the formula returns a date instead of a number, change the cell format to Number via Format > Number > Number. On mobile, the formula bar may hide part of the formula; tap the cell and scroll the formula bar to review it.

Frequently Asked Questions

What is the difference between NETWORKDAYS and NETWORKDAYS.INTL?

NETWORKDAYS always treats Saturday and Sunday as weekends. NETWORKDAYS.INTL lets you define which days are weekends using a code or string, so it handles other schedules.

Can I use NETWORKDAYS.INTL to count only specific weekdays as working days?

Yes. Set the weekend argument so that all other days are marked as weekend. For example, to count only Mondays as working days, use the string "0111111" (Monday is 0, the rest are 1).

Does NETWORKDAYS.INTL include holidays that fall on a weekend?

No. Holidays that fall on a weekend are ignored because they are already non-working days. Only holidays that fall on working days reduce the count.

Can I use cell references for the weekend argument?

Yes. Put the weekend code (number or string) in a cell and reference it, for example =NETWORKDAYS.INTL(A2, B2, D2).

Why does my formula return a decimal instead of a whole number?

NETWORKDAYS.INTL always returns a whole number. A decimal usually means the cell contains a different formula or the result is formatted as a date/time. Check the formula and the cell format.

Is NETWORKDAYS.INTL available in Google Sheets on mobile?

Yes, the function works in the Google Sheets mobile app, but typing long formulas is easier on a computer. The same syntax applies.