Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
All articles LOOKUP Here is an Overview of Excel’s Horizontal Lookup Function

Here is an Overview of Excel’s Horizontal Lookup Function

Excel allows a user to get a value from a table using the horizontal lookup. This is possible using the HLOOKUP function, which allows us to get a value from a table organized into rows. This step by step tutorial will assist all levels of Excel users in doing a horizontal lookup.

Figure 1. The result of the HLOOKUP function

Syntax of the HLOOKUP Formula

The generic formula for the HLOOKUP function is:

=HLOOKUP(lookup_value, table_array, row_index_num, range_lookup)

The parameters of the HLOOKUP function are:

  • lookup_value – a value that we want to find in a table_array
  • table_array – a range in which we want to lookup
  • row_index_num – a row number in table_array from which we would like to get a value
  • range_lookup – default value 0. This means that we want to find an exact match for a lookup value.

Setting up Our Data for the HLOOKUP Function

Figure 2. Data that we will use in the HLOOKUP example

In this example, our data is organized horizontally, so we will use the HLOOKUP function. In the range B2:G3, we have a lookup table, while in the cell C7 we want to get a value. Tables consist of the rows “Product ID” and “Product Description”.

Get the Product Description Using the HLOOKUP Function

Our goal is to obtain data from the “Product Description” row in the second table and populate it into the cell C7.

The formula looks like:

=HLOOKUP(B7, $B$2:$G$3, 2, 0)

In our example, the lookup_value is the B3 cell in “Product ID” column. The parameter table_array is $B$2:$G$3 because we want to find value from the range B2:G3. Row_index_num has value 2, as we want to pull value from the second row of the range. Finally, range_lookup has value 0, because we want to find an exact match of “Product ID” values.

To apply the HLOOKUP function, we need to follow these steps:

  • Select cell C7 and click on it
  • Insert the formula: =HLOOKUP(B7,$B$2:$G$3,2,0)
  • Press enter

Figure 3. Get the product description using the HLOOKUP function

As a result, we will get Product C in the cell C7. As you can see, the value of “Product Description” in E3 in the 1st table is Product C. The function pulls this value and returns it to the cell C7 as a result.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Solution examples
need to learn pivot table v look up and h look up
Solved by B. B. in 20 mins
In cell E2, enter a formula using the HLOOKUP function to determine a staff memberâ??s base salary (which is based on the number of years of service). Use a structured reference to look up the value in the Service Years column. Retrieve the value in the 2nd row of the table in the range Q15:U16. Since base salary is tiered based on the number of years of service, find an approximate match. Fill the formula into the range E3:E31, if necessary.
Solved by G. W. in 53 mins
Use the HLOOKUP function in cell H11 to calculate freight cost based on the shipping class and state to which the shipment is going. Freight Cost can be referenced on the "Freight Cost" lookup table (range E5:N8). Be sure to use appropriate relative and absolute cell references. Hint: You will need to use a function within the HLOOKUP function to determine the appropriate row.
Solved by X. C. in 12 mins
Use the HLOOKUP function in cell H11 to calculate freight cost based on the shipping class and state to which the shipment is going. Freight Cost can be referenced on the "Freight Cost" lookup table (range E5:N8). Be sure to use appropriate relative and absolute cell references. Hint: You will need to use a function within the HLOOKUP function to determine the appropriate row.
Solved by M. B. in 40 mins
Write an Excel formula to determine the packaging and loading costs for this item based on its box size and weight. This cost should also include the box price but do not include any surcharges for fragile or high value items. Copy the formula down the column to calculate this value for each corresponding item.
Solved by K. Y. in 31 mins

Leave a Comment

avatar

Subscribe to Excelchat.co

Get updates on helpful Excel topics

Subscribe to Excelchat.co
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc