Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Understanding the INDEX Function | INDEX MATCH and Flexible Lookup Models
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Excel Lookup Mastery

bookUnderstanding the INDEX Function

Glissez pour afficher le menu

What the INDEX Function Does

The INDEX function returns a value from a specific position inside a range. Instead of searching for a match, INDEX retrieves a value based on its row and column position. This makes INDEX useful when the exact location of the data is known.

Basic Syntax

=INDEX(array; row_num; [column_num])
  • array: the range containing the data;
  • row_num: the row number inside the range;
  • column_num: the column number inside the range.

If the range contains only one column, the column number is not required.

Example Retrieving a Value by Position

Assume the worksheet contains the following table.

Product

Price

Mouse

20

Keyboard

35

Monitor

180

Webcam

45

The table is located in range A1:B5. To retrieve the price of the second product in the table, use:

=INDEX(A2:B5; 2; 2)
  • A2:B5: defines the table containing the data;
  • 2: refers to the second row inside the table;
  • 2: refers to the second column.

Excel returns the value located at row 2 column 2 of the range.

screenshot

Understanding Row and Column Positions

The row and column numbers refer to the position inside the selected range, not the worksheet. For example, in the range C8:D11:

screenshot

Position

Value

Row 1 Column 1

Mouse

Row 1 Column 2

20

Row 2 Column 1

Keyboard

Row 2 Column 2

35

INDEX simply retrieves the value at the specified coordinates.

When INDEX Is Useful

INDEX is useful when:

  • The position of the data is known;
  • You want to retrieve values without searching;
  • You need a flexible formula that can work with dynamic row and column numbers.

Further, you will combine INDEX with MATCH to create a dynamic lookup formula.

Scenario

A worksheet contains a product table with Product Name, Category, and Price. Your goal is to retrieve the price of a product using its position in the table.

Task Instructions

Use the INDEX function to return the value located at Row 4 Column 3 inside the product table.

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. 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 3. Chapitre 1
some-alt