Applying HLOOKUP in Excel
In this blog post we will see how we can apply HLOOKUP in excel.
For this we have prepared a dummy data as shown in the below image. This data is divided into two groups.
Blue Highlighted Data: This data contains Student Names and marks obtained by each student in the subject Maths, English and Science. In the last row we have calculated total marks obtained by each student.
Red Highlighted Data: This data contains similar headers as that of Blue Highlighted data. We will apply HLOOKUP in these cells.
Methods to find HLOOKUP Function on Excel Screen:
We can find HLOOKUP function using two different methods.
In this first method, HLOOKUP function can be found in “Lookup & Reference” which we can find in “Function Library” group under “Formulas” tab (Below screenshot for your reference).
Once we click on this “HLOOKUP”, one dialog box named as “Function Arguments” will appear on excel screen. There are total 04 arguments available for this HLOOKUP function. Once we enter all the 04 arguments we can get the desired output.
In this second method, we have to press “=” button and then type “HLOOKUP” word and after that we have to type open bracket “(“. With this, all the 04 arguments will pop up on the screen. Once we enter all the 04 arguments we can get the desired output.
Arguments of HLOOKUP Function:
There are total 04 argument for HLOOKUP function as listed below:
lookup Value: This is the value which we want to look. Our HLOOKUP output will be based on this value. This is mandatory argument.
table Array: This is the table in which we want to look the “Lookup Value”. This is mandatory argument.
row index num: In this argument we have to enter number of row from which we want the output. This is mandatory argument.
[range lookup]: This argument is optional. This argument again contains two sub-arguments TRUE or FALSE.
a. TRUE: It will find the “approximate” match of Lookup value.
b. FALSE: It will find the “exact” match of Lookup value.
Now we will see how we can apply HLOOKUP to find the marks obtained by selected student in subjects Maths, English and Science as well as to find the Total marks. We have applied Drop Down List in cell “J2” where we can select the Students Name by using this Drop Down List.
In this example, we have selected Student Name “C” with the help of Drop Down List and we will apply the HLOOKUP based on this value.
To Find Marks in Maths using HLOOKUP Function:
1. Select the cell “J3”.
a. Lookup Value: We want to look Student Name, hence in this argument we will select cell “J2” where we have already selected the Student Name “C”.
b. Table Array: Select all the cells from Blue Highlighted Data as we want to find the marks obtained by Student “C” from this table.
c. Row Index Number: Enter number “2” in this argument as we are calculating marks obtained in Maths and they are listed in 2nd row from the Lookup value in our table array.
d. Range Lookup: Enter FALSE in this argument as it will find the “exact” match of our Lookup value.
Below image is for your reference.
3. Once we enter all the 04 arguments, hit enter button on keyboard and we can see the HLOOKUP output.
To Find Marks in English using HLOOKUP Function:
1. Select the cell “J4”.
2. Apply the HLOOKUP function and enter all the 04 arguments as listed below:
a. Lookup Value: We want to look Student Name, hence in this argument we will select cell “J2” where we have already selected the Student Name “C”.
b. Table Array: Select all the cells from Blue Highlighted Data as we want to find the marks obtained by Student “C” from this table.
c. Row Index Number: Enter number “3” in this argument as we are calculating marks obtained in English and they are listed in 3rd row from the Lookup value in our table array.
d. Range Lookup: Enter FALSE in this argument as it will find the “exact” match of our Lookup value.
Below image is for your reference.
3. Once we enter all the 04 arguments, hit enter button on keyboard and we can see the HLOOKUP output.
To Find Marks in Science using HLOOKUP Function:
1. Select the cell “J5”.
2. Apply the HLOOKUP function and enter all the 04 arguments as listed below:
a. Lookup Value: We want to look Student Name, hence in this argument we will select cell “J2” where we have already selected the Student Name “C”.
b. Table Array: Select all the cells from Blue Highlighted Data as we want to find the marks obtained by Student “C” from this table.
c. Row Index Number: Enter number “4” in this argument as we are calculating marks obtained in Science and they are listed in 4th row from the Lookup value in our table array.
d. Range Lookup: Enter FALSE in this argument as it will find the “exact” match of our Lookup value.
Below image is for your reference.
3. Once we enter all the 04 arguments, hit enter button on keyboard and we can see the HLOOKUP output.
To Find Total Marks using HLOOKUP Function:
We can also calculate the Total marks obtained by Student “C” with the help of SUM function but this blog post is specifically for learning HLOOKUP, we will use HLOOKUP function to calculate total marks.
1. Select the cell “J6”.
2. Apply the HLOOKUP function and enter all the 04 arguments as listed below:
a. Lookup Value: We want to look Student Name, hence in this argument we will select cell “J2” where we have already selected the Student Name “C”.
b. Table Array: Select all the cells from Blue Highlighted Data as we want to find the marks obtained by Student “C” from this table.
c. Row Index Number: Enter number “5” in this argument as we are calculating total marks and they are listed in 5th row from the Lookup value in our table array.
d. Range Lookup: Enter FALSE in this argument as it will find the “exact” match of our Lookup value.
Below image is for your reference.
3. Once we enter all the 04 arguments, hit enter button on keyboard and we can see the HLOOKUP output.
With the above listed steps, you can easily apply HLOOKUP function in excel.
Comments
Post a Comment