You can put this formula on cell M4 (and copied down) :
As for why it is returning 30483 if adjacent cell in column L is blank, the explanation is :
- NETWORKDAYS(start_date,end_date,holidays) function return number of working days (5 days per week, Monday - Friday) between start date and end date, excluding holidays
- If adjacent cell in column L is blank, this means start_date = 0
- The value of end_date ($P$1) is 42681, you can examine this by change number format of cell $P$1 to General
- The number holidays to be subtracted between start_date (0) and end_date (=TODAY()) is 3 days, defined on Data!$P$2:$P$11, that is : 04/07/2016, 05/09/2016, and 10/10/2016
- So the days between end_date (426812) and start_date (0), excluding holidays is = 42681 -0 - 3 = 42678
- Approx. of network days (5 days a week --> 5 / 7) = 5/7 * 42678 = 30484 --> (this is very close to 30483, it must be caused by rough calculation by very simple multiplying with 5/7)
Bookmarks