 HubPages»
 Technology»
 Computers & Software
Tutorial: How to Use VLOOKUP and HLOOKUP in Microsoft Excel Today!
Lookup functions, HLOOKUP and VLOOKUP, gather data or show information obtained from other worksheets. Using these functions is an excellent way to choose values in a large set of data. They work at displaying information by scanning columns or rows to find the particular data you are searching for in order to solve data issues.
Find the data you are looking for in a fast and easy manner by simply applying one of these formulas to your spreadsheet. A vertical lookup table displays data from columns; a horizontal lookup table displays data presented in rows.
What’s So Great about Using Look Up Functions?
 If you use the traditional way to find an exact match for your data, you may have to go through thousands of pieces of data in order to find out the information you need.
 These lookup functions are perfect when you need to search for and insert a value that is stored elsewhere in the worksheet or workbook.
 You can easily specify the rows and columns you wish to search through in order to find the lookup value.
 Using lookup functions is much faster than searching down a row or column for your information.
Have you used one of these Lookup Formulas?
If so, which formula have you used?
What is a VLOOKUP Formula?
VLOOKUP is a vertical lookup that scans a group of columns to find data that matches a specified value.
What is an HLOOKUP Formula?
HLOOKUP is a horizontal lookup that scans rows in order to find the data that matches a specific value.
Rules: These are very important. The rows or columns in a lookup formula table should be sorted by the first column or row depending on the function in order for it to work properly. In these lookup formulas, do not enter the column or row number or letter. Instead, identify the desired column and row you wish to have searched by counting the columns from the left or from the top. See the example for more details.
Fun Fact: Did you know that LOOKUP formulas were created over 20 years ago?
How to Use the VLOOKUP Formula
A VLOOKUP formula typically looks like this: =VLOOKUP(B2,Data!B2:D30,4,FALSE).
The terminology for the VLOOKUP formula is as follows: =VLOOKUP(lookup_value,table_array,row_index_num,range_lookup).
It may seem trying at first, but once you practice, get the hang of using it, and use it frequently, you will find that this formula will make your life easier. This is a brief overview of what this formula is all about, but an example will be shown later in this article that will help you easily understand how to use it.
Now that you have become familiar with the terminology of this function, learn the details of the formula in this table.
=VLOOKUP
Part
 Definition


Lookup_value
 This is the value searched for in the table array

Table_array
 This is the range of information the formula searches for to find your data

Col_index_num
 This is the column number in your defined range of cells that contains the value you wish to have returned to you

Range_lookup
 TRUE or blank provides you with an approximate match and FALSE provides you with an exact match

How to Use the HLOOKUP Formula
An HLOOKUP formula typically looks like this: =HLOOKUP(J2,SumDataInfo!C2:R80,8,FALSE).
The terminology for the HLOOKUP formula is as follows: =HLOOKUP(lookup_value,table_array,col_index_num,range_lookup).
It may seem trying at first, but once you practice, get the hang of using it, and use it frequently, you will find that this formula will make your life easier.
Since tables or arrays of data are not typically designed in a horizontal manner, VLOOKUP is much more commonly used than HLOOKUP. You may wish to focus on learning how to use the VLOOKUP formula first and foremost.
The HLOOKUP formula, when needed, will come naturally after mastering the VLOOKUP formula. However, if you wish to learn both today, keep reading! This is a brief overview of what the HLOOKUP formula is like, but an example will be illustrated later in this article that will help you understand how to use it with ease and comfort.
Now that you have become familiar with the terminology of the HLOOKUP formula, learn the details in the following table.
=HLOOKUP
Part
 Definition


Lookup_value
 This is the value searched for in the table array

Table_array
 This is the range of cells the formula searches for to find your data

row_index_num
 This is the row number in your defined array that contains the value you wish to have returned to you

Range_lookup
 TRUE or blank provides you with an approximate match and FALSE provides you with an exact match

