I am trying to calculate the elapsed time between a specific date and time and another date and time, excluding weekends and non-office hours. I have done everything already and all seems to work correctly but for one formula. Here you can see the formula that gives me problems, while here you can see the same formula without the ArrayFormula encapsulation. The result should be 08:00:00 like in screenshot 2, i can't understand what's going on with the first screenshot.
I need to have the formulas applied when the value are written in the columns from D to G, not before, that's the reason why i am using ArrayFormula. If there is another way to achieve the same result in another way let me know.
Thanks.
Edit: i have found that the issue is that the formula in column K is referencing a fixed cell in column E in the last bracket, E2:E
is always a fixed cell in column E (see this screenshot).
Here you can download a copy, thanks in advance!