The VLOOKUP Function in Excel

Excel Functions
Aug 27, 2025 4 min read
VLOOKUP Function in Excel

The VLOOKUP function in Excel looks for a value in the first column of a table and gives you back information from another column in the same row.

Syntax:

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

Arguments:

  1. lookup_value (required): The value you want to search from your dataset.
  2. table_array (required): The whole table where your data is stored.
  3. col_index_num (required): Which column number you want to get your answer from.
  4. [range_lookup] (optional): This let’s you decide if you want Excel to return exact match or a close enough result by passing either TRUE or FALSE.

Explanation of Syntax and Arguments

  • lookup_value: This is what you're looking for. It could be an employee number like "EMP001", a product code like "ABC123", or any value you have in the first column of your table. You can type it directly or point to a cell that has the value. 
  • table_array: This is your whole data table. Think of it like a phone book - you need to tell Excel where all your information is stored but make sure the value you are searching should always be in the first column of this range. If your data goes from A1 to E50, then you use A1:E50.
  • col_index_num: This lets you specify which column Excel should return in the result. If you want something from the 3rd column, you type 3. Always count from the left starting with 1. 
  • [range_lookup]: This is really important! Example, if you want to find a name of Name using their email address, you can use FALSE for an exact. And if you want to find tax rates or grades, you can use TRUE for the closest match.

When VLOOKUP finds what you're looking for, it gives you back the information from the column you asked for. If it can't find anything and you used FALSE, you'll get an error message.

How to Use the VLOOKUP Function

VLOOKUP helps you find information quickly from big lists of data. Think of it like asking someone to look up a phone number for you - you give them a name, and they find the number. You can use it for employee information, product prices, customer details, or any time you need to match one piece of information with another.

Examples of VLOOKUP Function

Example 1: Finding Employee Information

Scenario:

You have a list of employees and want to find someone's department by typing their employee ID.

VLOOKUP Function to find from Employee ID in Excel

Formula:

=VLOOKUP(F3,B2:D12,3,FALSE)

Explanation:

When you type an employee ID in cell F3, this formula looks for that ID in column B and gives you back the department from column 3. We are using FALSE here because we want an exact match to be returned.

Example 2: Looking Up Product Prices

Scenario:

You're making an invoice and need to find product prices automatically when you enter product codes.

VLOOKUP Function in Excel

Formula:

=VLOOKUP(F3,ProductList,3,FALSE)

Explanation:

Type a product code in F3, and this formula finds that code in your product list and shows you the price from column 3. This saves time and prevents mistakes.

Example 3: Converting Scores to Grades

Scenario:

A teacher wants to turn number scores into letter grades using a grade scale.

VLOOKUP Function in Excel

Formula:

=VLOOKUP(C3,GradeTable,2,TRUE)

Explanation:

This formula looks at a student's score and finds the right grade level. We use TRUE because we want the closest match - if someone gets 87, it should find the A grade range.

Example 4: Finding Commission Rates

Scenario:

A sales team gets different commission rates based on how much they sell.

VLOOKUP Function in Excel

Formula:

=VLOOKUP(C3,CommissionTable,2,TRUE)

Explanation:

This looks at how much someone sold and finds their commission rate. Using TRUE helps it find the right rate level even if the exact sales amount isn't in the table.

Note:

If you want to learn how to create named ranges in Excel, read this blog.

Combining VLOOKUP with Other Functions

Example 1: VLOOKUP with IF for Better Error Messages

Scenario:

You want to show "Not Found" instead of error messages when someone types a wrong employee ID.

VLOOKUP with IF Function

Formula:

=IF(ISERROR(VLOOKUP(C9,EmployeeTable,3,FALSE)),"Not Found",VLOOKUP(C9,EmployeeTable,3,FALSE))

Explanation:

The IF function checks if VLOOKUP finds an error. If there's an error, it shows "Not Found". If everything works fine, it shows the employee information.

Example 2: VLOOKUP with IFERROR for Cleaner Results

Scenario:

You want to make your spreadsheet look professional by hiding error messages.

VLOOKUP with IFERROR Function

Formula:

=IFERROR(VLOOKUP(C9,B2:C7,2,FALSE),"Employee Not Found")

Explanation:

IFERROR is easier to use than IF. It catches any problems with VLOOKUP and shows your own message instead of confusing error codes.

Example 3: VLOOKUP with CONCATENATE for Combined Searches

Scenario:

You need to search for employees using their full name, but your data has first and last names in separate columns.

VLOOKUP with CONCATENATE Function

Formula:

=VLOOKUP(CONCATENATE(C9," ",D9),B2:D7,3,FALSE)

Explanation:

CONCATENATE puts the first name and last name together with a space, then VLOOKUP uses that combined name to find the employee information.

VLOOKUP makes it easy to find and show data from big tables. It helps you find information quickly from large amounts of data, whether you're working with employee records, product catalogues, or customer information. Remember to use FALSE for exact matches most of the time, and add error handling to make your spreadsheets look more professional.

Comments (0)

Leave a Comment
Comments are moderated before publishing.

No comments yet. Be the first to comment!

Quick Tip

Use Ctrl+Shift+$ to format numbers as currency instantly.