Formula: copy to clipboard
=sumproduct(($a$3:$a$22=$e3)*(year($c$3:$c$22)=year(f$2))*(month($c$3:$c$22)=month(f$2))*$b$3:$b$22)