×

Excel HLOOKUP() Function

Excel HLOOKUP() Function

The HLOOKUP() function in excel is used to search a value in the topmost row of a table and then return a corresponding value in the same column for the specified row. This function is similar to VLOOKUP. In a VLOOKUP, we look at columns, whereas in HLOOKUP, we look at rows.

Syntax

HLOOKUP(LookupValue, Table_Array, Row_Index_Num, [Range_Lookup])

Parameter

LookupValue(required)- This parameter represents the value which needs to be looked for in a particular table.

Table_Array (required)- This parameter refers to the table in which we need to check for this value to be present and from which we want to retrieve data. By pressing the F2 key when you have selected your table, you fix the range. So when you copy the formula from one cell to another, the range does not update automatically.

Index_Num(required)- If the value is present in the table, then which column consists of the value we want the function to return

Range_Lookup(optional)- This parameter takes a Boolean value - TRUE for approximate match and FALSE (which is the default value) for an exact match of the value we are searching for in a table.

Category

Lookup & Reference

Return

The HLOOKUP function looks for a value in the first row of a table and returns a value from the same column in that table.

Example 1

Objective: Below in the first table, we have a sales commission for different cars. Use HLOOKUP() to get the amount each employee will get based on the car they sold.

Car Type Mercedes BMW Audi VW Ferrari
Commission $500 $450 $550 $200 $1,000
Sold By Maker Commission Formula
Yusuf Ferrari £1,000  =HLOOKUP(B29,$B$25:$F$26,2,FALSE)
Alen BMW £450  =HLOOKUP(B30,$B$25:$F$26,2,FALSE)
Terry Audi £550  =HLOOKUP(B31,$B$25:$F$26,2,FALSE)
David VW £200  =HLOOKUP(B32,$B$25:$F$26,2,FALSE)
Kim Mercedes £500  =HLOOKUP(B33,$B$25:$F$26,2,FALSE)
Bin Ferrari £1,000  =HLOOKUP(B34,$B$25:$F$26,2,FALSE)
Arnav BMW £450  =HLOOKUP(B35,$B$25:$F$26,2,FALSE)
Sohaib Mercedes £500  =HLOOKUP(B36,$B$25:$F$26,2,FALSE)

Example 2

Objective: How much % target achieved by 'Value 4’ in Eoo4

Name Value 1 Value 2 Value 3 Value 4
E001 99% 53% 74% 79%
E002 52% 97% 46% 88%
E003 94% 128% 93% 31%
E004 59% 141% 121% 98%
E005 44% 70% 83% 64%
E006 86% 89% 15% 91%
Lookup Value Product 3
% Target Achieved 121% =HLOOKUP(C98,B88:F94,5,0)

Related Topics

Cells and Ranges in Excel

Cells and Ranges Each cell is identified by its cell address, which is a combination of the column and row on which that cell is situated. A group of cells together are called ‘Range’. When...

5 minutes read.

AutoFill in Excel

AutoFill in Excel Excel is known for its credibility to operate repeated and similar tasks automatically. For this purpose, it facilitates an inbuilt feature known as Autofill that recognizes the series of...

3 minutes read.

Excel SMALL() Function

The SMALL() function in excel returns the k-th smallest value in a data set. Syntax SMALL(Array, kth small number from the list) Parameter Array (required)- This parameter represents the list of numbers from which nth smallest...

1 minute read.

Histogram in Excel

What is Histogram in Excel? “ A histogram is a graphical tool familiar for summarizing discrete or continuous data, where the data are measured on an interval scale.”  Karl Pearson described this...

5 minutes read.

Excel ROUNDUP() Function

Excel ROUNDUP() Function The ROUNDUP() function in excel returns a number rounded up to the nearest possible value and away from zero. Syntax ROUNDUP(Number, num_digits) Parameter Number(required)- This parameter represents the number which you want to...

1 minute read.

Excel TEXT() Function

The TEXT () function in excel converts a supplied numerical value into the text of a specific format. Syntax TEXT(Value, Format_text) Parameter Value (required)- This parameter represents the value for which we need to...

1 minute read.

Excel VALUE() Function

The VALUE() function in excel converts the specific text representing a number (i.e., a number, date, or time format) into a numerical value. Syntax VALUE(Text) Parameter Text(required)- This parameter represents the string that you want...

1 minute read.

Excel Unique Values

The Unique function in Excel filters the list of unique values from the given data like range or array. The data presented is either number, text, date, time etc. This...

3 minutes read.

Calculating Age in Excel

Microsoft Excel provides separate functions for various mathematical operations. Nowadays, Microsoft Excel is widely used by large and various organizations. Using formulas one can calculate the statistical functions quickly and...

2 minutes read.

Blank cells in Excel

Microsoft Excel is spreadsheet software designed by Microsoft in 1987. It is used to perform arithmetic calculations in various fields like statistical, engineering and financial. Many times, we export data...

4 minutes read.

Excel FIND() Function

The FIND() function in excel finds one text value within another. It is a case-sensitive function. Syntax FIND (find_text, within_text, [start_num]) Parameter find_text (required)- This parameter represents the text to find. within_text (required)- This parameter represents...

1 minute read.

Excel INT() Function

Excel INT() Function The INT() function in excel is used to round a number down to the nearest integer. It removes decimal points from any number value & return rounded down number value in...

1 minute read.

Thermometer Chart in the Microsoft Excel

It was known that the thermometer chart is basically based on a single data point and that in turn could be used to show the achievement percentage. It primarily depends...

7 minutes read.

Dependent Combo box in Excel VBA

Adding the particular dependent box in the created User form with the help of the Microsoft Excel VBA is considered essential and crucial in Microsoft Excel. Here, in this tutorial, we...

7 minutes read.

Text to Columns

Text to Columns This Excel feature is used to split the cell content name of one cell into multiple columns based on a delimiter, such as a space or a special character or based...

2 minutes read.

SumIF Formula in Microsoft Excel

SUMIF Formula in Microsoft Excel is considered the primary and vital formula individuals can use to remove their workload. In this tutorial, we will discuss and learn about the SUMIF Formula...

7 minutes read.

Charts in Excel

Charts Definition of Charts A chart is used to show numbers or data in a spreadsheet visually. It is the visual representation of your data. It is a tool that can be used in...

3 minutes read.

Nearest Multiple in Excel

In Excel, the values in Multiplication can be round up, down and to nearest Multiplication number using Excel default function. This makes the calculation to be performed in an easier...

3 minutes read.

What is a name box in Excel?

The name box in Microsoft Excel specifies a name for a single cell or a table. The name box is present in the top left corner, left to the formula...

4 minutes read.

Excel Ribbon Toolbar

Excel Ribbon/Toolbar How does a toolbar look like? The top section of an excel file is called a Ribbon or a toolbar. It has various commands which can be useful for us in our daily work....

6 minutes read.