Use an INdex/Match combination

e.g. =Index(tablearray,match(vert_input,Row_header_range,0),match(horiz_input,column_header _range,0))

where vert_input and horiz_input are the respective values to lookup in the row and column