I see, ok,

Try this for 2013

=AVERAGEIFS(G2:G7,B2:B7,T2,G2:G7,">0")

For 2014

=AVERAGEIFS(G2:G7,B2:B7,U2,G2:G7,">0")

adjust ranges as need it.