HOW-TO 054 · Microsoft Excel and Google Sheets Basics

How to identify and remove duplicate records

A spreadsheet contains repeated entries that may not be exact matches. The aim is to produce something useful, not simply a polished-looking answer.

Before you start

FILE OR SOURCE NEEDED: your Excel or CSV file. Open a new chat. Select + or the paperclip by the message box, choose Upload file, select your file and wait for its name to appear. Then paste the prompt. If uploads are unavailable, paste approved text or figures instead, or use an approved tool that accepts the file.

YOUR READY-TO-USE PROMPT

Copy this into your AI tool

I would appreciate help to identify and remove duplicate records. I am a beginner, so explain unfamiliar terms in plain English. Ask me one simple question at a time. Wait for my reply before asking the next. Find out the sample data, the unique key, and the duplicate definition. If there is a file, first confirm you can read it and ask for any missing information. When you have enough details, complete the task this way: Help me identify duplicates in the sample data I share. Use the unique key we discuss and the duplicate definition we discuss to distinguish full duplicates from legitimate repeated transactions. Give COUNTIF-based highlighting and a safe review process before deletion. Do not automatically remove records. Use only what I provide or sources you can actually verify. Do not make up facts, figures, names or approvals. If you cannot create the requested file or perform a tool action, tell me exactly how to complete that part myself. After you show the result, let me request a shorter or clearer version. If you can make the .xlsx file, provide it; otherwise show exact Excel cell references and formulas I can copy.
Paste it into an AI application and answer its questions.
Example, follow-up prompt and final checks

Example conversation

AI might ask: Do you have the material you want me to work with?

You might reply: Yes, I can attach it now.

Example result

Potential duplicate: =COUNTIF($A$2:$A$100,A2)>1.

Improve your result

If an .xlsx file is available, download it and open it in Excel. Otherwise follow the cell-by-cell instructions.

Create a separate sheet listing suspected duplicates and reasons.

Before you use it

Review each flagged record and keep a backup.