HOW-TO 052 · Microsoft Excel and Google Sheets Basics

How to clean messy Excel data

A data export contains mixed dates, extra spaces and inconsistent names. Follow these steps to get a first version and make sure it is suitable for your purpose.

Before you start

FILE OR SOURCE NEEDED: your Excel file (.xlsx). 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 like to clean messy Excel data. I am a beginner, so explain unfamiliar terms in plain English. Start by asking short questions, one by one, and pause after each answer. Find out the column headings, the sample rows, and the known errors. 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: Propose an Excel or Power Query cleanup plan for the column headings we discuss and the sample rows we discuss. Address the known errors we discuss, spaces, dates, number formats and empty cells without changing valid information. Give exact formulas or menu steps and show before-and-after examples. 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. Once done, explain the next step I should take with the result. 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: What should I know about column headings?

You might reply: I can describe it here.

Example result

TRIM removes extra spaces: =TRIM(A2).

Improve your result

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

Suggest a way to keep an untouched copy of the original data.

Before you use it

Compare row counts and sample records after cleaning.