{
  "category": "Date and time functions",
  "display_name": "NETWORKDAYS.INTL",
  "entry_kind": "built_in_function",
  "eval_api": {
    "method": "POST",
    "url": "https://handbook.dnacalc.com/api/eval"
  },
  "function_id": "FUNC.NETWORKDAYS.INTL",
  "implementation_state": {
    "answer_bank": {
      "excel_builds": [
        "20430"
      ],
      "larger_numeric": 0,
      "last_bit": 0,
      "matched": 3600,
      "other_mismatch": 0,
      "refused": 0,
      "rows": 3600,
      "unread": 0,
      "worst_ulp": 0
    },
    "detail": "Recorded: 3,600 in the answer bank and 21 workbook cells.",
    "dnacalc_commit": "9e1884369a678158dd82d3d74188daf986995e87",
    "in_catalogue": true,
    "state": "matches",
    "state_label": "Matches every recorded Excel answer",
    "summary": "Matches all 3,621 recorded answers",
    "workbook_corpus": {
      "cells": 21,
      "matched": 21
    }
  },
  "implementations": [
    {
      "commit": "9e1884369a678158dd82d3d74188daf986995e87",
      "flavour": "excel-compatibility-candidate",
      "language": "Rust",
      "name": "CalcFunc",
      "own_code": [
        "https://github.com/DnaCalc/DnaCalc/blob/9e1884369a678158dd82d3d74188daf986995e87/crates/calc-func/src/catalogue/dates.rs#L328-L330"
      ],
      "repository": "https://github.com/DnaCalc/DnaCalc",
      "shared_code": [
        "catalogue/dates::environment",
        "catalogue/dates::system",
        "catalogue/dates::to_1900",
        "catalogue/dates::from_1900",
        "catalogue/dates::present_num",
        "catalogue/dates::serial_out",
        "catalogue/dates::weekend",
        "catalogue/dates::holidays",
        "catalogue/dates::workday",
        "catalogue/dates::networkdays",
        "ported/date_kernels::days",
        "ported/date_kernels::weekday_sunday_one_based",
        "ported/date_kernels::WeekendMask::saturday_sunday",
        "ported/date_kernels::WeekendMask::from_number",
        "ported/date_kernels::WeekendMask::from_mask_text",
        "ported/date_kernels::WeekendMask::is_all_days",
        "ported/date_kernels::WeekendMask::contains_serial",
        "ported/date_kernels::serial_from_number",
        "ported/date_kernels::is_business_day",
        "ported/date_kernels::workday",
        "ported/date_kernels::networkdays"
      ],
      "source": "https://github.com/DnaCalc/DnaCalc/blob/9e1884369a678158dd82d3d74188daf986995e87/crates/calc-func/src/catalogue/dates.rs#L328-L330",
      "state": "matches",
      "suite": null,
      "summary": "Matches all 3,621 recorded answers"
    }
  ],
  "json_url": "https://handbook.dnacalc.com/api/functions/FUNC.NETWORKDAYS.INTL.json",
  "name": "NETWORKDAYS.INTL",
  "notes": [
    {
      "basis": "19 NETWORKDAYS.INTL and 20 WORKDAY.INTL readings with errors held in cells, and the logical weekend readings of the argument sheets.",
      "documentation": null,
      "evidence": [
        {
          "commit": "287c5b9a3bec81ea96f12ad485f18a0d4b729063",
          "locator": "delivered_scalar_readings_follow_the_application_route",
          "note": "recorded answers pinned",
          "path": "apps/dna-onecalc/tests/acceptance.rs",
          "repository": "DnaCalc"
        },
        {
          "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
          "locator": null,
          "note": "19 recorded readings",
          "path": "crates/calc-func/tests/captures/fn4_questions/NETWORKDAYS.INTL.reading.json",
          "repository": "DnaCalc"
        },
        {
          "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
          "locator": null,
          "note": "20 recorded readings",
          "path": "crates/calc-func/tests/captures/fn4_questions/WORKDAY.INTL.reading.json",
          "repository": "DnaCalc"
        }
      ],
      "functions": [
        "FUNC.NETWORKDAYS.INTL",
        "FUNC.WORKDAY.INTL"
      ],
      "inferred": null,
      "kind": "quirk",
      "note_id": "FN-NETWORKDAYS.INTL-001",
      "open": [],
      "recorded_on": "2026-11-04",
      "repros": [
        {
          "call": "NETWORKDAYS.INTL(A1, 5, 0)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#NUM!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "start_date",
              "value": {
                "bits": null,
                "display": "#REF!",
                "kind": "error"
              }
            },
            {
              "name": "end_date",
              "value": {
                "bits": "0x4014000000000000",
                "display": "5",
                "kind": "number"
              }
            },
            {
              "name": "weekend",
              "value": {
                "bits": "0x0000000000000000",
                "display": "0",
                "kind": "number"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "fn7-NETWORKDAYS.INTL-weekend-first-order-2",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/NETWORKDAYS.INTL.reading.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "WORKDAY.INTL(A1, 5, 0)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#REF!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "start_date",
              "value": {
                "bits": null,
                "display": "#REF!",
                "kind": "error"
              }
            },
            {
              "name": "days",
              "value": {
                "bits": "0x4014000000000000",
                "display": "5",
                "kind": "number"
              }
            },
            {
              "name": "weekend",
              "value": {
                "bits": "0x0000000000000000",
                "display": "0",
                "kind": "number"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "fn7-WORKDAY.INTL-weekend-first-order-2",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/WORKDAY.INTL.reading.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "NETWORKDAYS.INTL(2, 5, A3)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#VALUE!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "start_date",
              "value": {
                "bits": "0x4000000000000000",
                "display": "2",
                "kind": "number"
              }
            },
            {
              "name": "end_date",
              "value": {
                "bits": "0x4014000000000000",
                "display": "5",
                "kind": "number"
              }
            },
            {
              "name": "weekend",
              "value": {
                "bits": null,
                "display": "#REF!",
                "kind": "error"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "fn7-NETWORKDAYS.INTL-admission-order-6",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/NETWORKDAYS.INTL.reading.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "WORKDAY.INTL(2, 5, A3)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#NUM!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "start_date",
              "value": {
                "bits": "0x4000000000000000",
                "display": "2",
                "kind": "number"
              }
            },
            {
              "name": "days",
              "value": {
                "bits": "0x4014000000000000",
                "display": "5",
                "kind": "number"
              }
            },
            {
              "name": "weekend",
              "value": {
                "bits": null,
                "display": "#REF!",
                "kind": "error"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "fn7-WORKDAY.INTL-admission-order-6",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/WORKDAY.INTL.reading.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=NETWORKDAYS.INTL(2,5,TRUE)",
          "correct": null,
          "excel": {
            "bits": "0x4010000000000000",
            "display": "4",
            "kind": "number"
          },
          "input_route": "formula-literal",
          "inputs": [],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa043, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=NETWORKDAYS.INTL(2,5,FALSE)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#NUM!",
            "kind": "error"
          },
          "input_route": "formula-literal",
          "inputs": [],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa044, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=WORKDAY.INTL(2,2,TRUE)",
          "correct": null,
          "excel": {
            "bits": "0x4010000000000000",
            "display": "4",
            "kind": "number"
          },
          "input_route": "formula-literal",
          "inputs": [],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa065, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=WORKDAY.INTL(2,2,FALSE)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#NUM!",
            "kind": "error"
          },
          "input_route": "formula-literal",
          "inputs": [],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa066, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        }
      ],
      "schema": "efh.function-note/v1",
      "statement": "The two functions read their arguments in different orders. NETWORKDAYS.INTL decodes weekend first: with #REF! in the cell for start_date and weekend 0, the answer is #NUM!, from the invalid weekend. WORKDAY.INTL reads start_date first and gives #REF! for the same arguments. An error held in the weekend cell is also treated differently: with start 2 and second argument 5, NETWORKDAYS.INTL gives #VALUE! and WORKDAY.INTL gives #NUM!. Neither returns the error itself. A logical weekend is read as a number: NETWORKDAYS.INTL(2,5,TRUE) is 4, as with weekend 1, and FALSE is #NUM!, as with weekend 0. WORKDAY.INTL does the same.",
      "status": "measured",
      "title": "NETWORKDAYS.INTL checks weekend before the dates, WORKDAY.INTL after them"
    },
    {
      "basis": "8 recorded readings with an empty B1, one per function, each paired with a reading with TRUE in B1.",
      "documentation": null,
      "evidence": [
        {
          "commit": "c4c5dde7e2dcf735d2849835fc49769e2ab67ba7",
          "locator": "delivered_fn4_blank_date_references_read_serial_zero",
          "note": "recorded answers pinned",
          "path": "apps/dna-onecalc/tests/acceptance.rs",
          "repository": "DnaCalc"
        },
        {
          "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
          "locator": "sheets qa031 and qa032, and the like pairs of each function",
          "note": "recorded readings",
          "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
          "repository": "DnaCalc"
        }
      ],
      "functions": [
        "FUNC.NETWORKDAYS",
        "FUNC.NETWORKDAYS.INTL",
        "FUNC.TBILLEQ",
        "FUNC.TBILLPRICE",
        "FUNC.TBILLYIELD",
        "FUNC.WORKDAY",
        "FUNC.WORKDAY.INTL",
        "FUNC.YEARFRAC"
      ],
      "inferred": null,
      "kind": "quirk",
      "note_id": "FN-WORKDAY-001",
      "open": [
        "An argument left empty in the call was not read here for YEARFRAC and the T-bill functions."
      ],
      "recorded_on": "2026-11-04",
      "repros": [
        {
          "call": "=NETWORKDAYS(B1,5)",
          "correct": null,
          "excel": {
            "bits": "0x4010000000000000",
            "display": "4",
            "kind": "number"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "(empty cell)",
                "kind": "blank"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa032, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=NETWORKDAYS(B1,5)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#VALUE!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "TRUE",
                "kind": "logical"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa031, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=WORKDAY(B1,2)",
          "correct": null,
          "excel": {
            "bits": "0x4008000000000000",
            "display": "3",
            "kind": "number"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "(empty cell)",
                "kind": "blank"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa054, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=WORKDAY(B1,2)",
          "correct": null,
          "excel": {
            "bits": null,
            "display": "#VALUE!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "TRUE",
                "kind": "logical"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa053, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=NETWORKDAYS.INTL(B1,5,1)",
          "correct": null,
          "excel": {
            "bits": "0x4010000000000000",
            "display": "4",
            "kind": "number"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "(empty cell)",
                "kind": "blank"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa040, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=WORKDAY.INTL(B1,2,1)",
          "correct": null,
          "excel": {
            "bits": "0x4008000000000000",
            "display": "3",
            "kind": "number"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "(empty cell)",
                "kind": "blank"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa062, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=YEARFRAC(B1,5,0)",
          "correct": null,
          "excel": {
            "bits": "0x3f8c71c71c71c71c",
            "display": "0.013888888888888888",
            "kind": "number"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "(empty cell)",
                "kind": "blank"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa072, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        },
        {
          "call": "=TBILLEQ(B1,5,0.1)",
          "correct": null,
          "excel": {
            "bits": "0x3fb9fddd1b6a757f",
            "display": "0.10152990264255911",
            "kind": "number"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "(empty cell)",
                "kind": "blank"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
          "source": {
            "commit": "2d0eddcac86413014643af81d646581d54ba57bc",
            "locator": "sheet qa082, row 20, column 10",
            "note": null,
            "path": "crates/calc-func/tests/captures/fn4_questions/functions-fn4-arguments.capture.json",
            "repository": "DnaCalc"
          }
        }
      ],
      "schema": "efh.function-note/v1",
      "statement": "A reference to an empty cell as the first date of these functions reads as serial 0 and gives a normal answer: NETWORKDAYS(B1,5) is 4 and WORKDAY(B1,2) is 3. YEARFRAC(B1,5,0) is 5/360. TRUE in the same cell gives #VALUE!, as a direct TRUE does, so a blank is not treated as the logical FALSE either.",
      "status": "measured",
      "title": "An empty cell as a first date is serial 0, but a logical in that cell is #VALUE!"
    }
  ],
  "schema": "efh.function-reference/v1",
  "section_order": [
    "what-it-does",
    "try-it",
    "quirks",
    "how-to-implement",
    "version-differences",
    "alternatives"
  ],
  "sections": {
    "alternatives": "\n### Relationships\n\n\n- **[NETWORKDAYS](FUNC.NETWORKDAYS.md)** — the un-generalized original. `NETWORKDAYS(a,b,h)` should\n  equal `NETWORKDAYS.INTL(a,b,1,h)`; that equivalence is unverified here and is the family's\n  cleanest cross-check.\n- **[WORKDAY.INTL](FUNC.WORKDAY.INTL.md)** — the inverse operation with the identical `weekend`\n  argument. The two should agree about which days are weekends by construction, but their errors\n  do not match: the documented tables are worded differently, and FN-NETWORKDAYS.INTL-001 measures\n  different answers for errors in the date and weekend cells.\n- **[WORKDAY](FUNC.WORKDAY.md)** — the un-generalized inverse.\n- **[WEEKDAY](FUNC.WEEKDAY.md)** — the underlying day-of-week notion, with yet another numbering\n  convention. This family contains four mutually non-aligned weekday numberings: `WEEKDAY`'s\n  legacy codes, `WEEKDAY`'s 11–17 block, `.INTL`'s 1–7 pairs, and `.INTL`'s Monday-first string.\n  That is a genuine design fact about the surface and the source of most `.INTL` bugs.\n\n\n",
    "how-to-implement": "\n### Notes for implementers\n\n\n1. **Normalize `weekend` to a seven-bit mask first**, from either the numeric code or the string,\n   and reject invalid inputs at that point. Every downstream step then sees one representation.\n2. **Get the Monday-first string convention right**, and write a test that fails if the mask is\n   reversed — a reversed mask is symmetric for the common `\"0000011\"`/`\"1100000\"` confusion only in\n   the sense that both look plausible.\n3. **Use whole-week arithmetic, not enumeration.** With a mask, the count over `n` whole weeks is\n   `n × popcount(¬mask)`, and only the partial week at each end needs a loop of at most six\n   iterations. Enumeration over a century-scale interval is reachable and slow.\n4. **Decide the all-weekend (`\"1111111\"`) policy deliberately** and keep it consistent with\n   `WORKDAY.INTL`, where the documentation is explicit that the string is invalid.\n5. **Do not accept a numeric `weekend` that happens to look like a mask.** `11` is a table code, not\n   a two-day pattern.\n\n\n",
    "quirks": "\n### Result and edge cases\n\n\nReturns a `Number`: a count of working days.\n\n- **Inclusivity of the endpoints** is not stated on the Microsoft page, exactly as with\n  `NETWORKDAYS`. The expected behaviour is that both endpoints count, and\n  `NETWORKDAYS.INTL(2,5,TRUE)` = 4 fits it (FN-NETWORKDAYS.INTL-001).\n- **Reversed intervals** — likewise undocumented and unverified.\n- **A weekend covering six days** leaves one working day per week and is legal.\n- **Holidays landing on weekend days** should contribute nothing, since the operation is exclusion;\n  undocumented.\n- **Blank cells in a `holidays` range** raise the Empty-versus-Missing question from\n  [the value universe](../model/01-value-universe.md), and serial 0 is inside the representable\n  range — so a blank interpreted as a number is a date. Undocumented and a real hazard.\n\n\n\n### Errors\n\n\nAs documented on the Microsoft page:\n\n- `#NUM!` when `start_date` or `end_date` is out of the valid date range.\n- `#VALUE!` when \"a weekend string is of invalid length or contains invalid characters\".\n\nCompare [NETWORKDAYS](FUNC.NETWORKDAYS.md), whose page documents `#VALUE!` \"if any argument is not a\nvalid date\" — a different error value for what looks like the same failure. The Handbook records\nthe discrepancy rather than resolving it by assumption; see\n[claim language](../model/06-claim-language.md), rule 5.\n\nThe documented `#VALUE!` condition names only *string* invalidity. What an out-of-table **numeric**\nweekend code does is not stated on that page. Code 0 gives `#NUM!` (FN-NETWORKDAYS.INTL-001); 8, 10\nand 18 are not asserted here.\n\n\n",
    "sources": "\n- Microsoft 365 support, **NETWORKDAYS.INTL function** —\n  <https://support.microsoft.com/en-us/office/networkdays-intl-function-a9b26239-4f20-46a1-9ab8-4e925bfd5e28>.\n  Source of the weekend number table, the weekend string rules quoted above, and both documented\n  error conditions.\n- Microsoft 365 support, **WORKDAY.INTL function** —\n  <https://support.microsoft.com/en-us/office/workday-intl-function-a378391c-9ba7-4678-8a39-39611a9bf81d>.\n  Source of the \"at least one workday required\" statement about `\"1111111\"`.\n- Microsoft 365 support, **NETWORKDAYS function** —\n  <https://support.microsoft.com/en-us/office/networkdays-function-48e717bf-a7a3-495f-969e-5005e3eb18e7>.\n  Cited for the contrasting error condition.\n- Handbook call-model chapters [01 value universe](../model/01-value-universe.md) and\n  [06 claim language](../model/06-claim-language.md).\n- `data/functions/FUNC.NETWORKDAYS.INTL.json`, `data/presence/FUNC.NETWORKDAYS.INTL.json`,\n  `data/battery/FUNC.NETWORKDAYS.INTL.json`.\n\n",
    "version-differences": "The recorded environments below distinguish a reading from a same-input comparison. Counts describe captured inputs in each environment; overlapping captures and comparisons are not totals of unique worksheet calls.\n\n| Excel 16.0 build | Platform and CPU | Captured inputs |\n|---|---|---:|\n| 20430 | Windows, 64-bit, AMD Ryzen 7 4800H with Radeon Graphics | 2,400 |\n\nThe record contains no same-input comparison between these environments. Reading different inputs on different builds does not establish either a version change or cross-build agreement.\n\n[Recorded environments and comparison details](https://github.com/DnaCalc/ExcelFunctionsHandbook/blob/5dc75391aa5125ccc5abdb095da85950980d6fd8/content/evidence/environments/FUNC.NETWORKDAYS.INTL.json).",
    "what-it-does": "\n`NETWORKDAYS.INTL` counts the whole working days in the interval from `start_date` to `end_date`,\nexcluding days designated as weekend and any dates listed in `holidays`. It differs from\n[NETWORKDAYS](FUNC.NETWORKDAYS.md) in exactly one respect: **the weekend is an argument**, not a\nconstant, and it can name any subset of the week.\n\nThat single change is what makes the function usable outside the Saturday/Sunday world — Friday–\nSaturday weekends, single-day weekends, six-day working weeks, and (via the string form)\narbitrary patterns such as \"Wednesday and Sunday off\".\n\nThe count itself is the same filtered enumeration: take the days of the interval, drop the ones\nwhose weekday is designated weekend, drop the ones in `holidays`, return the remainder.\n\n\n\n### Arguments\n\n\n`NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])` — two required and two optional.\n\n**start_date**, **end_date** — the interval endpoints, as date serials.\n\n**weekend** — optional. Two entirely different value shapes are accepted, and they are the reason\nthis function needs a page.\n\n*As a number*, the documented table is:\n\n| Number | Weekend days |\n|---|---|\n| 1 or omitted | Saturday, Sunday |\n| 2 | Sunday, Monday |\n| 3 | Monday, Tuesday |\n| 4 | Tuesday, Wednesday |\n| 5 | Wednesday, Thursday |\n| 6 | Thursday, Friday |\n| 7 | Friday, Saturday |\n| 11 | Sunday only |\n| 12 | Monday only |\n| 13 | Tuesday only |\n| 14 | Wednesday only |\n| 15 | Thursday only |\n| 16 | Friday only |\n| 17 | Saturday only |\n\nThe two blocks have different generators, which is the trap. Codes **1–7** name *consecutive\npairs*, and the pair for code `n` begins on the day `n` positions after Friday — code 1 is\nSaturday+Sunday, code 2 is Sunday+Monday, and so on around the week. Codes **11–17** name *single\ndays*, running Sunday (11) through Saturday (17). There is no code for a non-consecutive pair; for\nthat you need the string form. Note also that the single-day block starts at Sunday while the\npair block starts at Saturday, so neither block's numbering aligns with the other's, nor with\n[WEEKDAY](FUNC.WEEKDAY.md)'s `return_type` numbering. Nothing about these tables is memorable, and\nguessing is unwise.\n\n*As a string*, Microsoft documents: \"Weekend string values are seven characters long and each\ncharacter in the string represents a day of the week, starting with Monday.\" Each character is\n`\"1\"` for a non-workday or `\"0\"` for a workday, and \"only the characters 1 and 0 are permitted in\nthe string\". So `\"0000011\"` is the ordinary Saturday/Sunday weekend, and `\"0100010\"` is Tuesday and\nSaturday off.\n\nThree details about the string form:\n\n- **It starts with Monday**, which is not the convention any of this function's numeric tables use\n  and not the convention `WEEKDAY`'s default `return_type` uses.\n- **`\"1111111\"` is invalid** — the [WORKDAY.INTL](FUNC.WORKDAY.INTL.md) page states the rule\n  explicitly (\"at least one workday required\"), and the same argument is shared by both functions.\n  Whether `NETWORKDAYS.INTL` rejects it identically is a natural check that has not been run here;\n  a zero-workday week would make the count trivially 0 rather than undefined, so the two functions\n  could defensibly differ.\n- **It is text, not a number.** A `weekend` of `0000011` written without quotes is the number 11,\n  which is a valid *numeric* code meaning \"Sunday only\" — a silent, plausible-looking wrong answer\n  rather than an error. This is the sharpest foot-gun in the function.\n\n**holidays** — optional range or array of dates to exclude, as on\n[NETWORKDAYS](FUNC.NETWORKDAYS.md).\n\n\n"
  },
  "signature": {
    "display": "NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])",
    "parameters": [
      {
        "description": null,
        "name": "start_date",
        "optional": false,
        "repeats": false
      },
      {
        "description": null,
        "name": "end_date",
        "optional": false,
        "repeats": false
      },
      {
        "description": null,
        "name": "weekend",
        "optional": true,
        "repeats": false
      },
      {
        "description": null,
        "name": "holidays",
        "optional": true,
        "repeats": false
      }
    ],
    "trailing_repeats": false
  },
  "sources": {
    "metadata": {
      "admission": {
        "label": "implemented",
        "reason": null
      },
      "arity": {
        "max": 4,
        "min": 2
      },
      "category": "Date and time functions",
      "classification": {
        "arg_preparation_profile": "ValuesOnlyPreAdapter",
        "coercion_lift_profile": "Custom",
        "determinism_class": "Deterministic",
        "error_collapse_profile": "None",
        "fec_dependency_profile": "None",
        "host_interaction_class": "None",
        "kernel_signature_class": "Custom",
        "rich_value_usage": "RichBlind",
        "surface_fec_dependency_profile": "RefOnly",
        "thread_safety_class": "SafePure",
        "volatility_class": "NonVolatile"
      },
      "descriptions": {
        "long": null,
        "short": "Working days between two dates with a chosen weekend and listed holidays",
        "short_source": "dna-calc-own"
      },
      "docs": {
        "english_description": "Returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days",
        "microsoft_url": "https://support.microsoft.com/en-us/office/networkdays-intl-function-a9b26239-4f20-46a1-9ab8-4e925bfd5e28"
      },
      "entry_kind": "built_in_function",
      "localized_family_names": null,
      "localized_names": [
        {
          "locale": "ar-SA",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "bg-BG",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "cs-CZ",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "da-DK",
          "name": "ANTAL.ARBEJDSDAGE.INTL"
        },
        {
          "locale": "de-DE",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "el-GR",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "en-AU",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "en-GB",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "en-US",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "es-ES",
          "name": "DIAS.LAB.INTL"
        },
        {
          "locale": "et-EE",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "fi-FI",
          "name": "TYÖPÄIVÄT.KANSVÄL"
        },
        {
          "locale": "fr-FR",
          "name": "NB.JOURS.OUVRES.INTL*"
        },
        {
          "locale": "he-IL",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "hr-HR",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "hu-HU",
          "name": "ÖSSZ.MUNKANAP.INTL"
        },
        {
          "locale": "id-ID",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "it-IT",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "ja-JP",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "ko-KR",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "lt-LT",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "lv-LV",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "nb-NO",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "nl-NL",
          "name": "NETWERKDAGEN.INTL"
        },
        {
          "locale": "pl-PL",
          "name": "DNI.ROBOCZE.NIESTAND"
        },
        {
          "locale": "pt-BR",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "pt-PT",
          "name": "DIATRABALHOTOTAL.INTL"
        },
        {
          "locale": "ro-RO",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "ru-RU",
          "name": "ЧИСТРАБДНИ.МЕЖД"
        },
        {
          "locale": "sk-SK",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "sl-SI",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "sr-Latn-RS",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "sv-SE",
          "name": "NETTOARBETSDAGAR.INT"
        },
        {
          "locale": "th-TH",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "tr-TR",
          "name": "TAMİŞGÜNÜ.ULUSL"
        },
        {
          "locale": "uk-UA",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "vi-VN",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "zh-CN",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "zh-HK",
          "name": "NETWORKDAYS.INTL"
        },
        {
          "locale": "zh-TW",
          "name": "NETWORKDAYS.INTL"
        }
      ],
      "signature": {
        "display": "NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])",
        "parameters": [
          {
            "description": null,
            "name": "start_date",
            "optional": false,
            "repeats": false
          },
          {
            "description": null,
            "name": "end_date",
            "optional": false,
            "repeats": false
          },
          {
            "description": null,
            "name": "weekend",
            "optional": true,
            "repeats": false
          },
          {
            "description": null,
            "name": "holidays",
            "optional": true,
            "repeats": false
          }
        ],
        "trailing_repeats": false
      },
      "surface_name": "NETWORKDAYS.INTL",
      "version_marker": null,
      "xlcall": {
        "code": "520",
        "symbol": "xlfNetworkdays_intl"
      }
    },
    "microsoft": "https://support.microsoft.com/en-us/office/networkdays-intl-function-a9b26239-4f20-46a1-9ab8-4e925bfd5e28"
  },
  "try_it": {
    "formula": "=NETWORKDAYS.INTL(DATE(2026,11,2),DATE(2026,11,6),1)"
  },
  "url": "https://handbook.dnacalc.com/functions/NETWORKDAYS.INTL.html",
  "variants": [],
  "versions": [
    {
      "behaviour": "NETWORKDAYS.INTL(A1, 5, 0) returned #NUM!. NETWORKDAYS.INTL(2, 5, A3) returned #VALUE!. Inputs were supplied through cells using Value2. These are controls from this environment, not a same-input comparison with another build.",
      "excel_build": "16.0.20527.20088",
      "observations": [
        {
          "call": "NETWORKDAYS.INTL(A1, 5, 0)",
          "excel": {
            "bits": null,
            "display": "#NUM!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "start_date",
              "value": {
                "bits": null,
                "display": "#REF!",
                "kind": "error"
              }
            },
            {
              "name": "end_date",
              "value": {
                "bits": "0x4014000000000000",
                "display": "5",
                "kind": "number"
              }
            },
            {
              "name": "weekend",
              "value": {
                "bits": "0x0000000000000000",
                "display": "0",
                "kind": "number"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file"
        },
        {
          "call": "NETWORKDAYS.INTL(2, 5, A3)",
          "excel": {
            "bits": null,
            "display": "#VALUE!",
            "kind": "error"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "start_date",
              "value": {
                "bits": "0x4000000000000000",
                "display": "2",
                "kind": "number"
              }
            },
            {
              "name": "end_date",
              "value": {
                "bits": "0x4014000000000000",
                "display": "5",
                "kind": "number"
              }
            },
            {
              "name": "weekend",
              "value": {
                "bits": null,
                "display": "#REF!",
                "kind": "error"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file"
        }
      ],
      "platform": "Windows, bitness and CPU not recorded in this reading file",
      "sources": [
        "https://github.com/DnaCalc/ExcelFunctionsHandbook/blob/3345a87/content/notes/FN-NETWORKDAYS.INTL-001.json"
      ]
    },
    {
      "behaviour": "=NETWORKDAYS.INTL(2,5,TRUE) returned 4 (0x4010000000000000). =NETWORKDAYS.INTL(2,5,FALSE) returned #NUM!. 1 further recorded control is attached. Inputs were supplied through cells using Value2, formula literals. These are controls from this environment, not a same-input comparison with another build.",
      "excel_build": "16.0.20527.20088",
      "observations": [
        {
          "call": "=NETWORKDAYS.INTL(2,5,TRUE)",
          "excel": {
            "bits": "0x4010000000000000",
            "display": "4",
            "kind": "number"
          },
          "input_route": "formula-literal",
          "inputs": [],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA"
        },
        {
          "call": "=NETWORKDAYS.INTL(2,5,FALSE)",
          "excel": {
            "bits": null,
            "display": "#NUM!",
            "kind": "error"
          },
          "input_route": "formula-literal",
          "inputs": [],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA"
        },
        {
          "call": "=NETWORKDAYS.INTL(B1,5,1)",
          "excel": {
            "bits": "0x4010000000000000",
            "display": "4",
            "kind": "number"
          },
          "input_route": "cell-value2",
          "inputs": [
            {
              "name": "B1",
              "value": {
                "bits": null,
                "display": "(empty cell)",
                "kind": "blank"
              }
            }
          ],
          "recorded_in": "Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA"
        }
      ],
      "platform": "Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA",
      "sources": [
        "https://github.com/DnaCalc/ExcelFunctionsHandbook/blob/3345a87/content/notes/FN-NETWORKDAYS.INTL-001.json",
        "https://github.com/DnaCalc/ExcelFunctionsHandbook/blob/3345a87/content/notes/FN-WORKDAY-001.json"
      ]
    },
    {
      "behaviour": "2,400 captured inputs are indexed for this environment. Capture dates: 2026-09-24 to 2026-09-25. This is a reading count, not a comparison with another build.",
      "excel_build": "16.0 build 20430",
      "platform": "Windows, 64-bit, AMD Ryzen 7 4800H with Radeon Graphics",
      "sources": [
        "https://github.com/DnaCalc/ExcelFunctionsHandbook/blob/5dc75391aa5125ccc5abdb095da85950980d6fd8/content/evidence/environments/FUNC.NETWORKDAYS.INTL.json"
      ]
    }
  ]
}