Try this:
D3: =INDEX(C8:G11;MATCH(B3;B8:B11;0);MATCH(C3;C6:G6;0))
D4: {=INDEX(D15:G27;MATCH(1;(B3=B15:B27)*(B4=C15:C27);0);MATCH(C4;D13:G13;0))}
I moved the name to B3
//Ola