Other Lookup & Reference Functions

Excel > Excel 2003 Intermediate > More Advanced Functions


Hlookup works in the same way as Vlookup except that it searches for a value in the top row of a table and returns a value from a specified row.


As with Vlookup, if range lookup is omitted or set to true the top row of values must be sorted in ascending order. Set range lookup to false for an exact match.

Let's run a Hlookup on the stock sheet below in cell I6. When a code is entered into cell I3 the stock level will automatically appear in cell I6 as a result of the Hlookup function.

Download the Stock Sheet hlookup workbook to follow along.

Hlookup example

  1. Select cell I6
  2. Click the Insert Function button on the Formula Bar. Type Hlookup in the Search for a Function field and press Enter. Select Hlookup from the list and click Ok.

Once you get used to writing functions you may find it quicker and easier to type them directly into the cell

Find Hlookup function
  1. The Arguments dialogue box appears asking for the information the Hlookup needs.
    1. The Lookup value is I3 as this is the cell that holds the value to search for.
    2. The Table array is$A$2:$G$7 as this cell range holds the data list that Hlookup will search in for the value. Hlookup searches in the top row for the value, which in this case is row 2. This range is made absolute.
    3. The Row index num is 5 as the Stock Level row is the 5th row down.
    4. Range lookup is false as we want an exact match.

Hlookup function arguments

  1. Click Ok
  2. Type a value in cell I3 to see the Hlookup update the cell containing its stock value

Examples of Hlookup being used on the stock sheet hlookup workbook.









Product E







Follow us on

Facebook  Twitter  You Tube