Excel Training · Topic 4

Controlar errores sin ocultar problemas

IFERROR puede ayudar, pero conviene devolver mensajes útiles para auditoría, no celdas vacías.

Control errors without hiding problems

IFERROR can help, but it should return useful audit messages, not blank cells.

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

01 · Preparar tabla
02 · Aplicar IFERROR
03 · Verificar excepciones
Herramienta base: IFERROR + XLOOKUP

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.

01 · Prepare table
02 · Apply IFERROR
03 · Verify exceptions
Base tool: IFERROR + XLOOKUP

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

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
02

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"
)
Nota: el error no se oculta; se convierte en una señal de control para revisión.
Note: the error is not hidden; it becomes a control signal for review.
03

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

CasoResultado
10001John Smith
10002Maria Garcia
99999Review: Employee ID not found

Expected example

CaseResult
10001John Smith
10002Maria Garcia
99999Review: 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.

Lección clave: un buen archivo de Excel no solo calcula; también ayuda a detectar qué registros necesitan atención.

Conclusion

This topic teaches an important data quality practice: errors should not be hidden. They should become clear signals for review, correction, and audit.

Key lesson: a good Excel file does not only calculate; it also helps identify which records need attention.