Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre VLOOKUP Deep Dive | Working with VLOOKUP and HLOOKUP
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Excel Lookup Mastery

bookVLOOKUP Deep Dive

Glissez pour afficher le menu

What the VLOOKUP Function Does

The VLOOKUP function searches for a value in the first column of a table and returns a corresponding value from another column in the same row.

The name VLOOKUP stands for Vertical Lookup, meaning the search is performed down a column.

Basic Syntax

=VLOOKUP(lookup_value; table_array; col_index_num; [range_lookup])
  • lookup_value: the value to search for;
  • table_array: the range that contains the lookup table;
  • col_index_num: the column number in the table from which Excel returns the value;
  • range_lookup: controls whether Excel performs an exact match or an approximate match. Use FALSE or 0 for an exact match (recommended). TRUE or 1 for an approximate match.

Example Retrieving Product Price

Assume the worksheet contains the following table.

screenshot

The table is located in A3:C7. The product name to search is entered in cell E4. The goal is to return the Price.

=VLOOKUP(E4; A4:C7; 3; FALSE)
  • E4: contains the product name to search;
  • A4:C7: defines the lookup table;
  • 3: tells Excel to return the value from the third column of the table;
  • FALSE: specifies an exact match.
screenshot

How It Works

When the formula runs:

  1. Excel searches the first column of the table;
  2. It finds the row that matches the lookup value;
  3. It returns the value from the specified column.

If E3 contains Monitor, the result will be 180.

Note
Important Limitation

VLOOKUP can only search from left to right.

The lookup column must always be the first column of the table array.

For example, if the table is structured like this:
| Category | Product | Price |
VLOOKUP cannot search by Product to return Category. This limitation is one reason modern lookup functions such as XLOOKUP and INDEX + XMATCH are often preferred.

Scenario

A worksheet contains a table with: Product Code, Product Name, Category, and Price. A Product Code is entered in an input cell. Your goal is to return the Category using the VLOOKUP function.

Task Instructions

  • Search for the Product Code in the first column of the table;
  • Return the Category column.
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 4. Chapitre 1

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Section 4. Chapitre 1
some-alt