XLOOKUP
XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
lookup_array is the column or row you search. return_array is the column or row you want back. They do not have to sit inside one rectangle, and the return column can be to the left of the search column. match_mode 0, the default, is an exact match. if_not_found is used only when there is no match.