I am seeking a formula that can calculate the number of weekdays between two specified dates, or if the end date is not provided, calculate the number of weekdays from the start date to the current date.
The formula I have tried so far is:
=IF(ISBLANK(C2),"",NETWORKDAYS(C2,TODAY()))
this works for 2 out of the 3 scenarios.
I have attached an image of the 3 examples.
First line is good. I don't need to know the days if there is a finish date.
Second line is good as it counts from the start date to today excluding weekends.
However, the third line is wrong, what I require is to stop counting to today and just count between start and finish dates, this needs to return 1 not 10.
=IF(ISBLANK(C5),"",NETWORKDAYS.INTL(C5,D5,1))
works for this line, but not for the other two.