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. VLOOKUP

VLOOKUP from another sheet: add the customer tier to every order

  • Principiante
  • ~5 min
  • VLOOKUP

Enunciado en inglés

The Orders sheet lists 80 orders from Q3 2026 with the customer name in column C. Loyalty tiers (Gold, Silver, Bronze) live on a separate Customers sheet: 30 accounts, one row each, with the tier in column D. Customer service wants the tier next to every order so they can prioritize Gold accounts — write one lookup on Orders that reaches into the Customers sheet, then fill it down.

Qué tienes que hacer

  1. 1On the Orders sheet, click E2 and type =VLOOKUP(C2, — the customer name is the value to find.
  2. 2Click the Customers tab, select A2:D31, and press F4 (Windows) or ⌘T (Mac): the formula bar now shows Customers!$A$2:$D$31.
  3. 3Type ,4,FALSE) and press Enter. Excel jumps back to Orders; the tier is the 4th column of the Customers table and FALSE means exact name match.
  4. 4Fill E2 down to E81. Then change a tier on the Customers sheet and watch the matching orders update.

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 comprobarOn the Orders sheet, in E2, look up the tier of the customer in C2 from the Customers sheet (A2:D31, exact match) and fill the formula down to E81.

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 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.

En estos programas

  • Excel test in 7 days, Plan del nivel 2Día 2
  • Excel for Administrative AssistantsDía 6
  • Excel for Sales and MarketingDía 2

Ejercicios relacionados

  • Pull the unit price with VLOOKUP (exact match)Principiante, ~5 min
  • Show "Not found" instead of #N/AIntermedio, ~7 min
  • Shipping cost bands with approximate VLOOKUPIntermedio, ~7 min
  • Look left: employee ID by emailExperto, ~6 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Shipping cost bands with approximate VLOOKUP