Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Understanding the INDEX Function | Index Match och flexibla uppslagsmodeller
Excel Uppslagsmästare

Understanding the INDEX Function

Svep för att visa menyn

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.

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

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.

Task

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.

question mark

What does the INDEX function return?

Vänligen välj det korrekta svaret

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 1

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Avsnitt 3. Kapitel 1
some-alt