You are on page 1of 16

12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide

All Courses

Data Science & Business Analytics

Articles Ebooks Free Practice Tests On-demand Webinars Tutorials

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

How to Use VLOOKUP in Excel? A Step-by-Step Guide with Examples

By Shruti M

Last updated on Oct 18, 2023 1365869

Table of Contents

VLOOKUP Formula

What is VLOOKUP in Excel?

How To Find an Exact Match Using VLOOKUP?

How To Find Approximate Match Using VLOOKUP?

How to Use VLOOKUP for Multiple Criteria?

View More

Reviewed and fact-checked by Sayantoni Das

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.

Let’s go ahead and understand what exactly VLOOKUP in Excel is.

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:

=VLOOKUP(lookup_value, table_array, col_index_number,[range_lookup])

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.

Become an AI-powered Business Analyst

Purdue Post Graduate Program in Business Analysis

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

What is VLOOKUP in Excel?

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.

How To Find an Exact Match Using VLOOKUP?

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.

Future-Proof Your AI/ML Career: Top Dos and Don'ts

Free Webinar | 5 Dec, Tuesday | 7 PM IST

REGISTER NOW

How To Find Approximate Match Using VLOOKUP?

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.

Filter the price details in ascending order. Click on OK.

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.

Become The Highest-Paid Business Analysis Expert

With Business Analyst Master's Program

EXPLORE NOW

How to Use VLOOKUP for Multiple Criteria?

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.

Follow the steps below to perform VLOOKUP with multiple criteria.

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.

So, we enter the formula =VLOOKUP(B15&”-”&C15,B1:G11,5,FALSE)

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

How to Use VLOOKUP Across Multiple Sheets

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.

5. Press Enter to see the lookup result in the cell.

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.

Tips to Use VLOOKUP Function Efficiently

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.

3. VLOOKUP is not case-sensitive.

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

Common Errors in VLOOKUP Function

#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.

This is all you need to know about VLOOKUP in Excel.

Become an AI-powered Business Analyst

Purdue Post Graduate Program in Business Analysis

EXPLORE NOW

Limitations of VLOOKUP in Excel

Here are some limitations of VLOOKUP in Excel:

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

Choose the Right Program

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!

Post Graduate Program In Data


Program Name Data Analyst Analytics Data Analyti

Geo All Geos All Geos U

University Simplilearn Purdue Cal

Course Duration 11 Months 8 Months 6 Mo

Coding Experience Required No Basic N

10+ skills including Python, Data Visualizati


Data Analytics, Statistical
Skills You Will Learn MySQL, Tableau, NumPy and Linear and Log
Analysis using Excel, Data
more Data Manipula
Analysis Python and R, and more

Purdue Alumni Association


Applied Learning via Capstone Access to Integ
Membership
Additional Benefits and 20+ industry-relevant Data Labs Caltech
Free IIMJobs Pro-Membership of
Analytics projects Memb
6 months

Cost $$ $$$$ $$

Explore Program Explore Program Explore

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

1. What is VLOOKUP in Excel?


https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 11/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
1. What is VLOOKUP in Excel?

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.

2. How do I use VLOOKUP?

The syntax for VLOOKUP is:

=VLOOKUP(lookup_value, range, column_index, [is_sorted])

lookup_value: The value you want to look up.

range: The range of cells where the lookup value is located.

column_index: The column number of the cell that you want to return.

is_sorted: A Boolean value that specifies whether the range is sorted.

3. What are the 4 parameters of VLOOKUP?

1. Lookup_value: This is the value you want to search for.

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.

4. Can VLOOKUP search for values horizontally?

No, VLOOKUP is designed to search for values vertically in a column. To search for values horizontally, you can use the
HLOOKUP function.

5. What is the range limit for VLOOKUP?

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.

6. What is the difference between VLOOKUP and lookup in Excel?

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.

LOOKUP can return data from multiple columns in the same


VLOOKUP only returns data from a specific column.
row or multiple rows in the same column.

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.

7. Can VLOOKUP work with multiple worksheets?

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.

8. What is the HLOOKUP formula?

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.

9, How can I avoid errors with VLOOKUP?

To avoid errors, make sure to:

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.

Use the IFERROR function to handle possible #N/A errors gracefully.

10. How do I handle duplicates in VLOOKUP?

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:

Name Date Place

Post Graduate Program in Cohort starts on 8th Jan 2024,


Your City View Deta
Business Analysis Weekend batch

Post Graduate Program in Cohort starts on 22nd Jan 2024,


Hyderabad View Deta
Business Analysis, Hyderabad Weekend batch

Professional Certificate Program Cohort starts on 12th Feb 2024,


Pune View Deta
In Business Analysis, Pune Weekend batch

About the Author

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

Post Graduate Program in Business Analysis Lifetime


Access*
7220 Learners

Post Graduate Program in Business Analytics Lifetime


Access*
https://www.simplilearn.com/tutorials/excel-tutorial/vlookup-in-excel 14/16
12/16/23, 12:07 PM Mastering VLOOKUP in Excel: A Step-by-Step Guide
ccess
2975 Learners

Business Analyst Lifetime


Access*
37735 Learners

*Lifetime access to high-quality, self-paced e-learning content.

Explore Category

Find Post Graduate Program in Business Analysis in these cities

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

Business Analysis, Pune

NEXT ARTICLE

Introducing Simplilearn’s
Business Analysis Post Graduate
Program with Purdue University

By Simplilearn

1122 Aug 10, 2021

Recommended Resources

Business Intelligence Career Introducing the Post Graduate


Guide: Your Co… Program in C…

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

G Start the discussion…

LOG IN WITH OR SIGN UP WITH DISQUS ?

Name

 Best Newest Oldest

Be the first to comment.

Subscribe Privacy Do Not Sell My Data

© 2009 -2023- Simplilearn Solutions

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

You might also like