How about

Formula: copy to clipboard
=IFERROR(AVERAGEIFS($B$2:$B$19,$A$2:$A$19,">="&DATE(2012,ROW(A1),1),$A$2:$A$19,"<"&DATE(2012,ROW(A2),1)),"")