Enter this formula in AZ7 with key combination Ctrl + Shift + Enter
=IFERROR(INDEX($C$2:$Y$66,MATCH(1,($A$2:$A$66=AZ3)*($B$2:$B$66=AZ4),0),MATCH(AZ5,$C$1:$Y$1,0)+1),"Record Not Found")
Enter this formula in AZ7 with key combination Ctrl + Shift + Enter
=IFERROR(INDEX($C$2:$Y$66,MATCH(1,($A$2:$A$66=AZ3)*($B$2:$B$66=AZ4),0),MATCH(AZ5,$C$1:$Y$1,0)+1),"Record Not Found")