With respect, I feel that the reason this isn't working is the attempt to roll everything into one formula.
Please see if the formulas used in the range E23:L34 are producing the correct results.
For Start date (after the first one): =L23
For Fridays without considering breaks:
Formula:
=IF(WEEKDAY(E23,1)=6,WORKDAY(E23,CEILING(($B$2/24+MOD(E23,1)-$G$2)/($G$7-$G$2),1)-1,Holidays!$B$4:$B$35)+MOD(E23,1)+$B$2/24-CEILING(MOD(E23,1)+$B$2/24-$G$2,$G$7-$G$2)+$G$7-$G$2,"")
For Friday breaks (preliminary):
Formula:
=IF(F23="","",IF(INT(E23)=INT(F23),SUMPRODUCT((H$3>=MOD(E23,1))*(H$3<=MOD(F23,1))*I$3),SUMPRODUCT((INT(E23)+$H$3>=E23)*$I$3+(INT(F23)+$H$3<=F23)*$I$3)))
For Mon - Thu without considering breaks:
Formula:
=IF(F23="",WORKDAY(E23,CEILING(($B$2/24+MOD(E23,1)-$F$2)/($F$7-$F$2),1)-1,Holidays!$B$4:$B$35)+MOD(E23,1)+$B$2/24-CEILING(MOD(E23,1)+$B$2/24-$F$2,$F$7-$F$2)+$F$7-$F$2,"")
For Mon - Thu breaks (preliminary):
Formula:
=IF(G23="",IF(INT(E23)=INT(H23),SUMPRODUCT((H$3:H$4>=MOD(E23,1))*(H$3:H$4<=MOD(H23,1))*I$3:I$4),SUMPRODUCT((INT(E23)+$H$3:$H$4>=E23)*$I$3:$I$4+(INT(H23)+$H$3:$H$4<=H23)*$I$3:$I$4)),"")
For Preliminary Due Date:
Formula:
=IF(H23<>"",IF(SUM(MOD(H23,1),I23/1440)<=F$7,SUM(H23,I23/1440)),IF(SUM(MOD(F23,1),G23/1440)<=G$7,SUM(F23,G23/1440)))
For Final Breaks:
Formula:
=IF(H23<>"",IF(INT(H23)=INT(J23),SUMPRODUCT((H$3:H$4>=MOD(H23,1))*(H$3:H$4<=MOD(J23,1))*I$3:I$4),SUMPRODUCT((INT(H23)+$H$3:$H$4>=H23)*$I$3:$I$4+(INT(J23)+$H$3:$H$4<=J23)*$I$3:$I$4)),IF(INT(F23)=INT(J23),SUMPRODUCT((H$3>=MOD(F23,1))*(H$3<=MOD(J23,1))*I$3),SUMPRODUCT((INT(F23)+$H$3>=F23)*$I$3+(INT(J23)+$H$3<=J23)*$I$3)))
For Final Due Date: =SUM(J23,K23/1440)
Let us know if you have any questions.
Bookmarks