⚠️ Advertencia crítica antes de aplicar cambios en Excel
No trabajes directamente sobre archivos oficiales, libros compartidos, reportes institucionales, data sensible o archivos usados por procesos de producción sin autorización formal.
Excel puede parecer simple, pero una fórmula mal copiada, una validación aplicada a la columna incorrecta, una consulta de Power Query mal configurada o una tabla dinámica desactualizada puede afectar decisiones, reportes, auditorías o cargas posteriores.
Regla obligatoria del training: primero se trabaja con data sintética, luego con una copia controlada, después se valida el resultado, y solo entonces se considera usar datos reales siguiendo permisos, backup, control de cambios, data governance y protocolos de ciberseguridad.
- Permisos: usa solamente archivos donde tengas autorización explícita.
- Backups: nunca sobrescribas el archivo original sin copia recuperable.
- Data governance: respeta privacidad, clasificación de datos y controles de acceso.
- Producción: no cambies archivos conectados a procesos reales sin revisión, aprobación y plan de reversa.
⚠️ Critical warning before applying changes in Excel
Do not work directly on official files, shared workbooks, institutional reports, sensitive data, or files used by production processes without formal authorization.
Excel may look simple, but a formula copied incorrectly, a validation applied to the wrong column, a misconfigured Power Query step, or an outdated PivotTable can affect decisions, reports, audits, or later uploads.
Mandatory training rule: start with synthetic data, then use a controlled copy, validate the result, and only then consider real data while following permissions, backups, change control, data governance, and cybersecurity protocols.
- Permissions: use only files where you have explicit authorization.
- Backups: never overwrite the original file without a recoverable copy.
- Data governance: respect privacy, data classification, and access controls.
- Production: do not change files connected to real processes without review, approval, and rollback planning.
Objetivo del Topic 4
El objetivo es controlar errores de búsqueda en Excel sin esconder el problema. En vez de dejar una celda vacía o un error técnico como #N/A, devolvemos un mensaje claro como Review: Employee ID not found.
Topic 4 Objective
The goal is to control lookup errors in Excel without hiding the problem. Instead of leaving a blank cell or a technical error such as #N/A, we return a clear message like Review: Employee ID not found.
Ambiente de práctica
Trabaja siempre con una copia o archivo sintético:
Practice environment
Always work with a copy or synthetic file:
Documents\AI Practical Training\Excel\Topic 4\PracticeWorkbook.xlsx
Qué vamos a aprender
- Usar XLOOKUP para buscar valores oficiales.
- Usar IFERROR para manejar errores de búsqueda.
- Evitar celdas vacías que oculten problemas.
- Crear mensajes claros para revisión.
- Filtrar excepciones antes de cargar o publicar datos.
What you will learn
- Use XLOOKUP to retrieve official values.
- Use IFERROR to handle lookup errors.
- Avoid blank cells that hide problems.
- Create clear review messages.
- Filter exceptions before uploading or publishing data.
Paso 1 — Crear data sintética
Crea dos tablas pequeñas: una tabla de trabajo y una tabla maestra oficial.
Step 1 — Create synthetic data
Create two small tables: one working table and one official master table.
Working table: Table1
Employee_ID | Comment
10001 | Valid employee
10002 | Valid employee
99999 | ID not found in master
Master table: EmployeeMaster
Employee_ID | Full_Name
10001 | John Smith
10002 | Maria Garcia
10003 | Carlos Rivera
Paso 2 — Aplicar IFERROR con XLOOKUP
Esta fórmula busca el nombre oficial del empleado. Si el ID no existe en la tabla maestra, devuelve un mensaje claro de revisión.
Step 2 — Apply IFERROR with XLOOKUP
This formula retrieves the official employee name. If the ID does not exist in the master table, it returns a clear review message.
=IFERROR(
XLOOKUP(
[@Employee_ID],
EmployeeMaster[Employee_ID],
EmployeeMaster[Full_Name]
),
"Review: Employee ID not found"
)
Paso 3 — Verificar resultado
Filtra la columna de resultado por la palabra Review para identificar registros que necesitan investigación.
Step 3 — Verify result
Filter the result column by the word Review to identify records that need investigation.
Verification examples:
- Employee_ID 10001 returns John Smith
- Employee_ID 10002 returns Maria Garcia
- Employee_ID 99999 returns Review: Employee ID not found
- Filter result contains "Review" to create an exception list
Explicación simple
- XLOOKUP busca el Employee_ID en la tabla maestra.
- Si encuentra el ID, devuelve el nombre oficial.
- Si no encuentra el ID, normalmente saldría #N/A.
- IFERROR captura ese error.
- El mensaje de revisión ayuda a auditar y corregir.
Simple explanation
- XLOOKUP searches the Employee_ID in the master table.
- If it finds the ID, it returns the official name.
- If it does not find the ID, Excel would normally return #N/A.
- IFERROR captures that error.
- The review message supports audit and correction.
Ejemplo esperado
| Caso | Resultado |
|---|---|
| 10001 | John Smith |
| 10002 | Maria Garcia |
| 99999 | Review: Employee ID not found |
Expected example
| Case | Result |
|---|---|
| 10001 | John Smith |
| 10002 | Maria Garcia |
| 99999 | Review: Employee ID not found |
Conclusión
Este topic enseña una práctica importante de calidad de datos: los errores no deben esconderse. Deben convertirse en señales claras para revisión, corrección y auditoría.
Conclusion
This topic teaches an important data quality practice: errors should not be hidden. They should become clear signals for review, correction, and audit.