Excel INDEX function

Returns the value at a position in a range. Together with MATCH it makes Excel’s most flexible lookup. In Spanish Excel it is called INDICE.

Syntax

English Excel

=INDEX(array, row_num, [column_num])

Spanish Excel (Mexico)

=INDICE(matriz, núm_fila, [núm_columna])

Spanish Excel (Spain, Latin America)

=INDICE(matriz; núm_fila; [núm_columna])

ArgumentWhat it is
arrayThe range to take the value from.
row_numThe row position.
column_numoptionalThe column position.

Example

VLOOKUP only returns columns to the right of the one it searches. MATCH(value, range, 0) tells you the value’s position; INDEX(range, position) returns what is at that position. Together they look up in any direction.

=INDEX(A2:A8,MATCH(F2,C2:C8,0))

Common mistake

Positions count from the start of the range, not from row 1 of the sheet.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice INDEX

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

INDEX + MATCH

VLOOKUP only returns columns to the right of the one it searches. MATCH(value, range, 0) tells you the value’s position; INDEX(range, position) returns what is at that position. Together they look up in any direction.

Example=INDEX(A2:A8,MATCH(F2,C2:C8,0))INDICE = INDEXCOINCIDIR = MATCH

In F3, find the name of the employee with the ID in F2. The ID is to the right of the name, so VLOOKUP will not work.

F3
ABCDEFG
1NameRoleID
2Marisol PeñaManagerE-101IDE-105
3Fernando RuizAnalystE-102Name
4Gabriela SotoDesignerE-103
5Hugo LaraAccountantE-104
6Daniela VegaDeveloperE-105
7Óscar DíazSales repE-106
8Natalia CruzAssistantE-107
9

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is INDEX called in Spanish?
In Spanish Excel it is INDICE. The formula =INDEX(A2:A8,MATCH(F2,C2:C8,0)) is written =INDICE(A2:A8;COINCIDIR(F2;C2:C8;0)) (or with commas in Mexico).
Why does INDEX use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common INDEX mistake?
Positions count from the start of the range, not from row 1 of the sheet.