Can you upload an example spreadsheet? (Go Advanced > Manage Attachments)

From your description, assuming your table is in sheet2
In D2

=INDEX(sheet2!$C$2:$D$29, MATCH(B2, sheet2!$B$2:$B$29,0), MATCH(C2, sheet2!$C$1:$D$1,0))