How to hlookup

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: HLOOKUP is a function in spreadsheet software like Microsoft Excel and Google Sheets that searches for a value in the top row of a table or array and returns the value in the same column from a specified row. It's the horizontal counterpart to the VLOOKUP function, which searches vertically.

Key Facts

What is HLOOKUP?

The HLOOKUP function, short for Horizontal Lookup, is a powerful tool found in spreadsheet applications like Microsoft Excel and Google Sheets. It is designed to search for a specific value within the first row of a table or range of cells and then return a corresponding value from a row that you specify, located in the same column where the match was found. Think of it as searching across a spreadsheet horizontally, rather than down a column as VLOOKUP does.

How Does HLOOKUP Work?

The HLOOKUP function has the following syntax:

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Understanding the Arguments:

When to Use HLOOKUP

HLOOKUP is most useful when your data is organized horizontally, meaning your headers or identifiers are in the first row, and the data you want to retrieve is in subsequent rows. For example, imagine a table showing monthly sales figures:

MonthJanuaryFebruaryMarch
Sales$10,000$12,000$15,000
Profit$2,000$2,500$3,000

If you wanted to find the 'Sales' figure for 'February', you could use HLOOKUP. Your lookup_value would be 'February', the table_array would be the entire table, the row_index_num would be 2 (since 'Sales' is in the second row), and the range_lookup would be FALSE for an exact match.

HLOOKUP vs. VLOOKUP

The primary difference between HLOOKUP and VLOOKUP lies in their search direction. VLOOKUP searches vertically down the first column of a table, while HLOOKUP searches horizontally across the first row. Most data is organized in columns with headers at the top, making VLOOKUP more frequently used. However, when your data is structured with row headers and you need to look up values across columns, HLOOKUP becomes the appropriate choice.

Common Errors and Tips

By understanding its arguments and application, HLOOKUP can be a valuable function for retrieving specific data points from horizontally arranged datasets.

Sources

  1. Lookup function - WikipediaCC-BY-SA-4.0
  2. HLOOKUP function - Microsoft Supportfair-use
  3. HLOOKUP Function in Excel - ExcelDemyfair-use

Missing an answer?

Suggest a question and we'll generate an answer for it.