Mike H..
Active Member
Hi,Is no one able to give an opinion???
No help out there??
Ian M
This formula is now horrendous and I would normally give up and resort to a VBA solution but let's see if this solves the issues. The new formula is in Col H and I've re-directed the formula in Col G to reference this new column.
=IF((NETWORKDAYS(A2,B2)-1)*("17:30"-"08:00")+MEDIAN(MOD(B2,1),"08:00","17:30")-MEDIAN(MOD(A2,1),"08:00","17:30")>0,(NETWORKDAYS(A2,B2)-1)*("17:30"-"08:00")+MEDIAN(MOD(B2,1),"08:00","17:30")-MEDIAN(MOD(A2,1),"08:00","17:30"),(NETWORKDAYS(IF(WEEKDAY(A2,2)>=6,INT(A2)+(7-WEEKDAY(A2,2)+1)+TIME(0,0,1),A2),B2)-1)*("17:30"-"08:00")+MEDIAN(MOD(B2,1),"08:00","17:30")-MEDIAN(IF(WEEKDAY(A2,2)<6,MOD(A2,1),TIME(0,0,1)),"08:00","17:30"))