Hi all!
I am trying to reflect the actual number of working days between two dates. The NETWORKDAYS function includes the start and end dates in the formula, which adds an extra day, regardless of whether or not any of these dates are working/non-working days. For instance – this formula returns 1 day for the number of days between two exact working dates. (I think it should be 0). To avoid a drawn-out philosophical debate 😊, for my purposes, I want to remove this additional day by doing the following:
Adjust the number of days returned by the NETWORKDAYS function by subtracting a day from the formula (include “-1” at the end of the formula). However, if the second date occurs before the first, this number would be negative so including “-1” would show 2 extra days between these dates. In the example below, it used the formula: =(NETWORKDAYS([Forecast 12-Feb-24 - End]@row, [Planned End]@row)) - 1 in the last column. The first row inaccurately added 2 extra days while the the 2nd row is correcly adjusted. Any suggestions to adjust the formula to first determine if this number is negative, it would include “+1” at the end of the NETWORKDAYS entry?
I tried the following unsuccessfully: =IF([Planned End]@row < [Forecast 12-Feb-24 - End]@row), (NETWORKDAYS([Forecast 12-Feb-24 - End]@row, [Planned End]@row) +1), (NETWORKDAYS([Forecast 12-Feb-24 - End]@row, [Planned End]@row) -1)