Professional Documents
Culture Documents
Mastering VLOOKUP in Excel - A Step-By-Step Guide
Mastering VLOOKUP in Excel - A Step-By-Step Guide
All Courses
Home Resources Data Science & Business Analytics How to Use VLOOKUP in Excel? A Step-by-Step Guide with Examples
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 1/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
By Shruti M
Table of Contents
VLOOKUP Formula
View More
Microsoft Excel is a deceptively powerful tool for data management. It helps users analyze and interpret data easily. Often
not appreciated for the range of tasks it lets the user perform, Microsoft Excel is undoubtedly a powerful and very popular
tool used by almost every organization, even today.
Excel provides an extensive range of functions that makes it easier to work with data. VLOOKUP in Excel is one such
function. VLOOKUP works as a search function by looking for specific data vertically across a table or spreadsheet.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 2/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
Excel Lookup Tutorial | Excel Lookup Functions - Vlookup, Hlookup, Xlookup | Excel | Simplilearn
VLOOKUP Formula
We can use the VLOOKUP function with the help of a simple syntax. The Syntax for VLOOKUP is:
Where,
lookup_value: This specifies the value that you want to look up in our data.
table_array: This is the location where the values are present in excel.
col_index_number: This specifies the column number from where we need to return the value.
range_lookup: This has two options; if the value is set to FALSE, that means we are looking for an exact match. If the
value is TRUE, then we are looking for an approximate match.
EXPLORE NOW
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 3/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
VLOOKUP stands for Vertical Lookup. As the name specifies, VLOOKUP is a built-in Excel function that helps you look for a
specified value by searching for it vertically across the sheet. VLOOKUP in Excel may sound complicated, but you will find
out that it is a very easy and useful tool once you try it. Look at the example below to understand VLOOKUP.
The VLOOKUP formula below looks for a Company name with Company ID 3.
In the next section, you will understand how to use the VLOOKUP function.
VLOOKUP makes it effortless to look for an exact match from the table. Let’s take a look at how to do this with the help of
an example:
In the example below, we are using the VLOOKUP function to find the value of the exact match of ID from the given
table. So, we set the first parameter as the lookup value, which is the cell H5.
We specify the location of the table in the second argument. As you can see, the table location is A2:F11.
fi f
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 4/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
The third argument specifies the Column Index number. This tells us what value should be returned from the row that
we are looking up for. In the example, the product column is 3.
The last argument is a Boolean Expression. Here, the value is set to FALSE for the VLOOKUP function to return an exact
match for the value. An N/A error is displayed in case the exact value is not found.
With the help of VLOOKUP in Excel, we can look for an approximate match as well. You will learn this in the next section.
REGISTER NOW
Approximate Match works by finding the next largest value that is lesser than the lookup value, which we specify.
In the example below, we use the VLOOKUP function to find out how much RAM specification a laptop priced 1300 EUR
has. Also, we know this value is not present in the table. So, let's use the Approximate Match to find the solution. We need
to sort the first column in ascending order. If not, VLOOKUP will return incorrect values.
First, copy the price and RAM details to a new location, and specify your lookup value. Here, the lookup value is $1300.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 5/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
Next, select your data range and click on the filter option to sort the values of the first column based on ascending order.
After you click on the filter option, you will see the filter buttons enabled on your column headers.
Now, enter your VLOOKUP formula. The first argument will be the VLOOKUP value. The second argument specifies the
table range. In the third argument, we give the column number, so that values for that column are returned. Finally, the
last argument is set to TRUE. This will allow the VLOOKUP function to find an approximate match for the value.
After entering the formula, press enter. The value returned, in this case, is 8GB for the price of $1300.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 6/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
Let’s proceed to the next section and understand how to use VLOOKUP for multiple criteria.
EXPLORE NOW
With a helper column, you can give multiple criteria that the VLOOKUP genetically cannot handle. In our example, we will be
calculating the price based on both company and product.
For example, if we have to look up the price of an Apple MacBook Pro, where the company name and product name are in
two different columns, we use a helper column. This column will store the concatenated values of both columns.
First, right-click on a column header and click on Insert. This will help you insert a column to the left of the Company
column. Name it as ‘Company & Product’.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 7/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
On creating the helper column, enter the formula =C2&”-”&D2. Then, drag the formula down to the rest of the cells in the
column.
On creating the concatenated column successfully, we can now look for the value. Here, we look for the price of an
Apple MacBook Pro.
The first parameter helps to concatenate the lookup value, i.e., B15&"-" &C15. We can also use the concatenate formula,
i.e., CONCATENATE(B15,"-",C15). The second parameter is the table range. The third parameter specifies the column
index, which returns a value from that column. The final parameter is FALSE, as we are looking for an Exact Match. On
pressing enter, the price will be returned as follows.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 8/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
Using VLOOKUP across multiple sheets in Excel can help you find and retrieve data from a large dataset spread across
multiple worksheets. Here are the steps:
1. Open the worksheet that contains the data you want to retrieve and the worksheet where you want to place the lookup
results.
2. Identify the common field in both worksheets that you can use as a reference point for your lookup, which could be a
unique identifier, such as a product code or a customer ID.
3. In the worksheet where you want to place the lookup results, enter the VLOOKUP formula in the cell where you want to
retrieve the data.
4. In the VLOOKUP formula, specify the lookup value, the range of cells where the lookup value is located in the source
worksheet, the column index of the data you want to retrieve, and the range of cells that contain the source data across
multiple sheets, separated by a comma.
Repeat the process for each lookup value and ensure that the common reference field in both worksheets is correctly
aligned. With this method, you can easily retrieve data from multiple sheets in Excel using VLOOKUP.
When we enter an incorrect formula or add a wrong value somewhere the VLOOKUP function shows an error. Here are
some tips that you must keep in mind while using VLOOKUP function -
1. If you omit range_lookup from the VLOOKUP function, it will evaluate the non-exact matches as well. However, it will use
an exact match if it exists in your data.
2. If the lookup column has duplicate values then it will only pick the first value.
4. Adding a column after applying VLOOKUP formula will show an error as hard-coded index values don’t change
automatically on adding or deleting columns.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 9/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
#N/A! error – Occurs if the VLOOKUP function fails to find a match to the supplied lookup_value.
#REF! error – Occurs if when the col_index_num argument > number of columns in the supplied table_array; or the
formula attempts to reference cells that do not exist.
#VALUE! error – Occurs if either: The col_index_num argument is less than 1 or is not recognized as a numeric value; or
The range_lookup argument is not recognized as one of the logical values TRUE or FALSE.
EXPLORE NOW
VLOOKUP only looks for a match in the first column of the lookup range. This means you cannot use it to search for a
value in a different column of the lookup range.
VLOOKUP is not case-sensitive, so it may return incorrect results if the lookup value is in a different case than the data
in the lookup range.
VLOOKUP only returns the first matching value in the lookup range. This means that if there are multiple occurrences of
the lookup value in the lookup range, VLOOKUP will only return the first one.
VLOOKUP can only handle data that is sorted in ascending order. This means that if the data is not sorted, VLOOKUP
may return an incorrect result.
VLOOKUP cannot handle data that contains errors or blank cells. If the lookup range contains errors or blank cells,
VLOOKUP may return an incorrect result.
VLOOKUP is not very flexible when changing the lookup value or range. If you need to change the lookup value or the
lookup range, you must manually update the VLOOKUP formula
With our courses, you'll learn to analyze data, create insightful reports, and make data-driven decisions that can help drive
business success. Whether you're a beginner or an experienced professional, these courses will help you take your skills to
the next level. So why wait? Sign up for Simplilearn's Data Analytics course today and start building the career of your
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 10/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
dreams!
Cost $$ $$$$ $$
Conclusion
This article has covered a tutorial on how to use VLOOKUP in Excel for Exact and Approximate matches. You have also
learned how to use the VLOOKUP function when you have multiple criteria. You need to carefully understand and
remember the parameters used to perform searching tasks in Excel.
We hope this article helps in paving your way to a fruitful career by honing your Excel skills. If you have any questions,
please mention it in the comments section, and our experts will get back to you right away.
You can also go the extra mile and enhance your Excel skills by enrolling in the Business Analyst Course offered by
Simplilearn.
FAQs
VLOOKUP is a built-in Excel function used to search for a value in the first column of a table range and return a
corresponding value from another column in the same row. It stands for "Vertical Lookup" and is commonly used for data
retrieval and analysis tasks.
column_index: The column number of the cell that you want to return.
2. Table_array: It is the range of cells in which you want to perform the search. The range must include the column from
which you wish to retrieve the corresponding value.
3. Col_index_num: It is the column number (starting from the left of the table_array) from which you want to retrieve the
corresponding value.
4. Range_lookup: This is an optional argument specifying whether you want to perform an exact or approximate match. If
you set this argument to TRUE or blank, Excel will perform an approximate match. If you select FALSE, Excel will
perform an exact match.
No, VLOOKUP is designed to search for values vertically in a column. To search for values horizontally, you can use the
HLOOKUP function.
The range limit for VLOOKUP in Excel is approximately 1,048,576 rows, which is the maximum number of rows allowed in
an Excel worksheet.
In Excel, VLOOKUP and LOOKUP are two different functions used to search for and retrieve data from a dataset. The
primary difference between the two is in their functionality and syntax.
VLOOKUP LOOKUP
VLOOKUP stands for "Vertical Lookup" and is used to search LOOKUP on the other hand is used to search for a specific
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 12/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
VLOOKUP stands for Vertical Lookup and is used to search LOOKUP, on the other hand, is used to search for a specific
for a specific value in the first column of a dataset and value in a dataset and return a corresponding value from a
retrieve a corresponding value from a different column within different column in the same row or the next smaller or
the same row. It takes four arguments: lookup_value, larger value in the same column. It takes two arguments:
table_array, col_index_num, and [range_lookup]. lookup_value and lookup_vector.
VLOOKUP is typically used for exact matches LOOKUP can be used for approximate matches as well
VLOOKUP can only search for values in the first column of the LOOKUP can search for values in any column or row of the
lookup range lookup range.
Yes, VLOOKUP can work with multiple worksheets within the same Excel workbook. You can reference the sheet name
along with the cell range in the table_array argument of the VLOOKUP function.
The HLOOKUP formula is a built-in Excel function used for horizontal lookup. It searches for a value in the first row of a
table range and returns a corresponding value from another row in the same column.
Ensure the lookup value is present in the first column of the table.
Double-check that the col_index_num points to the correct column for the data you want to retrieve.
Be cautious when using the [range_lookup] parameter for approximate matching, as it can lead to unexpected results.
When using VLOOKUP in Excel, you may encounter duplicate values in the lookup range. In such cases, VLOOKUP will
return the first match it finds, and any subsequent matches will be ignored. However, there are a few ways to handle
duplicates when using VLOOKUP:
1. Remove duplicates: One option is to remove duplicates from the lookup range before using VLOOKUP. To do this, select
the lookup range, go to the Data tab, and click on the Remove Duplicates button. This will remove any duplicate values,
ensuring that VLOOKUP returns the correct result.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 13/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
2. Use INDEX/MATCH instead: Another option is to use the INDEX/MATCH function combination instead of VLOOKUP. The
INDEX/MATCH function can handle duplicates more effectively by using the MATCH function to find the position of the
lookup value in the lookup range, and then using the INDEX function to return the corresponding value from a different
column.
3. Use helper column: A third option is to add a helper column to the lookup range that assigns a unique identifier to each
row. Then, use VLOOKUP to search for the unique identifier instead of the original value. This will ensure that VLOOKUP
always returns the correct result, even if there are duplicates in the lookup range.
Find our Post Graduate Program in Business Analysis Online Bootcamp in top cities:
Shruti M
Shruti is an engineer and a technophile. She works on several trending technologies. Her hobbies include reading, dancing
and learning new languages. Currently, she is learning the Japanese languag…
View More
Recommended Programs
Explore Category
Professional Certificate Program In Business Analysis, Ahmedabad Professional Certificate Program In Business
Analysis, Bangalore Post Graduate Program In Business Analysis Professional Certificate Program In Business
Analysis, Chennai Post Graduate Program In Business Analysis Professional Certificate Program In Business
Analysis, Delhi Post Graduate Program In Business Analysis Post Graduate Program in Business Analysis,
Kolkata Professional Certificate Program In Business Analysis, Mumbai Professional Certificate Program In
NEXT ARTICLE
Introducing Simplilearn’s
Business Analysis Post Graduate
Program with Purdue University
By Simplilearn
Recommended Resources
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 15/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
0 Comments
1 Login
Name
Disclaimer
PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, and OPM3 are registered marks of the Project Management Institute, Inc.
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 16/16