Anchor the ranges:

=INDEX(sheet1!$B$3:$F$6,MATCH(C2,sheet1!$A$3:$A6,0),MATCH(D2,sheet1!$B$2:$F$2,0))