How to Use Excel s HLOOKUP Function
How to Use Excel's HLOOKUP Function GA S REGULAR Menu Lifewire Tech for Humans Newsletter! Search Close GO Software & Apps > MS Office
Here's what each argument does in the HLOOKUP function: lookup_value (required): The column to be searched. The HLOOKUP function searches the first row to find this value. This argument can be a cell reference or a column label.table_array (required): The table to be searched for the specified data. This can be a reference to a range or a range name.row_index_num (required): The number of the row from which Excel will return data.range_lookup (optional): This argument tells the HLOOKUP function what to do if it doesn't find an exact match. Argument values are TRUE and FALSE.If the value is TRUE and the table data is sorted from smallest to largest, HLOOKUP returns the largest value that is smaller than the lookup_value argument.If the value if FALSE, the HLOOKUP function returns an error if an exact match isn't found.
How to Use Excel's HLOOKUP Function
Quickly search and retrieve data by row
By Coletta Teske Whitehead Coletta Teske Whitehead Writer Central Washington University Coletta Teske is a Lifewire writer focusing on consumer electronics. She has 30 years' experience writing for Adobe, Boeing, Microsoft, and many others. lifewire's editorial guidelines Published on April 6, 2020 Tweet Share Email Tweet Share EmailIn This Article
Expand Jump to a Section How the Function Works Syntax Step-by-Step: Use HLOOKUP Use Wildcards When the data in your Excel worksheet covers hundreds of columns and dozens of rows, use the HLOOKUP function to find a specified value in a specified column. Instructions in this article apply to Excel for Microsoft 365, Excel 2019, Excel 2016, and Excel 2013.How the HLOOKUP Function Works
The HLOOKUP function is a type of search function. This function searches for specific information in a worksheet by first finding the specified value in the column labels and searching that column for the corresponding value. The HLOOKUP function is best suited for worksheets with large amounts of data. This example uses a simple worksheet to show how the HLOOKUP function works. In this worksheet, a retailer tracks sales by product and by the channel where each product is sold. Instead of searching the worksheet to find the online sales for cameras, for example, the HLOOKUP function can perform the task.Syntax of the HLOOKUP Function
The syntax of the HLOOKUP function is: HLOOKUP(lookup_value,table_array,row_index_num,range_lookup)Here's what each argument does in the HLOOKUP function: lookup_value (required): The column to be searched. The HLOOKUP function searches the first row to find this value. This argument can be a cell reference or a column label.table_array (required): The table to be searched for the specified data. This can be a reference to a range or a range name.row_index_num (required): The number of the row from which Excel will return data.range_lookup (optional): This argument tells the HLOOKUP function what to do if it doesn't find an exact match. Argument values are TRUE and FALSE.If the value is TRUE and the table data is sorted from smallest to largest, HLOOKUP returns the largest value that is smaller than the lookup_value argument.If the value if FALSE, the HLOOKUP function returns an error if an exact match isn't found.