Hi,
I don't know why the Median function is in there but try this shorter formula
The formula uses NETWORKDAYS() to determine the absolute number of days between the two dates and multiplies this by 8 being the number of hours between 9:00 and 17:00
It then uses
to work out the number of hours on the first day between the start time and 9:00 and deducts this number of hours if this calc is positive.
It then uses the similar
to deduct the number of hours between the the end time and 17:00 and deducts this number.
Bookmarks