AI for Excel: how to use artificial intelligence in your spreadsheets
As of September 14, 2026, the =COPILOT() function no longer exists in Excel: Microsoft now points users to the Copilot pane, which edits the workbook directly. AI for Excel means assistants that write a formula, clean a column, build a PivotTable or explain a model from a plain-language request. The main ones are Copilot in Excel, Gemini in Google Sheets and the Claude for Excel add-in. They save time on repetitive work, but every result still needs checking. This guide compares the tools, walks through a 6-step method, gives you prompts to copy and flags the traps.
AI in Excel at a glance
| Question | Short answer |
|---|---|
| What AI does well | Write and explain formulas, clean data, create a chart or PivotTable, summarize comments. |
| What it does badly | Guarantee a calculation is correct, follow a business rule you never explained, work on a messy file. |
| Easiest tool | Copilot if you have Microsoft 365 with AI, Gemini if you work in Google Sheets. |
| Golden rule | Work on a copy and check every number on a few rows before you rely on it. |
Which AI tool for Excel to choose
Five options cover most needs. They differ mainly in where you work and which subscription they require. Details checked on their official pages in November 2026:
| Tool | What it does | Access | Limit to know |
|---|---|---|---|
| Copilot in Excel | Edits the workbook, generates and transforms data, with three modes: edit, plan or chat | Microsoft 365 Personal or Family with AI credits, Premium, or an eligible business license | Trained mostly on English sources; edits require automatic calculation |
| Analyze Data | Answers a question about a table and suggests charts and trends | Microsoft 365 subscribers, button on the Home tab | Not above 1.5 million cells; works best on an Excel table |
| Gemini in Google Sheets | =AI() function that generates, summarizes or classifies text cell by cell | Eligible Google Workspace or Google AI plan | 350 cells per selection; cannot be nested inside IF |
| Claude for Excel | Add-in that explains a model with cell-level citations, fixes errors, fills templates | Pro, Max, Team and Enterprise plans | No macros or VBA; not on iPad, Android or Excel 2016/2019 |
| Chat assistant | Writes a formula or macro from a description, which you paste into Excel | Free tiers of most assistants | Cannot see your workbook unless you describe it |
Copilot, the AI built into Excel
If your subscription includes AI, Copilot is the most direct option: open it from the icon at the bottom right and it works inside your file. In edit mode it changes the workbook directly; plan mode proposes the steps first, and chat mode answers without changing anything. Microsoft 365 Basic includes no AI features, and on the Family plan AI is reserved for the subscription owner. Microsoft warns that Copilot can make mistakes and advises against relying on it for financial, legal or medical decisions.
What happened to the COPILOT function
Many tutorials still show the formula =COPILOT("Summarize these comments", A2:A20). It was limited to Microsoft's preview programs, such as Frontier, and was retired in September 2026. Results already calculated stay in the workbook as cached values, but a recalculation returns #NAME?. Microsoft recommends the Copilot pane for the same tasks: summarizing, classifying or generating text.
Gemini, Claude and free assistants
In Google Sheets, the =AI() function is still available and is mainly for text: classifying reviews, drafting descriptions, summarizing a column. It only sees the range you reference, not the rest of the file. Claude for Excel is aimed more at financial models: it follows formula relationships and cites the cells it uses. Without a subscription, a free chat assistant writes a formula well if you describe your columns. For a wider comparison, see our pick of the best AI and of free AI options.
How to use AI in Excel in 6 steps
- Structure your data : a single header row, no merged cells, and ideally an Excel table (Ctrl + T). AI understands well-named columns better.
- Work on a copy : Anthropic recommends starting from a trusted copy of the workbook before asking for wide edits, and the advice holds for every tool.
- Describe the result you expect : name the columns, the calculation rule and the output format. "Calculate the margin" gets you less than a request that says which columns to subtract.
- Ask for an explanation : have each proposed formula explained step by step. If the explanation does not match your rule, the formula is wrong.
- Check a few rows : recalculate three or four results by hand or with a simple formula. A plausible-looking value can be a hallucination.
- Keep a record : note in a cell or a separate sheet what the AI changed, so a colleague can review the file.
AI also helps you understand a file you received: ask where a total comes from or why a cell shows #REF!. These uses fit into a broader approach to how to use AI at work, alongside an AI presentation maker to present the numbers.
Excel prompts you can copy
A good prompt gives the context, the columns, the task and the expected format. The method is covered in our guide on how to write a good prompt. Five examples to adapt:
- Write a formula : "Column B holds the price before tax and column C the sales tax rate as a percentage. Write a formula for column D that calculates the price including tax, rounded to two decimals, and explain it."
- Look up a value : "In the Orders sheet, find the customer name from the Customers sheet for each customer ID in column A, using XLOOKUP. Show 'unknown' if the ID does not exist."
- Clean a column : "The names in column A have extra spaces and inconsistent capitals. Suggest a formula that fixes them in a new column without touching the original data."
- Analyze : "Create a PivotTable of sales by region and month, then a line chart. Tell me which region dropped the most."
- Debug : "Explain why cell H15 returns #DIV/0! and suggest a fix that shows 0 in that case."
Asking for a new column instead of overwriting the existing one prevents data loss. More templates are in our article on the AI prompt. The same checking habits apply to job applications, for example with our AI cover letter generator.
Precautions to take
- Confidential data : salaries, customer data or unpublished figures only go into a tool your company has approved. With Claude for Excel, the content read from the workbook is sent to Anthropic.
- Files from outside : a downloaded template can contain hidden instructions that push the AI to extract or change data. Anthropic advises using its add-in only with trusted spreadsheets.
- Credits : on Personal and Family plans, AI draws on a monthly allowance. Save it for longer tasks.
- Results that do not refresh : in Google Sheets, the =AI() function cannot be undone and returns plain text; regenerate it when the data changes.
When AI is not enough
For payroll, a tax return or an audited model, a formula must be exact and defensible: AI can help you draft it, not sign it off. Anthropic itself advises against using its tool for audit-critical calculations without verification. For a task that comes back every week, a Power Query or a macro written once and tested is more reliable than a fresh AI request. And if you already know the formula, typing it is still faster than describing it.
Frequently asked questions
Which AI can I use for Excel for free?
A free chat assistant writes and explains formulas well if you describe your columns. You then paste the formula into Excel. Copilot in Excel requires a Microsoft 365 subscription that includes AI.
Is Copilot included in Excel?
Copilot is included in Microsoft 365 Personal and Family with monthly AI credits, and in Premium. It is not part of Microsoft 365 Basic. At work, it depends on the license your organization assigns.
Does the =COPILOT function still exist in Excel?
No. Microsoft retired it on September 14, 2026, after a preview limited to Microsoft's test programs. Values already calculated remain, but a recalculation returns #NAME?. The Copilot pane now handles the same tasks.
Can AI create an Excel spreadsheet?
Yes. Copilot in edit mode creates a table, chart or PivotTable directly in the workbook. A free assistant can also produce a table for you to copy. Check the headers and totals before you use it.
Can you trust formulas written by AI?
Not without checking. Microsoft notes that Copilot can produce inaccurate results. Have the formula explained, then test it on a few rows where you already know the answer.
Sources
- COPILOT functionMicrosoft
- What is Copilot in Excel?Microsoft
- Compare all Microsoft 365 plansMicrosoft
- Analyze Data in ExcelMicrosoft
- Use Claude for ExcelAnthropic