Find and handle duplicate records in Excel

Autor: AILesson7 min de preparaciónProbado con:ChatGPTRevisado el: 2026-08-28

Respuesta rápida

Define duplicate identity, detect exact and near matches, and preserve conflicts for review. Proporciona: Duplicate definition, Columns and sample duplicates, Resolution policy. Resultado esperado: Duplicate flags, resolution groups, and a non-destructive review workflow.

1

Añade tu contexto

Tu texto permanece en este navegador. AILesson Prompts no lo envía a un modelo ni a un servidor.

2

Tu prompt

Los campos sin rellenar permanecen visibles como marcadores de posición, para que puedas copiar y editar el prompt

Design an Excel workflow to find and handle duplicate records.

Duplicate definition:
[identity]

Columns and representative duplicate cases:
[layout]

Resolution policy:
[policy]

Distinguish exact duplicate rows, repeated business keys, and possible near matches. Do not recommend Remove Duplicates until the identity rule and conflict policy are explicit. Return helper formulas or conditional-formatting rules, duplicate group IDs, conflict checks, and separate actions for safe exact duplicates, conflicting duplicates, and uncertain near matches. Preserve source rows and show how to reconcile counts before and after resolution.
Probar en Playground
Privado de forma predeterminadaLa preparación del prompt se realiza localmente en tu navegador. Evita introducir información confidencial en cualquier servicio de IA, a menos que tu organización lo permita.

De la entrada al resultado

Un ejemplo completo

Mira cómo un contexto concreto convierte esta receta en un resultado que puedes usar

Entrada real

Duplicate definition
For a contact export, normalized email is the business key. Two rows with the same email are possible duplicates even if name capitalization differs. Rows with blank email are never auto-matched by name alone.
Columns and sample duplicates
A RowID; B FullName; C Email; D UpdatedAt; E Source; F Phone. Examples: R10/Ana/ANA@example.com/1 Jun/Web/123; R14/Ana Pérez/ana@example.com/4 Jun/CRM/blank; R20/Ana Perez/blank/5 Jun/Event/123.
Resolution policy
Exact identical rows may be marked redundant. For the same normalized email, retain the latest nonblank values only after conflicts are shown. Blank-email near matches require human review. Never delete the raw sheet.

Ejemplo de salida

Create G NormalizedEmail with =IF(C2="","",LOWER(TRIM(C2))); H EmailCount with =IF(G2="","",COUNTIF($G:$G,G2)); and I DuplicateGroup with =IF(H2>1,"EMAIL-"&G2,""). Blank emails stay ungrouped. Add conflict flags such as =IF(I2="","",COUNTA(UNIQUE(FILTER($F:$F,$I:$I=I2)))>1) for nonblank phone values, adjusted to exclude blanks if needed.

R10 and R14 join the same email group; they are not safe deletions because name, timestamp, source, and phone completeness differ. R20 remains an uncertain near match and receives ManualReview rather than the email group. Create an action column with ExactRedundant, MergeReview, NearMatchReview, or Unique. Keep Raw_ReadOnly, produce a separate resolved table, and maintain a ResolutionLog containing removed RowID, retained RowID, rule, reviewer, and date. Reconcile raw rows = resolved rows + exact redundant rows + merged rows retained in the log; also compare the unique normalized-email count before and after.

Por qué funciona

  1. 1

    Defining identity before deletion prevents legitimate repeated events from being lost.

  2. 2

    Grouping conflicts keeps evidence available for a human merge decision.

Comprueba el resultado

  • Does the duplicate key reflect business identity rather than visual similarity?

  • Are conflicting values preserved and assigned to review?

  • Can removed rows be traced to a retained record?

Úsalo con confianza

Preguntas frecuentes

Respuestas prácticas sobre cuándo usar esta receta, qué debes proporcionar y en qué casos la revisión humana sigue siendo importante

What should I prepare before using “Find and handle duplicate records in Excel”?

For “Find and handle duplicate records in Excel,” prepare Duplicate definition, Columns and sample duplicates, and Resolution policy. Replace placeholders only with information you can verify. If a detail is unknown, preserve that uncertainty explicitly instead of asking the model to infer it.

When is the “Find and handle duplicate records in Excel” result not ready to use?

The result is not ready if it does not yet deliver the stated outcome—Duplicate flags, resolution groups, and a non-destructive review workflow—from the supplied evidence, or if it relies on unresolved assumptions, missing approvals, or invented details. Use the checks as release gates: revise the source inputs or assign a named, authorized reviewer instead of polishing an unsupported output.

Which AI tools have recorded tests for “Find and handle duplicate records in Excel”?

The published test record for “Find and handle duplicate records in Excel” lists ChatGPT as of 2026-08-28. This confirms recorded runs, not guaranteed compatibility or identical results in later product versions. For another tool or version, keep every constraint visible and repeat the result checks before use.

Más formas de explorar

Dónde encaja esta receta

Mantén el trabajo en marcha