logo
search
Function Problems

How to Stop NETWORKDAYS.INTL When a Date Is Entered in Another Cell

Emma BrownEmma Brown Oct 10, 2026 869 views

Question details

The user wants to calculate ongoing working days dynamically, stopping the NETWORKDAYS.INTL calculation when a specific completion date is entered in a designated cell.

How to Stop NETWORKDAYS.INTL When a Date Is Entered in Another Cell
Product
Excel
Device & OS
not provided
Scenario
Tracking project durations or open ticket times where the working days count continuously up to yesterday, unless a task is marked complete with a final date.
Observed behavior
The standard NETWORKDAYS.INTL formula continues to count using a fixed end-date reference. The user needs it to toggle between a specific completion date and yesterday's date depending on whether the completion cell is blank.
Before you start

Ensure that your designated start date and completion date cells are properly formatted as 'Date' to prevent calculation errors like #VALUE!.

Solution 1Recommended

Use a Nested IF Formula with NETWORKDAYS.INTL

Combine the IF function with NETWORKDAYS.INTL to dynamically change the end-date parameter based on whether a cell is blank.

By nesting NETWORKDAYS.INTL inside an IF statement, you can instruct your spreadsheet to evaluate whether a completion date exists. If a date is present, it calculates the working days between the start date and the completion date. If the cell is empty, it uses the TODAY() function to calculate the working days up to yesterday.

1
Select the destination cell

Click on the cell where you want the calculated total working days to be displayed.

2
Enter the conditional formula

Type the formula =IF(G48="","",IF(D48<>"",NETWORKDAYS.INTL(G48,D48),NETWORKDAYS.INTL(G48,TODAY()-1))) into the formula bar. Replace 'G48' with the cell reference for your start date, and 'D48' with the cell reference for your completion date.

3
Apply and fill

Press Enter to execute the formula. If you are tracking multiple tasks, click and drag the fill handle at the bottom-right corner of the cell down to apply the logic to other rows.

Use a Nested IF Formula with NETWORKDAYS.INTL
Formula Breakdown: The condition IF(G48="","" ensures the result remains completely blank if there is no start date yet. IF(D48<>"" tells Excel to check if the completion date cell is not empty.
Calculate Dates Easily with WPS Spreadsheet

Manage Complex Date Formulas in WPS Spreadsheet

WPS Spreadsheet fully supports advanced nested formulas, including IF, NETWORKDAYS.INTL, and TODAY(), allowing you to effortlessly build dynamic date trackers.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your date records.
  2. 2. Select the output cell: Click the specific cell where you want to display the dynamic working days count.
  3. 3. Input the nested formula: Enter the formula combining IF and NETWORKDAYS.INTL tailored to your start and end date cells.
  4. 4. Calculate and drag: Press Enter to instantly calculate the duration, then drag the fill handle to copy the formula to the rest of your dataset.
Fully compatible with Microsoft Excel formulas, date functions, and file formats (.xlsx).Built-in formula error checking helps quickly troubleshoot complex nested IF statements.Lightweight, fast, and free to use for everyday data analysis and project tracking.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my NETWORKDAYS.INTL formula return a #VALUE! error?

This typically occurs if the referenced start or end cells contain text instead of recognized dates. Check your cells and verify they are formatted correctly as Dates.

Can I exclude custom holidays using this dynamic formula?

Yes. NETWORKDAYS.INTL allows you to reference a range of custom holiday dates. Add this range as the fourth argument in both instances of the function, for example: NETWORKDAYS.INTL(G48, D48, 1, Holidays!A2:A10).

How do I make the formula calculate up to today instead of yesterday?

To include today in the ongoing count, simply replace the 'TODAY()-1' segment in the final part of your formula with just 'TODAY()'.

What does the <> operator mean in this Excel formula?

The <> operator means 'not equal to'. In the expression IF(D48<>""), the formula is evaluating 'if cell D48 is not equal to blank' (meaning it contains data).