Ivy Professional School
Rating

How to use Microsoft Copilot to automate Excel data cleaning

Eeshani Agrawal
By Eeshani Agrawal
20+ yrs · Data/AI Consultant
June 24, 2026
12 min read
Authored by Ivy Pro School Founders
Prateek Agarwal
Prateek Agarwal · 20+ yrs AI/ML Leader
Eeshani Agrawal
Eeshani Agrawal · 20+ yrs Data/AI Consultant

Imagine sitting down with a massive, chaotic spreadsheet first thing on a Monday morning. You have thousands of rows filled with duplicate entries, inconsistent date formats, missing values, and mixed-up text casing. Traditionally, fixing this meant hours of manual cleanup, complex nested formulas, or wrestling with Power Query.

Microsoft Copilot in Excel changes that workflow. Think of Copilot not just as an automated tool, but as a collaborative partner. Instead of memorizing syntax or clicking through endless menus, you can talk to your data using everyday language and ask Copilot to transform messy data into analysis-ready tables.

What You Will Learn

Step 1

The Prerequisites: Setting Up Your Workspace for Success

Before letting Copilot work on your data, make sure your file is set up properly. AI is powerful, but it needs a structured environment to understand the columns, rows, and context of your spreadsheet.

Access and subscriptions

To use Copilot in Excel, you need a Microsoft 365 Copilot subscription or a Copilot Pro license. Your Excel workbook also needs to be connected to OneDrive or SharePoint because Copilot uses cloud-based computation. Keep AutoSave turned on so the workbook is synced.

Convert your range into an Excel Table

Copilot works best with official Excel Tables, not loose grids of cells. Click inside your data range, press Ctrl + T, confirm that My table has headers is checked, and click OK. This gives Copilot a clear map of your dataset.

1

Click inside your data range

Select any cell inside the dataset you want Copilot to clean.

2

Press Ctrl + T

Or go to Home and choose Format as Table.

3

Confirm headers

Make sure My table has headers is checked before clicking OK.

Why this matters

By wrapping your data in a formal Excel Table, you give Copilot clear boundaries and column names. That makes natural-language prompts much more reliable.

Step 2

How to Use Microsoft Copilot to Automate Excel Data Cleaning

Once your workbook is ready, open the Copilot pane from the Home tab of the Excel ribbon. Data cleaning usually follows a sequence: identifying structural issues, fixing formatting, removing duplicate records, and filling missing values.

1. Remove duplicates and extra spaces

Duplicate records and accidental trailing spaces are common in raw data. They may look harmless, but they can break formulas like VLOOKUP, XLOOKUP, and lookup-based dashboards.

Prompt examples
Look at the Customer ID column and highlight any duplicate rows.

Remove all duplicate rows based on the Customer ID column.

Clean up the text "text-purple-400">in the Product Name column by removing extra spaces at the beginning and end.

Copilot can scan the relevant column, preview duplicate rows, apply conditional formatting, or remove duplicate records based on your instruction.

2. Standardize inconsistent text

If names or product labels are written in a mix of uppercase, lowercase, and sentence case, the sheet looks unprofessional and becomes harder to sort or group.

Prompt example
Format the names "text-purple-400">in the Employee Name column so that only the first letter of each word is capitalized.

Copilot can recognize that this requires proper case formatting and may suggest a new calculated column. Review the preview, then insert the column if it looks correct.

Step 3

Can Microsoft Copilot Identify and Fix Data Entry Errors?

Yes. This is where Copilot starts to feel like a real assistant. Human data entry often creates inconsistent formats, misspellings, wrong data types, and values in the wrong columns.

Catch outliers and mismatched formats

Suppose a Price column should contain numbers, but a few rows contain values like TBD or Pending. Or maybe dates appear in multiple formats across the same column. Copilot can help you find these anomalies.

Prompt examples
Scan the Price column and highlight any cells that do not contain numbers.

Replace any text values "text-purple-400">in the Price column "text-purple-400">with a blank space.

Standardize all dates "text-purple-400">in the Invoice Date column to the MM/DD/YYYY format.

Handle missing data intelligently

Blank cells can damage analysis, charts, and summary reports. Copilot can fill blanks based on simple replacement rules or more contextual business logic.

Prompt examples
Find all blank cells "text-purple-400">in the Quantity column and fill them "text-purple-400">with 0.

For any missing values "text-purple-400">in the Regional Sales column, fill them "text-purple-400">with the average value of that specific region.

Review before accepting

Missing-value rules can change your analysis. Always review Copilot's preview and confirm that the replacement logic matches your business context.

Step 4

Advanced Automation: Generating Formulas and Conditional Logic

Cleaning data is not only about deleting errors. Often you need to restructure a dataset so it can support reporting, filtering, dashboards, and analysis. Copilot can generate calculated columns from simple descriptions.

Split and combine columns without Flash Fill

If a Full Address column contains street, city, and zip code in one field, you can ask Copilot to extract the part you need into a new column.

Prompt example
Create a new column that extracts the zip code "text-purple-400">from the Full Address column.

Apply conditional flags

Sometimes data cleaning means categorizing records so they are easier to filter, audit, or review. Copilot can translate business rules into IF-style logic.

Prompt example
Add a column named Audit Status. If the Order Amount is greater than $10,000, set the value to Review Required. Otherwise, set it to Approved.

What Copilot is doing

Copilot interprets the business rule, generates a formula or transformation, previews the output, and lets you approve the change before it is applied to the Excel Table.

Step 5

Best Practices for Cleaning Data with AI

Working with AI is a conversational process. To get accurate results and protect your data, use clear prompts and review each proposed transformation carefully.

Be explicit and specific: Instead of saying Fix the dates, say Format the Shipping Date column to show full month names, day, and year.
Review previews closely: Read Copilot's explanation and inspect highlighted cells or new formulas before committing changes.
Use Undo confidently: Excel's Ctrl + Z shortcut can revert changes if a Copilot result is not what you expected.
Keep original data safe: For critical business data, keep a backup copy of the raw file before making major transformations.
Common Cleaning Tasks and Copilot Prompts
Comparison Table
TaskPrompt
Find duplicate recordsHighlight duplicate rows based on Customer ID.
Remove extra spacesClean Product Name by removing leading and trailing spaces.
Fix mixed text casingConvert Employee Name to proper case.
Find non-numeric valuesHighlight cells in Price that do not contain numbers.
Fill missing valuesFill blank Quantity cells with 0.
Create audit flagsMark orders above $10,000 as Review Required.

Elevating Your Productivity

By shifting the burden of syntax and formatting to Microsoft Copilot, you turn data cleaning from a frustrating chore into a quick conversation. You no longer need to let messy formatting stall your projects or spend afternoons troubleshooting broken formulas.

Summary Checklist

Prepare:Sync the workbook and convert data to an Excel Table
Prompt:Ask Copilot for specific cleaning actions
Review:Check previews before applying transformations
Protect:Keep a raw-data backup for important files

Open your most frustrating spreadsheet, convert it into a table, and start talking to Copilot.

When you automate the mechanics of data preparation, you free up time to focus on the stories and insights hidden inside your data.

Identify Your Knowledge Gaps with Intelligent Quizzes

Take personalized quizzes tailored to your domain, topic, and difficulty level. Get detailed feedback on your strengths and weaknesses. Receive a customized learning plan to improve based on your quiz performance. Join 50,000+ learners who've improved their skills with PrepAI Diagnose.

Start Your PrepAI Diagnose
How to use Microsoft Copilot to automate Excel data cleaning | Ivy Pro School