VLOOKUP turned on its side
=HLOOKUP(search_key, range, index, [is_sorted])
HLOOKUP searches the first row of a range and returns a value from further down the same column. Use it when your headings run left to right, as in monthly reports where each month is a column.
index counts rows, starting at 1 for the header row of your range. Just like VLOOKUP, is_sorted defaults to TRUE, so add FALSE for an exact match.
XLOOKUP handles horizontal data too (give it a row as the lookup range) and avoids the row-number counting.