VLOOKUP Formula
VLOOKUP Example
Example on How to Use the Lookup Formulas
Okay, so maybe I am picking on my man, Bryan, in this example, but here it goes.
VLOOKUP
The first example is one on VLOOKUP. This table is set up to show how much money was spent in the break or snack room of the office on July 13, 2013 per employee.
We will look at the following parts to the formula: (1) the lookup value, (2) the table array, (3) the column index number, and (4) the range lookup.
So, in my little example:
(1) I want to know how much Bryan spent in the break room on July 13, 2013; my value is “Bryan” (Note: Since it is text, it belongs in quotation marks with no spaces.),
(2) I am putting my formula in a separate worksheet (in the same workbook) so I am referencing the table Amount Spent in Snack Room in this manner: ‘Amount Spent in Snack Room’! and then with NO spaces I am adding the table array of B:E, meaning go through all the cells in columns B through E,
(3) As you can see in the picture, the “Amount” spent in the snack room is the column after the name. This means my value (Bryan – the name) is equal to 1 and what I want ($5.00 – the Amount) is equal to 2, so the number 2 is entered for this value, and
(4) Bryan is the only employee listed with that name, so his name will only appear once on this list in the way it was organized. Therefore, I want an exact match, so FALSE is entered as the range lookup.
HLOOKUP Example
HLOOKUP
The second example is for HLOOKUP.
This table tells me per quarter how many new clients each employee retained. I want to know how many clients Bryan gained in the third quarter of 2013.
We will look at the following parts to the formula: (1) the lookup value, (2) the table array, (3) the row index number, and (4) the range lookup.
So, in the following example:
(1) I want to know how many clients Bryan gained for the company in the third quarter in 2013; my value is “Bryan” (Note: Since it is text, it belongs in quotation marks with no spaces.),
(2) I am putting my formula in a separate worksheet (in the same workbook) so I am referencing the table # of New Clients Received 2013 in this way: ‘# of New Clients Received 2013’! following it with no spaces I am adding the table array of B:R, meaning go through all the cells in rows B through R,
(3) As you can see in the picture, the “Qtr 3” clients gained in 2013 is three rows after the name. This means my value (Bryan – the name) is equal to 1 and what I want (32 – the number of clients gained by Bryan in Qtr 3) is equal to 4, so the number 4 is entered for this value, and
(4) Bryan is the only employee listed with that name, so his name will only appear once on this list in the way it was organized. Therefore, I want an exact match, so FALSE is entered as the range lookup.
HLOOKUP Formula
An Introduction to VLOOKUP For Beginners
Conclusion
These formulas or functions will allow you to search through one or more columns or rows of data for a specific value. Then, you can have the specific value returned in your desired formula cell, preventing you from searching through too much data.
Instead of you having to search through thousands of rows or columns of data, a magic formula will display the information you need that resides within another set of data. This data could be in another worksheet or in another array of data.
Save yourself time by learning new ways to do things in Excel, and you know what they say? Saving time means saving money!
Want to Learn More? Learn How to Make a Pivot Table!
 Tutorial: How to Create a Simple Pivot Table in Microsoft Excel
This tutorial walks you through step by step the way in which to create and edit an Excel pivot table. Pivot tables organize data, allow you to view trends, and help you make informed decisions.
Learn Excel ShortCuts That Will Save You Time and Impress Others
 Outshine Coworkers with these Excel Tricks: Not Normal Shortcuts
This article will provide you with seven easy Microsoft Excel lessons with outlets to speed your typing! These secret tips and tricks are not typically taught or shared so enjoy!
Disclaimer
Pictures: The pictures used in this article were taken by Michele Jones.
Videos: The provided videos were from You Tube.
HubPages: Feel free to ask a direct question regarding this article in the comment section. If you found this article to be useful or interesting, please:
 Rate it
 Share it
 Leave a Comment or Question.
Thanks for stopping by!
Comments
I came across this Hub from your 'misslong123 page'. Earlier today you had asked the question "What makes you happy?" So I was surprised to see that you had authored a Hub on vlookup in Excel. That's quite a range! You're good at technical writing. I know how challenging it can be to put together something like this, aimed at an average Excel user. Recently at work I was helping somebody do a vlookup, and reminded them they had to make sure to first sort the data (as you mentioned above). They kind of shrugged, and I didn't really have the time to figure out why the sort was necessary, and explain it. I'm afraid I'm not very patient with things like that. In my opinion, in Excel, vlookup is potentially much more useful than pivot tables. Everyday Excel users should take the time to master it and recognize when they can put it to good use. (If Microsoft had left vlookup out of Excel back in the day, I think it would have forced a lot of people to use Access on top of Excel, or forced them away from MS entirely.)
This is a very good tutorial on using these excel functions. I remember teaching them in basic computer and the fun challenge it was to build a spreadsheet using them. Thanks for the highlights.
Incredible layout and an informative hub on enormous technology.
This is way beyond me as I am technologically brain dead, but nice job in this tutorial. Have a great day Michele.
The Lookup functions are easy if you can just understand the basic logic behind it ..and of course the format ... very useful hub..cheers!
10