How to Use the VLOOKUP Function in Excel

How to Use the VLOOKUP Function in Excel

 

Before we dive into the universe of VLOOKUP, let's understand what Excel is. Microsoft Excel is a spreadsheet software and part of the Microsoft Office suite, used in corporate and academic settings for the manipulation, analysis, and visualization of data.

With its powerful calculation tools, charts, pivot tables, and functions like VLOOKUP, it has become an indispensable tool for professionals from various fields. In this post, we will explore how to perform VLOOKUP in Excel, a crucial skill for those who wish to maximize this tool.

 

Understanding VLOOKUP

VLOOKUP is a function in Excel that allows you to search for a value in one column and return a corresponding value from another column in the same row. This function is extremely useful for comparing and extracting data from large tables, becoming a valuable skill for any Excel user.

Preparing Your Data:

To use VLOOKUP effectively, it is crucial that your data is well organized. The lookup key, that is, the value you want to find, should be in the first column of the selected range, with related data in subsequent columns.

The Syntax of VLOOKUP:

The VLOOKUP function follows the following order:

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

  • Each part of this syntax plays a specific role:
  • lookup_value: The value you want to search for.
  • table_array: Where Excel should look for the value.
  • col_index_num: The column number that contains the value to be returned.
  • range_lookup: Defines whether the search will be for an exact match or an approximate match.

Example 1: Search

Consider the following scenario: a confectionery that has a table with the names of its customers, the number of orders, and the value received for the products, as shown in the image below, and wishes to find the value for the customer Isabele Danini.

foto 1 vlookup.png

Notice that the column "Name" is the "lookup_value," while "table_array" refers to the entire table range.

The variable "col_index_num" represents the column where the desired information will be searched. Here, we are looking for the value spent by Isabele, which corresponds to the third column of the table. Therefore, the value of "col_index_num" is 3.

foto 2 vlookup (1).png

If there were another column before the "Orders" column, for example, with the customers' ZIP codes, and it was selected in our "table_array" range, then the "col_index_num" would become 4.

foto 3 vlookup.png

In "[range_lookup]," we will put 0 (FALSE), so the function will have an exact match. The TRUE option allows an approximate match.

To find the value of Isabele's orders, we are going to use the formula:

foto 2 vlookup.png

Here, "Isabele Danini" is the lookup value, "A1:C14" is what was selected and where Excel will search, "3" is the sales value column, and 0 ("FALSE") specifies that we want an exact match.

Example 2: Table Comparison

In this example, we use the case of an online stationery store that sells a variety of products. To maintain organization, they use two separate tables: one displaying products available for sale and another showing items in stock, as illustrated in the following image.

foto 1 exp 2 vlookup.png

Now, let's check if the planner is in stock. For this, we use the VLOOKUP function selecting the table related to products in stock.

Note that the "col_index_num" function is 1 because the information sought is in the first column.

foto 2 e 3 vlookup.png

As the product is not in stock, the function returns #N/A.

foto 2.png

While in comparison, the product "Highlighter" is in stock, so it was its own name.

foto 4 vlookup.png

Example 3: Multiple Conditions
 

In this example, we have a beauty salon with the following policy: customers who spend more than $700.00 on purchases will receive a 30% discount, and those spending more than $900.00 will receive a 40% discount.

A table was created with the ranges of values and their discounts.

foto ex3 .png
foto 1.2 ex3 .png

Now, we will use the VLOOKUP function. Note that, in this case, the "table_array" is the second table, with the values and discounts of the salon. As we will use this table for all customers, we add the $ symbol to not change the cell, as seen in the image below.

Also note that, in this case, we use the "range_lookup" TRUE, which can be represented by the number 1.

foto 10 vlookup.png

Dragging down, we have discounts for all customers.

foto final vlookup.png

Why Not Use the IF Function?

The IF function is well known and more appropriate for situations where there are only one or two conditions, that is, simpler cases.

In Example 3, the IF function would be much larger and take much more time, whereas the VLOOKUP function is more agile and simpler in this case. It is necessary to consider the amount of data and its conditions to determine which function is better for solving your problem.

