=SUMIFS($C$2:$C$5,$A$2:$A$5,">="&$E$2,$A$2:$A$5,"<"&EDATE($E$2,1),$B$2:$B$5,$F$2)
