S4 and S5 have different formulas which don't think is intentional

Capture.JPG

Try this in S4 and copy down


=IF(D4="M",IF(SUM('5'!$O$32:$O$42)>=5,"Yes",IF('5'!$O$32>=1,"Yes","No")),"No")