HOW-TO 062 · Data Analysis and Excel Dashboards

How to compare two Excel files

Two workbooks should contain matching records but may differ. The questions in the prompt help you supply information without preparing a technical brief.

Before you start

FILE OR SOURCE NEEDED: both Excel files. 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

Help me learn to compare two Excel files. 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 columns in the first spreadsheet, the columns in the second spreadsheet, which column identifies each record, and which columns you want to compare. 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: Design a method to compare two Excel files with the columns in my first file and the columns in my second file using the unique ID we discuss. Flag records only in one file and values changed in the comparison columns we discuss. Suggest XLOOKUP or Power Query Merge and include a clear exception table layout. 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. Compare records using the true matching key; never assume matching row positions mean matching records. 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 both Excel files ready?

You might reply: Yes, I have the old and new staff lists.

Example result

ID 004 | Old list: Present | New list: Missing | Check record owner

Improve your result

Open a copy of the spreadsheet in Excel and test the proposed formulas or charts before using live data.

Add a column explaining the type of difference.

Before you use it

Check ID uniqueness, data types and leading zeros.