Centralizing Data in Excel

Enhance your Excel analysis with the VLOOKUP function and take your data management to a new level. With Kondado, it's possible to centralize data from over 80 sources directly into Excel, a new destination for your data analysis. If you wish to centralize your data automatically and efficiently, count on Kondado. Try our platform for free, without the need for a credit card, by clicking here. Transform your way of working with data today!

Tips and Precautions:

  • The search key must always be in the first column of the range.
  • VLOOKUP can differentiate between uppercase and lowercase in some versions of Excel.
  • If the function returns #N/A, it means that the searched value is not present in the range.

Conclusion

Mastering VLOOKUP in Excel is a fundamental step for those who want efficiency and precision in data manipulation. This function, although simple, can bring great benefits in terms of time saved and increased productivity.

How to Use VLOOKUP in Excel

Learn to search and match data across Excel tables using the VLOOKUP function with proper syntax and real-world examples.

1
Organize your data with the lookup key in the first column

Before using VLOOKUP, ensure your data is well structured with the lookup value (e.g., customer name or product ID) in the first column of your selected range, with related data in subsequent columns.

2
Write the VLOOKUP formula with correct syntax

Enter =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). Define the value to search, the table range, the column number containing your desired result, and use 0 (FALSE) for exact matches or 1 (TRUE) for approximate matches.

3
Apply absolute references for reusable tables

When using the same lookup table across multiple rows, add $ symbols to lock the table_array range (e.g., $A$1:$C$14) so it doesn't shift when copying the formula down.

4
Interpret results and handle #N/A errors

If VLOOKUP returns #N/A, the searched value doesn't exist in your range. Verify spelling, check that the lookup key is in the first column, and confirm you're using the correct match type for your use case.

5
Choose VLOOKUP over IF for multiple conditions

For scenarios with several conditions—like tiered discount ranges—prefer VLOOKUP with range_lookup set to TRUE (1) instead of nested IF statements, keeping formulas shorter and easier to maintain.

6
Centralize external data to enhance Excel analysis

To power your VLOOKUP workflows with live data from CRMs, ads platforms, and databases, use Kondado's import to spreadsheets to automatically bring data into Excel, or explore data integration for broader pipeline needs.

Frequently asked questions

What is the correct syntax for the VLOOKUP function in Excel?
The VLOOKUP syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). The lookup_value is what you want to find, table_array is the range to search, col_index_num is the column number with the result, and range_lookup is 0 (FALSE) for exact matches or 1 (TRUE) for approximate matches.
Why does my VLOOKUP return #N/A?
The #N/A error means the searched value was not found in your table_array range. Common causes include: the lookup key not being in the first column of the range, typos in the lookup_value, or using exact match (0/FALSE) when the value doesn't exist. Double-check your data organization and match type.
When should I use VLOOKUP instead of the IF function?
Use VLOOKUP instead of IF when dealing with multiple conditions or tiered ranges. As shown in the beauty salon discount example, nested IF statements become large and unwieldy with several thresholds, while VLOOKUP with approximate match (TRUE/1) handles tiered lookups more cleanly and scales better.
Can VLOOKUP search for values in any column of the table?
No—VLOOKUP can only search in the first column of your selected table_array range. The lookup key must always be positioned in column 1 of that range, with return values located in columns to the right. If your data structure doesn't allow this, consider reorganizing or using alternative functions.
How can I automatically bring external data into Excel for VLOOKUP analysis?
You can import data directly into spreadsheets using Kondado, which connects 80+ sources like CRMs, ad platforms, and e-commerce systems to Excel automatically. This eliminates manual data entry and keeps your lookup tables fresh for analysis.
What is the difference between exact and approximate match in VLOOKUP?
Exact match (0 or FALSE) returns a value only when the lookup_value is found identically in the first column—use this for specific lookups like customer names or product IDs. Approximate match (1 or TRUE) finds the closest value less than or equal to your lookup_value—ideal for tiered ranges like discount thresholds or tax brackets.

Written by·Published 2024-02-06·Updated 2026-04-25