Sobre este ejercicio
Un conjunto de datos de 110 filas en 2 hojas, una celda de respuesta, unos 5 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
- Orders!E2
=VLOOKUP(C2,Customers!$A$2:$D$31,4,FALSE)
A reference to another sheet is the sheet name, an exclamation mark and the range: Customers!$A$2:$D$31. VLOOKUP searches the first column of that table for the customer name in C2 and returns the 4th column of the same row, the tier. Nothing is copied: when a customer is upgraded on the Customers sheet, every one of their orders shows the new tier the moment you press Enter.
Pitfall 1: typing the sheet prefix by hand is where errors creep in — click the tab instead; names with spaces need single quotes ('Key accounts'!A2:D31) and Excel adds them for you. Pitfall 2: an exact match is only as good as the spelling. "Summit Foods " with a trailing space or "Summit foods" in a different case: VLOOKUP ignores case, but not spaces — wrap the lookup value in TRIM when exports are messy. Pitfall 3: the customer name is a weak key; two accounts with the same name return the first one found. Real systems look up a customer ID. Alternatives: =XLOOKUP(C2,Customers!$A$2:$A$31,Customers!$D$2:$D$31) (365) or =INDEX(Customers!$D$2:$D$31,MATCH(C2,Customers!$A$2:$A$31,0)); both keep working when a column is inserted into the Customers sheet, VLOOKUP's hard-coded 4 does not. Design note: a lookup column like this is the usual first step before a pivot or a COUNTIF by tier — the tier becomes an attribute of each order row.
Otras formas válidas
- =XLOOKUP(C2,Customers!$A$2:$A$31,Customers!$D$2:$D$31) — Excel 365, no column counting
- =INDEX(Customers!$D$2:$D$31,MATCH(C2,Customers!$A$2:$A$31,0)) — INDEX/MATCH, any Excel version
- =VLOOKUP(C2,Customers!A:D,4,FALSE) — whole-column reference; fine here because the Customers sheet holds nothing else
Errores frecuentes
Typing =VLOOKUP(C2,$A$2:$D$31,4,FALSE) while still on the Orders sheet: without the Customers! prefix the formula searches the orders themselves and returns #N/A. The sheet prefix is what sends the lookup to the right table.
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.