A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi Claudia Buckley,
When both the Start and End cells are blank, Excel does not treat them as “no dates.” Instead, blank values are coerced to 0 (a “zero date” in Excel’s 1900 date system, i.e. late December 1899). As a result, NETWORKDAYS.INTL ends up evaluating a single date (start = end) and counts it inclusively.
That’s why the result depends on the weekend pattern you choose:
- With weekend code 11 (Sunday only), Saturday is considered a workday. The coerced date falls on a Saturday, so Excel counts it as 1 workday.
- With weekend patterns that treat Saturday as a weekend day, that same coerced date is excluded, and the result is 0.
So this behavior is a combination of Excel’s legacy date coercion (blank → 0) and the selected weekend pattern, rather than a bug in NETWORKDAYS.INTL.
If you want blanks to reliably return 0, handle them explicitly:
=IF(OR([@Start2]="",[@End2]=""),
0,
NETWORKDAYS.INTL([@Start2],[@End2],11,$N$3:$N$9)
)
This enforces the intended logic of “no dates = no workdays” instead of letting NETWORKDAYS.INTL interpret blank inputs.
Please let me know if this proves useful to you, or if you would like further assistance.
I'm looking forward to your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment”.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.