Excel COPILOT Function

Mynda Treacy

August 19, 2025

Excel is now a whole lot smarter.

Imagine typing a plain-English question right into a formula: “Classify these transactions into spending categories,” “Summarise this feedback,” or “Extract the email addresses from this column”, and having Excel instantly deliver the result.

Now you can with the new Excel COPILOT function, a built-in AI assistant that reads your spreadsheet data, understands your prompt, and returns exactly what you asked for.

Whether you’re cleaning data, pulling insights, or creating summaries, COPILOT turns your words into answers - no complex formulas required.

Note: The COPILOT function is currently rolling out to the Microsoft 365 beta channel and requires a Microsoft 365 Copilot license.

Watch the COPILOT Function Video

Subscribe YouTube

Get the Example Excel File

Enter your email address below to download the free file.



By submitting your email address you agree that we can email you our Excel newsletter.

What Is the COPILOT Function?

The COPILOT function is designed to bridge the gap between AI and your Excel data. You simply write a prompt in plain language, reference the data you want it to consider, and let Excel do the rest.

Syntax:

=COPILOT(prompt_part1, [context1], [prompt_part2], [context2], ...)
  • prompt_part1  The main question or instruction for COPILOT (required).
  • context1, context2, ...  Optional cell ranges, tables, or named ranges containing data for COPILOT to process.
  • You can alternate between prompts and contexts to build more complex requests.
  • COPILOT combines everything into a single query before generating a response.

Why COPILOT Is Different

Traditional Excel formulas require you to know the exact syntax and function combinations to get results. Power Query lets you clean and transform data, but it needs clear rules.

COPILOT is different because:

  • It understands natural language, not just formulas.
  • It can handle fuzzy, unstructured tasks.
  • It works dynamically with the data in your spreadsheet without complex setup.
  • You can iterate - changing your wording can produce different results.

Example 1. Classifying Bank Transactions

Let’s say you have a table of bank transactions, and you want to assign each one to a spending category, but descriptions on bank statements are often inconsistent and ambiguous, just like the list below:

Sample bank transactions

This requires you to go through each transaction manually but now you can use the COPILOT function to do it for you.

Step 1 – Ask for categories

=COPILOT("analyse the Australian credit card descriptions and come up with a short list of categories I can use to group the expenses")

Notice I haven’t specified the cells containing the transactions. It appears that the COPILOT function is aware of the data around it, but in fact it is using its general knowledge to come up with a list of typical categories:

Categories for data proposed by COPILOT Function

For more accurate results, you should reference the data you want it to classify in the context argument.

Step 2 – Classify transactions

