Sobre este ejercicio
Un conjunto de datos de 180 filas en 2 hojas, una celda de respuesta, unos 6 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
- Requests!E2
=XLOOKUP(C2,Directory!$D$2:$D$91,Directory!$A$2:$A$91)
XLOOKUP takes the column to search and the column to return as two separate ranges, so their relative position does not matter: here the search column (Email, D) is to the right of the return column (Employee ID, A). VLOOKUP cannot do this, because it only returns columns to the right of its first column. Text matching in XLOOKUP, like in all Excel lookups, ignores case, which is why "Maya.Patel@…" finds "maya.patel@…".
Pitfall 1: lookups ignore case but not spaces — an email pasted with a trailing space returns #N/A; wrap the lookup value in TRIM when the source is a web form. Pitfall 2: emails are good keys only while they are unique; a shared mailbox used by two people returns the first match silently. Pitfall 3: the pre-365 work-arounds all work in this engine except one — INDEX/MATCH =INDEX(Directory!$A$2:$A$91,MATCH(C2,Directory!$D$2:$D$91,0)) and the array trick =LOOKUP(2,1/(Directory!$D$2:$D$91=C2),Directory!$A$2:$A$91) compute correctly, while the VLOOKUP-with-CHOOSE({1,2},…) trick does not evaluate in this browser engine (it does in desktop Excel). Alternative in 365: =XLOOKUP(C2,Directory!$D$2:$D$91,Directory!$A$2:$A$91,"Unknown email") adds a readable fallback. Design note: looking left is the most common reason teams finally abandon VLOOKUP — reordering the source table to put the key first is not an option when the sheet is owned by HR.
Otras formas válidas
- =XLOOKUP(C2,Directory!$D$2:$D$91,Directory!$A$2:$A$91,"Unknown email") — with a fallback for emails that are not in the directory
- =INDEX(Directory!$A$2:$A$91,MATCH(C2,Directory!$D$2:$D$91,0)) — the version-independent form (not accepted here: this task practices XLOOKUP)
Errores frecuentes
Trying =VLOOKUP(C2,Directory!$D$2:$D$91,-3,FALSE) or a table starting at D: VLOOKUP cannot count backwards, so the result is #VALUE! or #N/A. With XLOOKUP you simply pass the Employee ID column as the return array.
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.