I am trying to determine how much of the period
between two instants in time falls on a workday
(as determined by Excel's NETWORKDAYS
function).
For example, the "weekday time" between Tuesday 11 PM
and the following Wednesday 2 AM is 3 hours.
Ditto for Friday 11 PM through Monday 2 AM.
And so if the start time is Friday 8 PM
and the end time is any time on Saturday or Sunday,
the answer should be 4 hours —
the portion of the interval that falls on the weekend
(or holiday) should be ignored
(or subtracted from the end-to-end duration).
The bottom portion of this question illustrates more examples.
I have found many things here but they deal with SQL, code, etc, and not a ton in Excel. I did find this, but it did not directly help me.
I am using this for the formula:
=NETWORKDAYS(F2,G2,Q$2:Q$7)-1-MOD(F2,1)+MOD(G2,1)
and below is what is going on.
What am I missing here?