=COPILOT("categorise the Australian credit card expenses",B5:B23, "based only on these categories",G5#)

COPILOT returns a classification for each row, no manual tagging required:

Categories applied to sample data

Example 2. Cleaning Messy Addresses

If your address data is inconsistent: missing commas, different formats, or extra spaces, COPILOT can help. For example, let’s take this data and extract zip codes:

Sample address data

=COPILOT("extract the zipcode from the address", B5:B24)

And the COPILOT function returns the zipcodes perfectly:

ZIP codes extracted from sample data

It can also correct the format of the addresses with this formula:

=COPILOT("rearrange the addresses so they're correctly formatted", B5:B24)

And it returns a column of addresses in a useable format:

Sample addresses organized into standard format

Example 3. Explaining Complex Formulas

Ever opened a spreadsheet and found a formula you can’t decipher? COPILOT can translate it into plain English. Maybe you’ve inherited an Excel file that contains a LAMBDA formula in cell E4 like the one below and you have no idea where to start with it:

=LAMBDA(val,low,up, val=MEDIAN(val,low,up))(B4,C4,D4)

No problem, just ask COPILOT:

=COPILOT("explain in plain English what this formula is doing", FORMULATEXT(E4))

Note that I use the FORMULATEXT function to pass COPILOT the underlying formula in cell E4 as a text string, rather than the result of the formula.

And just like that, you have your own formula expert explaining things in a way you can understand:

Explanation of complex formula

However, as with many things, AI can hallucinate; it gets the first part of this formula right, but then it gets confused towards the end and omits the logical test that returns TRUE or FALSE.

Example 4. Analysing a Profit & Loss Statement

Instead of manually scanning rows of figures, you can have COPILOT point out trends, anomalies, and notable changes.

I pointed it to this profit and loss statement:

Profit & Loss Statement

In cell O4 I entered my formula – notice I nested it inside the TEXTJOIN function so that each line of analysis returned by the COPILOT formula could be joined together into one cell:

=TEXTJOIN(CHAR(10)&CHAR(10), TRUE, COPILOT("analyse the Profit and Loss statement and give me a summary of notable points", B4:F31))

TEXTJOIN combines multiple lines of COPILOT’s output into a single cell, with double line breaks using CHAR(10) for readability. I then linked the output to a shape, so it was easier to read:

COPILOT summary of Profit & Loss Statement

Example 5. Generating Lists

COPILOT can create lists based on current knowledge, predictions, or specific criteria you give it, perfect for brainstorming or quick reference.

In the example below I asked it, to list the English Premier League teams for the 2025/2026 season and have them ranked by predicted performance:

=COPILOT("List the English Premier League teams for the 2025/2026 season and rank them based on their likelihood of taking out the premiership")

This returns a ranked list of teams directly into your spreadsheet, ready to use for analysis, visualisation, or just friendly office debates.

List of English Premier League teams

However, if you’ve been keeping up with the Premier League, you’ll know that Leicester City and Sheffield United are not in the 2025/2026 Premier League and Sunderland and Leeds should be.

The COPILOT function is currently running GPT-4.1 mini but it doesn't have access to the web or your corporate data which is why you may get incorrect data, as I did in this case.

Tips for Getting the Best Results

  • Be specific: instead of “Summarise this,” try “Summarise in three bullet points focusing on sales trends.”
  • Use structured data: Tables and named ranges make it easier for COPILOT to understand your context but be careful entering a COPILOT formula in a table as it will be prevented from spilling.
  • Start small: test on a small range before scaling up. Use FILTER to narrow context while testing and developing.
  • Iterate: if the first result isn’t perfect, tweak your wording.

Limitations to Keep in Mind

  • Initially you are capped to a maximum of 100 COPILOT calcs per 10 minutes and 300 per hour.
  • COPILOT functions recalculate on changes to the data being referenced by the function or changes to the prompt. This can quickly eat into your allowance – and of course, return different results with each recalculation.
  • Requires a Microsoft 365 Copilot license and internet access.
  • COPILOT’s answers can vary depending on how you phrase the prompt.
  • It’s best suited for interpretation, classification, and summarisation, not precise mathematical calculations.
  • It doesn’t have awareness of its location in the worksheet and can’t return results to specific cells other than the cell you enter it in.
  • Always review outputs before making critical decisions.

The Bottom Line

The COPILOT function opens the door to a new way of working in Excel. Whether you’re classifying transactions, analysing survey feedback, or cleaning up messy text, COPILOT turns your words into answers.

Now it’s your turn: What will you ask COPILOT to do first?

 

AUTHOR Mynda Treacy Co-Founder / Owner at My Online Training Hub

CIMA qualified Accountant with over 25 years experience in roles such as Global IT Financial Controller for investment banking firms Barclays Capital and NatWest Markets.

Mynda has been awarded Microsoft MVP status every year since 2014 for her expertise and contributions to educating people about Microsoft Excel.

Mynda teaches several courses here at MOTH including Excel Expert, Excel Dashboards, Power BI, Power Query and Power Pivot.

4 thoughts on “Excel COPILOT Function”

  1. Is CoPilot included (full features) with a Microsoft 365 Family subscription? If so, how do you ‘launch’ it from within Word, Excel etc to be able to ask it a question?

    Reply

Leave a Comment

Current ye@r *