For month of May, try

=SUMPRODUCT((MONTH($A$2:$A$5)=5)*($E$2:$E$5))