Welcome to Chandoo.org forums and thanks for posting your question.
I am not sure why you are using such long and complex formula. You can use this instead.
=IF(YEAR(H$6)=YEAR(D$6),INDEX($D$7:$D$9,MATCH(G7,$C$7:$C$9,0)),"")
or even simpler,
=IF(YEAR(H$6)=YEAR(D$6),VLOOKUP(G7,$C$7:$D$9,2,false),"")