Skip to content

Lesson 10 ยท Excel and Data

Formulas and Edits With Copilot in Excel

Ask Copilot for Excel formulas and workbook edits, use edit, plan and chat modes, test results on small cases, and learn what happened to the COPILOT function.

Copilot in Excel can explain a formula, suggest one and change your workbook, for example by creating tables, columns, summaries or charts. This power is useful and risky, because a workbook with a wrong formula looks exactly like one with a right one. Your protection is testing.

Modes: edit, plan and chat

As of December 2026, Microsoft's support page describes three ways to work. In edit mode Copilot changes the workbook directly. In plan mode it creates a plan before you edit. In chat mode it keeps its answers in the pane. The agent-style editing feature was previously called Agent Mode and is now presented as Edit with Copilot. Availability differs between Windows, Mac, the web and mobile, so check your app.

A safe routine is: chat to explore, plan before big changes, then edit. Microsoft notes that you can undo changes and, after saving, use version history to go back. Still, work on a copy for anything important.

TEXT
Plan only: add a column MarginPct to the Sales table, based on Revenue and
Cost. Show the formula and how you will handle zero revenue. Do not edit yet.

A note about the COPILOT function

You may find older articles about a =COPILOT() worksheet function. Microsoft Support says it is no longer available as of 14 September 2026. Results already calculated can stay in the file as cached values, but a cell that recalculates shows a #NAME? error. Microsoft points users to the Copilot pane for similar tasks. If you inherit a workbook that used the function, find those cells and replace them.

Asking for formulas

Describe the columns, the rule and the edge cases:

TEXT
In table Sales with columns Region, Revenue and Cost, write a formula for
margin percentage on each row. If Revenue is 0 or blank, show nothing.
Explain each part of the formula.

Here is an example of the kind of formula you might want. This is standard Excel written for this lesson, not captured Copilot output:

TEXT
=IF(N([@Revenue])=0, "", ([@Revenue]-[@Cost]) / [@Revenue])

Format the column as a percentage. Excel's N function turns blank or text into zero, so the formula catches empty cells. Check whether your rule should really treat a text value that way; you may prefer to show a warning.

Test with cases you can solve by hand

Pick rows where you know the answer, including awkward ones.

Revenue Cost Expected margin
200 150 25%
100 120 -20%
0 10 blank
(blank) 10 blank

If a row disagrees, find out why before you use the formula further. This stand-in applies the same rule in Python so that you can compare.

Python Stand-in: test the margin rule on edge cases

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.

Review edits like a change to code

After an edit, check:

  1. Where did it change? Microsoft's November 2026 release notes say responses in Copilot in Excel include links that highlight where changes were made. Follow them, and look for other changes too.
  2. Which range does each formula cover? A total that stops at row 500 misses row 501.
  3. Are there typed numbers inside formulas? Hard-coded values hide assumptions.
  4. Did anything overwrite data? Compare with your copy.
  5. Do totals still match a control figure, such as the sum from the source system?
TEXT
Explain every change you made, which cells were affected and any
assumption in the formulas.

Read the explanation, then verify it in the cells. An explanation can be incomplete.

Charts and formatting

TEXT
Create a column chart of Revenue by Region for 2026. Label axes with units.
Sort regions from largest to smallest. Do not change the data.

Check that the chart uses all rows and the correct year, and that the labels are honest.

Understand before you accept

If you cannot explain a formula, you cannot maintain it. Ask for a simpler version or a helper column:

TEXT
Rewrite this formula as two helper columns with clear names, and explain
what each column does.

A slightly longer workbook that your team understands is usually better than one clever formula that nobody dares to change.

Advanced analysis with Python

Microsoft has described advanced analysis in Excel that uses Python, which requires Python in Excel to be available. These features changed during 2026, so check what your version offers. If analysis creates a sheet with Python code, read the code or ask someone who can. Our Python course helps you learn to read it.

When an edit goes wrong

If a result looks wrong, do not keep asking for more changes on top of it. Undo, or return to your copy or an earlier version. Then look at the cause. Was the column name ambiguous? Did the data contain text where you expected numbers? Did your request leave a rule undecided, such as how to treat refunds? Fix that, and ask again with the missing detail.

Keep a short change note in the workbook with the date, what you asked for, what changed and how you tested it. When someone questions a figure next month, you will be glad you wrote it down. It also helps a colleague take over your file without guessing how it was built.

Protect important workbooks

For a workbook that others depend on, agree on a simple rule: test changes in a copy, have a colleague review formulas that affect reported figures, and only then update the shared file. Tell coauthors before you make large edits. They should not discover new columns or changed totals by accident, especially close to a reporting deadline.

Do not use Copilot output for financial, legal or medical decisions without proper checks. Microsoft itself cautions that results can be inaccurate. This lesson teaches spreadsheet skills, not financial advice. Remember that coauthors can see saved changes.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. What happened to the COPILOT worksheet function?

    Cached results may remain, but recalculation produces #NAME?.
  2. 2. Which mode is the best first step before a large change?

    Planning lets you correct the approach before the file changes.
  3. 3. How should you check a new formula?

    Known cases, including zero and blank, reveal logic errors.

Summary

  • Use chat to explore, plan before big changes, and edit on a copy.
  • The COPILOT worksheet function was retired in September 2026.
  • Describe columns, rules and edge cases when you ask for formulas.
  • Test with rows you can solve by hand, and check ranges, typed values and totals.
  • Review all changes, because coauthors can see them.

Next: Analyzing Data and Checking Results

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