Saltar al contenido
GridBelt
  • Prueba de Excel
  • Práctica
  • Programas
  • Precios
Iniciar sesión
Empezar la prueba gratuita
  • Prueba de Excel
  • Práctica
  • Programas
  • Precios
Iniciar sesiónCrear cuenta
Empezar la prueba gratuita
GridBelt

Practica Excel en tu navegador.

Prueba de Excel

  • Nivel 1: Principiante
  • Nivel 2: Intermedio
  • Nivel 3: Experto
  • Prueba de Excel en 7 días
  • Clasificación
  • Prueba de Excel para entrevistas
  • Evaluación de Excel de Indeed

Práctica

  • Todos los ejercicios
  • Programas
  • Para principiantes

Guías

  • Fórmulas de Excel
  • Atajos de Excel

Empresa

  • Acerca de
  • Precios
  • Cómo corregimos

© GridBelt. Todos los derechos reservados.

  • Política de privacidad
  • Términos de uso
  • Política de reembolso

Excel es una marca comercial de Microsoft Corporation. Indeed, TestGorilla, SHL y otras marcas son propiedad de sus respectivos titulares. GridBelt es un sitio de práctica independiente y no está afiliado a Microsoft, TestGorilla, SHL ni Indeed, ni respaldado ni patrocinado por ellos.

  1. Práctica
  2. /
  3. INDEX and MATCH

INDEX MATCH MATCH practice: two-way lookup in a sales matrix

  • Experto
  • ~8 min
  • INDEX and MATCH

Enunciado en inglés

The 2026 sales matrix has the twelve months down column A and 8 regions across row 1 — 96 cells of monthly sales. Management wants to type a month in B16 and a region in B17 and read the matching sales figure in B18. Neither VLOOKUP nor HLOOKUP alone can do this: the row and the column both come from inputs, so INDEX needs two MATCH functions, one for each axis.

Qué tienes que hacer

  1. 1Click B18 and type =INDEX($B$2:$I$13, — the matrix of numbers without its labels is the range INDEX will read from.
  2. 2Add the row number: MATCH(B16,$A$2:$A$13,0) finds the month's position in column A (Aug is 8).
  3. 3Add the column number: MATCH(B17,$B$1:$I$1,0) finds the region's position in row 1. Close the bracket: =INDEX($B$2:$I$13,MATCH(B16,$A$2:$A$13,0),MATCH(B17,$B$1:$I$1,0)).
  4. 4Press Enter, then change B16 to Mar and B17 to Pacific Northwest — B18 must follow each change.

Celdas de respuesta

Corrección

Escribe tu fórmula en la cuadrícula, presiona Enter y luego haz clic en Comprobar. Evaluamos el valor de cada celda de respuesta y la fórmula que lo produce.

Tareas

  1. Sin comprobarIn B18, use INDEX with two MATCH functions to return the sales for the month in B16 (matched in A2:A13) and the region in B17 (matched in B1:I1) from the matrix B2:I13.

Para las tareas de hoja de cálculo se recomienda una pantalla grande. La hoja se desplaza dentro de este recuadro.

StartInsertFormulasDataView
A1fxPreparando tu libro…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Escribe tu fórmula en la hoja y luego comprueba.

Sobre este ejercicio

Un conjunto de datos de 17 filas en una hoja, una celda de respuesta, unos 8 minutos. Se corrige en tu navegador: el valor y la fórmula que lo produce, con comentarios que te dicen qué arreglar.

Cómo resolverlo

  • B18=INDEX($B$2:$I$13,MATCH(B16,$A$2:$A$13,0),MATCH(B17,$B$1:$I$1,0))

INDEX(range, row, column) returns the cell at a given row and column position inside the range — here the 8th row and the 5th column of $B$2:$I$13, which is cell F9. The two MATCH functions supply those positions from the labels: one searches the month names in column A, the other the region names in row 1, each with 0 for an exact match. Because every part is looked up, the same formula serves all 96 combinations without being edited.

Pitfall 1: the three ranges must line up — the matrix starts at B2, so the month MATCH must start at A2 and the region MATCH at B1; a MATCH over A1:A13 is one position too large and returns the next month's row. Pitfall 2: labels must match exactly: "Pacific NW" will not find "Pacific Northwest" and MATCH returns #N/A; data-validation lists on the input cells prevent typos. Pitfall 3: a hard-coded position (=INDEX($B$2:$I$13,8,MATCH(…))) looks right until the month input changes — exactly what the grader tests. Alternatives: =VLOOKUP(B16,$A$2:$I$13,MATCH(B17,$A$1:$I$1,0),FALSE) uses VLOOKUP for the row and MATCH for the column; =SUMPRODUCT(($A$2:$A$13=B16)*($B$1:$I$1=B17)*$B$2:$I$13) multiplies two boolean masks by the matrix; in 365, =XLOOKUP(B17,$B$1:$I$1,XLOOKUP(B16,$A$2:$A$13,$B$2:$I$13)) nests two XLOOKUPs (the inner one returns a whole row). Modeling note: two-way lookups are how dashboards read rate cards, price grids and budget matrices; INDEX with a 0 as row or column even returns an entire row or column for charts and spills.

Otras formas válidas

  • =VLOOKUP(B16,$A$2:$I$13,MATCH(B17,$A$1:$I$1,0),FALSE) — VLOOKUP for the row, MATCH for the column (not accepted here: this task practices INDEX with two MATCH functions)
  • =INDEX($A$1:$I$13,MATCH(B16,$A$1:$A$13,0),MATCH(B17,$A$1:$I$1,0)) — INDEX over the whole block including labels; both MATCH ranges then start at A1
  • =SUMPRODUCT(($A$2:$A$13=B16)*($B$1:$I$1=B17)*$B$2:$I$13) — boolean-mask alternative, no INDEX (not accepted here)

Errores frecuentes

Mixing up the order of INDEX's arguments: =INDEX($B$2:$I$13,MATCH(B17,$B$1:$I$1,0),MATCH(B16,$A$2:$A$13,0)) feeds the region position as the row number and returns a value from the wrong cell — INDEX wants row first, then column.

Cómo corregimos

Se acepta cualquier fórmula que produzca el resultado correcto, salvo que la tarea nombre una función: entonces otra función obtiene media puntuación. Comparamos los valores con una pequeña tolerancia y, en el texto, ignoramos mayúsculas y espacios. Un número correcto escrito a mano en lugar de una fórmula obtiene media puntuación. Las tareas de varias celdas obtienen la puntuación completa con el 100% de las celdas correctas y media puntuación desde el 50%. Cuando importa, también cambiamos una celda de entrada en una copia de tu hoja y comprobamos que tu fórmula se adapta.

Respuestas calculadas con las reglas de Excel 365 y comprobadas en nuestro corrector el 16 de noviembre de 2026. Autor: GridBelt team.

En estos programas

  • Excel test in 7 days, Plan del nivel 3Día 5
  • Excel for Data AnalystsDía 9
  • Excel for Sales and MarketingDía 8

Ejercicios relacionados

  • INDEX and MATCH exact lookupIntermedio, ~6 min
  • Pick the month column with MATCHIntermedio, ~7 min
  • Last order date per customerExperto, ~10 min
  • Two-criteria lookup (product and region)Experto, ~10 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Last order date per customer