I've been attempting to use networkdays.intl to calculate hours for a weekend/weekday and public holiday.
The calculation is correct except when the time starts in 1 day and ends in another day for a shift (IE: 9pm until 2am)
Formula used for weekday
=NETWORKDAYS.INTL(B2,D2,"0000011",$T$2:$T$7)*G2
Formula used for weekend
=NETWORKDAYS.INTL(B2,D2,"1111100",$T$2:$T$7)*G2
Formula used for public holiday (basic)
=SUM(I2-Q2-R2)
Example sheet with highlighted cells causing the miscalculation.
Appreciate any suggestions.
