Find and handle duplicate records in Excel

Auteur: AILesson7 min de préparationTesté avec:ChatGPTRévisé: 2026-08-28

Réponse rapide

Define duplicate identity, detect exact and near matches, and preserve conflicts for review. Fournir: Duplicate definition, Columns and sample duplicates, Resolution policy. Résultat attendu: Duplicate flags, resolution groups, and a non-destructive review workflow.

1

Ajouter votre contexte

Votre texte reste dans ce navigateur. AILesson Prompts ne l’envoie ni à un modèle ni à un serveur.

2

Votre prompt

Les champs non remplis restent visibles sous forme d’espaces réservés, afin que vous puissiez quand même copier et modifier le 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.
Essayer dans le Playground
Privé par défautL’assemblage du prompt se fait localement dans votre navigateur. Évitez de placer des informations confidentielles dans un service d’IA, sauf si votre organisation l’autorise.

De l'entrée au résultat

Un exemple détaillé

Voyez comment un contexte concret transforme cette recette en résultat utilisable.

Entrée réelle

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.

Exemple de sortie

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.

Pourquoi cela fonctionne

  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.

Vérifier le résultat

  • 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?

Utilisez-la en toute confiance

Questions fréquentes

Des réponses pratiques sur le bon moment pour utiliser cette recette, ce qu’il faut fournir et les cas où une vérification humaine reste nécessaire.

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.

Plus de façons d'explorer

Où se situe cette recette

Faites avancer votre travail