need to correct the formula
=IF(COUNTIF($F9:K9,">0")<$E9,IF(AND(IF(AND(MONTH($B9)=MONTH(K$3),YEAR(K$3)=YEAR($B9)),$A9/$E9,IF(SUM($F9:K9)=$A9," ",K9))<>" ",IF(AND(MONTH($B9)=MONTH(K$3),YEAR(K$3)=YEAR($B9)),$A9/$E9,IF(SUM($F9:K9)=$A9," ",K9))<>0),IF(K$2<>"",K$2*$A9,0),IF(AND(MONTH($B9)=MONTH(K$3),YEAR(K$3)=YEAR($B9)),$A9/$E9,IF(SUM($F9:K9)=$A9,"",B9,K9))),"")
Solved by C. J. in 30 mins