Skip to content

Lesson 9 ยท Excel and Data

Preparing Excel Data for Copilot

Get better Excel results from Copilot by shaping data as clean tables with one header row, consistent types, no merged cells and files in supported formats.

Copilot in Excel works from what the workbook contains. If the data is messy, answers and edits are likely to be wrong in quiet ways: a total that skips rows, dates read as text, or one customer counted twice because of two spellings. Cleaning the data first is one of the most reliable ways to get good results.

File requirements

Microsoft's support pages say that Copilot editing in Excel needs a modern file format such as .xlsx, .xlsb or .xlsm, and does not work with the Strict Open XML Spreadsheet format. They also say editing works only when Calculation Options are set to Automatic. In business settings the workbook is typically stored in OneDrive or SharePoint, and a file that is checked out in SharePoint can cause an "unsupported file state" error. Requirements about AutoSave and storage have changed over time, so check the current support page if Copilot reports a problem with your file.

One table, one subject

Think of your data as a database table, an idea you can study in the SQL course: each row is one record and each column holds one kind of value.

Do Avoid
One header row with unique names Two or three stacked header rows
One record per row Notes and totals mixed into the data
One value per cell "Anna / Ben" in one cell
Real dates and numbers Dates typed as text, or "approx. 50"
No blank rows or columns inside Gaps used as decoration
No merged cells Merged title cells over the data

Format the range as an Excel table. A table has clear boundaries, grows when you add rows and gives columns names you can refer to.

Names that explain themselves

"Col1" tells nobody anything. "OrderDate", "Region" and "NetAmountEUR" are better. Put units in the name. If a column holds codes, add a short key on another sheet so that people, and Copilot, can understand them.

Consistency

These are common troublemakers:

  • "Paris", "paris " and "PARIS" can be three groups to a strict count.
  • "1,200" stored as text does not add up.
  • 03/04/2026 means different days in different countries.
  • An empty cell might mean zero, unknown or not applicable. Decide which.

A stand-in: a data health check

This script finds typical problems in a small list of rows. It is ordinary Python, not Excel or Copilot. Run it, then read the report.

Python Stand-in: find messy values before you analyze

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Fix problems safely

Keep an untouched copy of the raw data on a separate sheet or in a separate file. Clean a copy. Record what you change:

TEXT
2026-12-01: trimmed spaces in City; used Title Case
2026-12-01: converted text amounts to numbers (3 cells)
2026-12-01: duplicate order 3 checked with owner; kept the 90 row

(This log is an invented example.) Never delete "duplicates" blindly. Two rows with the same number may be a real correction, a split shipment or a mistake. Ask the person who owns the data.

You can ask Copilot to help find problems while you keep the decision:

TEXT
Look at the table Orders. List possible data quality issues by column,
with example rows. Do not change anything yet.

Asking it not to change anything keeps the first pass safe. Afterward, check a few rows yourself, because the list may be incomplete.

Write definitions

Copilot and colleagues both need to know what a column means. Add a small Notes sheet:

Column Meaning Example
OrderDate Date the customer placed the order 2026-03-04
NetAmountEUR Amount after discounts, before tax 120.00
Status Open, Paid or Cancelled Paid

If "revenue" could mean before or after refunds, write down which one you use. Many wrong answers are really definition problems.

Privacy before analysis

Before you share a workbook or ask about it, remove columns you do not need, such as personal addresses or private notes. A smaller, cleaner table is safer. For guidance on sensitive data, see privacy and PII handling. Also remember that saved changes made with Copilot are visible to everyone who can open the file.

A good workbook layout

TEXT
Sheet "Orders"    -> the clean table, one row per order
Sheet "Lookups"   -> city codes and product categories
Sheet "Raw"       -> the original export, untouched
Sheet "Notes"     -> cleaning log, definitions and owner

This layout makes it easy to answer two questions that always come up: "Where did this number come from?" and "What did you change?"

Check before you ask

Before your first question, sort each column and look at the top and bottom values. Filter each text column and scan the list of unique entries for near duplicates. Count the rows and compare the number with the system you exported from. These three checks take little time and often reveal problems that would otherwise appear as strange answers later.

If something looks odd, ask the data owner before you correct it. A value that looks wrong may be a real exception that matters to your analysis.

A common mistake is hiding rows or using color to carry meaning, such as "red means cancelled". Tools may not treat color as data, and filters can ignore your intention. Add a real Status column instead.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Which layout is best for analysis?

    A clean rectangular table is easy to read and check.
  2. 2. You find two rows with the same order number. What is the safest action?

    Similar rows can both be valid, so confirm before removing one.
  3. 3. Why keep a raw copy of the data?

    An untouched source lets you verify every cleaning step.

Summary

  • Use supported formats and Automatic calculation, and check current requirements.
  • Shape data as one table with a clear header and one record per row.
  • Fix spelling, types, dates and blanks, and log the changes.
  • Write definitions and remove unneeded personal data.
  • Ask Copilot to find issues before you let it change anything.

Next: Formulas and Edits With Copilot in Excel

Your progress is saved in this browser. No account needed.