Sobre este ejercicio
Un conjunto de datos de 11 filas en una hoja, una celda de respuesta, unos 7 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
- B12
=VLOOKUP(B10,$A$2:$M$7,MATCH(B11,$A$1:$M$1,0),FALSE)
MATCH(B11,$A$1:$M$1,0) scans the header row for the month and returns its position — "Jul" is the 8th cell of A1:M1 — and that number becomes VLOOKUP's column argument. VLOOKUP then finds the KPI row by its name in column A and returns the cell in that column. Because both the row and the column are looked up from the input cells, the box answers any KPI-and-month combination without touching the formula.
Pitfall 1: MATCH must run over a range that starts at the same column as the VLOOKUP table (A1:M1 for a table starting in A); running it over B1:M1 returns a position that is one too small and silently gives the previous month. Pitfall 2: the third argument of MATCH must be 0 for an exact match; with it omitted MATCH assumes the months are sorted alphabetically and returns nonsense. Pitfall 3: month names must match the header exactly — "July" will not find "Jul"; a data-validation list on the input cell removes the problem. Alternatives: =INDEX($B$2:$M$7,MATCH(B10,$A$2:$A$7,0),MATCH(B11,$B$1:$M$1,0)) is the two-way INDEX/MATCH form; =HLOOKUP(B11,$B$1:$M$7,MATCH(B10,$A$1:$A$7,0),FALSE) flips the roles; in 365, =XLOOKUP(B11,$B$1:$M$1,XLOOKUP(B10,$A$2:$A$7,$B$2:$M$7)) nests two XLOOKUPs. Design note: VLOOKUP + MATCH is also how you make a lookup survive inserted columns — the column number is recomputed from the header every time.
Otras formas válidas
- =INDEX($B$2:$M$7,MATCH(B10,$A$2:$A$7,0),MATCH(B11,$B$1:$M$1,0)) — INDEX with two MATCH calls
- =HLOOKUP(B11,$B$1:$M$7,MATCH(B10,$A$1:$A$7,0),FALSE) — HLOOKUP finds the month column, MATCH supplies the row number
- =VLOOKUP(B10,$A$2:$M$7,MATCH(B11,$B$1:$M$1,0)+1,FALSE) — MATCH over B1:M1 needs +1 to account for the KPI column
Errores frecuentes
Hard-coding the column: =VLOOKUP(B10,$A$2:$M$7,8,FALSE) shows the right number for Jul and keeps showing Jul after the month in B11 is changed to Nov — the grader changes the month and expects the value to follow.
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.