Using the HLOOKUP Function
The HLOOKUP function is very similar to the VLOOKUP function. The only significant difference is that while the VLOOKUP function looks for a value in the leftmost column of a table and returns a value on the same row as that value, the HLOOKUP function looks for a value in the top row of a table and returns a value in the same column as that value. To use the HLOOKUP function, you need to know:

Lookup value. The value you will use to identify individual records in your table. The Lookup Value must be in the top row of your table.

Table array. The table that contains the data you will use HLOOKUP to retrieve. This table can be in another worksheet or even another workbook from the one in which you enter the HLOOKUP function.

Row index num. The Lookup Value is always in the top row of the Table Array (row #1, regardless of where in the worksheet the table is located). The next row down is row #2, then row #3, etc. The Row index num is simply the number of the row that contains the value you wish to retrieve.

Range lookup. Enter False if the Lookup Value must match exactly. If you enter True or leave blank, Excel will assume the table is sorted in ascending order and will select the best match. Note that if the table is not sorted in ascending order, Excel likely won't correctly find the best match.
To use the HLOOKUP function:
 On the FORMULAS tab, in the Function Library group, click the Insert Function command:
 In the Insert Function dialog box:
 Search on "HLOOKUP" or, in the Or select a category dropdown box, select Lookup & Reference.
 Under Select a function, select HLOOKUP.
 Click OK.
 In the Function Arguments dialog box:
 Enter the Lookup_value or the cell in which it is located.
 Enter the Table_array.
 Enter the Row_index_num.
 Enter the Range_lookup. If you leave this blank, Excel will treat this as if you entered True.
 Click OK.