AI tools

How do you use AI in Excel and Google Sheets: formulas, clean-up, charts?

Published · By Robert Scales, with AI tools · 9 min read

Short answer

Open the assistant's side panel in your spreadsheet (Copilot in Excel, Gemini in Google Sheets, or the ChatGPT or Claude add-ins), describe the result you want with the exact columns and rows, and let it write the formula, clean the column or build the chart in a copy of your file. Then check the result yourself by recomputing a few values by hand, because every one of these tools can misread a column or change data you did not mean to touch.

In November 2026 there are four main ways to get AI help inside a spreadsheet: Microsoft's Copilot in Excel, Google's Gemini in Google Sheets, OpenAI's ChatGPT add-in for both Excel and Sheets, and Anthropic's Claude for Excel. All four sit in a side panel next to your data, read the sheet, and can write formulas, tidy columns, summarize tables and draw charts. They differ mostly in which plan you need and in how much they are allowed to change on their own.

The work itself follows the same pattern in every tool: describe the result precisely, let the assistant act on a copy, and check its output against numbers you can verify. This article walks through that pattern with three worked examples. If you would rather upload a file to a chatbot and analyze it there, the guide's article on analysing data in ChatGPT with interactive tables and charts covers that route.

What each spreadsheet assistant can do

AssistantWorks inWhat it can doPlans that include it
Copilot in Excel (Microsoft)Excel on Windows, Mac, the web; fewer modes on iPad, iPhone, AndroidEdits sheets, writes formulas across sheets, builds charts and PivotTables, sorts, filters, highlights, searches the web with citations, pulls data from other workbooksMicrosoft 365 Personal or Family with AI credits, Microsoft 365 Premium, commercial Copilot, or eligible business plans
Gemini in Google Sheets (Google)Google SheetsSummarizes the sheet, creates tables, writes and fixes formulas, analyzes data, makes charts; the =AI() function works cell by cellAn eligible Google AI plan or Google Workspace plan
ChatGPT for Excel and Google Sheets (OpenAI)Excel and Google Sheets, as an add-inBuilds sheets from a description, adds and edits formulas, summarizes across tabs, finds and fixes errors, cleans dataEvery ChatGPT plan, Free included; limited on Free and Go
Claude for Excel (Anthropic)Excel, as part of Claude for Microsoft 365Answers questions about any cell, updates assumptions without breaking formulas, builds modelsClaude's paid plans (Pro and up)

A few details worth knowing before you start:

  • Copilot in Excel has three modes. Edit changes the workbook directly, plan proposes the steps first so you can approve them, and chat answers without touching the file. Edit is the default. You open it from the Copilot icon at the bottom right of Excel. Microsoft also lets paying users of a commercial Copilot or Microsoft 365 Premium choose between Anthropic's Claude models and OpenAI's GPT models.
  • Gemini works best on native Google Sheets files. For an Excel file, use File, then Save as Google Sheets first. Its chat history disappears when you close the spreadsheet, so insert anything you want to keep.
  • The ChatGPT add-in does not share history with your ChatGPT chats, and OpenAI lists features it does not handle yet: Power Query, Office Scripts, the Data Model behind PivotTables, data validation, slicers, timelines and VBA macros. Very large workbooks may not fit in what the model can read at once, which can give partial answers.
  • Microsoft's in-cell COPILOT function is gone. Since September 14, 2026, a cell that recalculates =COPILOT(...) shows a #NAME? error; earlier results stay as stored values. Microsoft points users to the Copilot pane instead. Google's =AI() function in Sheets is still available.

Which plan do you need, and what does it cost?

Prices below are list prices from each company's site in mid-November 2026, before tax.

  • Microsoft: Microsoft 365 Personal is $9.99 a month in the US, Family $12.99 and Premium $19.99, each with a one-month trial. Copilot in Excel requires the Personal or Family version that includes AI credits. At work, it depends on what your employer's Microsoft 365 licence includes.
  • Google: for personal accounts in Canada, Google AI Pro (CA$26.99 a month) lists Gemini in Gmail, Docs and other Google apps. For businesses, Google Workspace Business Standard is CA$18.40 per user a month on a yearly commitment and includes Gemini in Docs, Gmail and Meet. Google's help pages say only that Sheets needs "an eligible" plan, so confirm in your own account that the Ask Gemini button appears before you pay.
  • OpenAI: the ChatGPT add-in works on every plan, with tighter limits on Free and Go. In Canada, Go is CA$11 a month, Plus CA$25 and Pro from CA$136; prices vary by country.
  • Anthropic: Claude for Excel needs a paid Claude plan; Pro is $20 a month, or $17 a month billed yearly.

If you already pay for Microsoft 365 or a Google AI plan, start with the assistant you have. If you pay for nothing, the free ChatGPT add-in is the cheapest way to try the idea.

Worked example 1: write a formula

Imagine a sales sheet with columns A (Date), B (Region), C (Product) and D (Amount), rows 2 to 500. You want the October 2026 total for the Outaouais region.

Prompt
In this sheet, column A is the sale date, B is the region, C the product
and D the amount in dollars, with data in rows 2 to 500.
Write a formula for cell G2 that adds up the amounts in D for the region
"Outaouais" for sales dated from October 1 to October 31, 2026.
Explain each part of the formula in one line, and tell me how to check it.

A good answer looks like this (the same formula works in Excel and Google Sheets):

=SUMIFS(D2:D500, B2:B500, "Outaouais", A2:A500, ">="&DATE(2026,10,1), A2:A500, "<"&DATE(2026,11,1))

How to check it: filter the sheet to Outaouais and October, select column D, and compare the sum shown in the status bar with G2. If they differ, the usual culprits are dates stored as text, extra spaces in the region names, or a range that stops before your last row. Asking the assistant to explain a formula it wrote is also a good habit; Gemini and the ChatGPT add-in both offer to find and fix formula errors.

Worked example 2: clean a messy column

The region column was typed by hand and contains "QC", "Quebec", "Québec ", "qc" and "Qué.". You want one consistent value.

Prompt
Column E (Province) has inconsistent spellings of the same provinces,
including abbreviations, missing accents and extra spaces.
Do not change column E. Add a new column F called "Province (clean)"
with one standard name per province: "Québec", "Ontario", and so on.
Before you fill it, list every distinct value you found in E and the
standard name you will map it to, and wait for my OK.

Three things make this prompt safer. It keeps the original column, so nothing is lost. It asks for the mapping first, so you can catch a wrong guess (for example an abbreviation that belongs to another province). And it waits for approval, which the ChatGPT add-in and Copilot's plan mode are designed to do.

To check the result, count the distinct values in the new column (=COUNTA(UNIQUE(F2:F500)) in Excel 365 or Google Sheets) and compare the number of rows per province before and after with a quick PivotTable or COUNTIF.

For row-by-row jobs such as sorting customer comments into categories, Google Sheets' =AI() function works cell by cell:

=AI("Classify this comment as praise, complaint or question. Answer with one word.", C2)

Google notes that the function only sees the range you give it, cannot be undone (only regenerated), and returns text only. Spot-check a sample of rows by hand before you trust the column.

Worked example 3: summarize a table and make a chart

Prompt
Using the table on the "Sales" tab, create a new tab called "Summary"
with total sales by month and by region for 2026, as a PivotTable.
Then add a clustered column chart of monthly totals by region,
with months in order on the horizontal axis, a title, and axis labels.
List any rows you had to skip and why.

Copilot in Excel builds the PivotTable and chart with Excel's own tools, so they stay editable and linked to the data. Gemini can preview a chart before you insert it, and it shows its analysis steps and the code it used when it answers a data question. The ChatGPT add-in links its answers to the cells it used.

Check three things on the chart: that the axis starts at zero for a column chart, that the months are in calendar order and not alphabetical, and that the grand total in the PivotTable matches a plain SUM of the Amount column. Asking "list any rows you skipped" surfaces blank or badly formatted rows that would otherwise vanish silently. For a fuller checklist, see how to verify an AI-generated chart or statistic.

Try it: Take a copy of a real spreadsheet, ask your assistant for one formula, one clean-up column and one chart using the prompts above, and check each result by hand. Note which step needed a correction.

How to check results before you rely on them

Microsoft's own FAQ says Copilot can produce inaccurate results and advises against relying on it for sensitive decisions, naming finance, law and medicine. OpenAI likewise says its add-in is not a financial or accounting advisor and can alter or remove data when a request is vague. A short routine catches most problems:

  1. Work on a copy or make sure version history is on before any edit mode.
  2. Recompute one or two key numbers by hand (a filtered sum, a count).
  3. Read every formula the assistant wrote, or ask it to explain each one in plain words.
  4. Compare row counts before and after any clean-up.
  5. Look for silent changes: Claude for Excel highlights the cells it changed, Excel keeps a workbook change history, and Sheets has Undo and version history.

Privacy cautions for business data

What happens to your data depends more on the type of account than on the tool.

  • Work accounts. Microsoft says that with work accounts, prompts, responses and company data are not used to train its foundation models, and Copilot only sees files the user already has permission to open. That second point cuts both ways: if file permissions are too broad, Copilot can surface data some people should not see. Google says Workspace content is not reviewed by humans or used to train its generative models outside your organization without permission. OpenAI does not train on ChatGPT Business, Enterprise or Edu content by default, and in Enterprise the spreadsheet add-in stays off until an administrator turns it on.
  • Personal accounts. Rules are looser. ChatGPT's personal plans have a setting, "Improve the model for everyone", that you can switch off. Claude's consumer plans use chats for training only if you opt in. Gemini Apps with Keep Activity on may use your chats to improve Google's models and have a sample reviewed by people.
  • Keep it minimal. Remove names, emails, phone numbers and account numbers from a copy before asking for help with structure or formulas; the assistant rarely needs real personal data to write a SUMIFS.

In Québec, putting clients' personal information into an AI tool raises obligations under Law 25. The guide's article on pasting customer information into ChatGPT or Claude explains what to check first.

How do you keep an AI assistant from breaking a shared workbook?

Start by giving it less power. In Copilot, use plan mode or chat mode on a shared file so it proposes changes rather than making them; switch to edit mode only on your own copy. Microsoft notes that once Copilot's changes are saved, everyone with access sees them, including people editing at the same time. The ChatGPT add-in asks for permission before changing cells, so read those requests instead of clicking through them.

Next, protect what matters. Lock the sheets or ranges that hold key formulas, keep raw data on a separate tab the assistant does not need to edit, and ask for results in new columns or new tabs rather than in place. Copilot editing also requires Excel's calculation option to be set to Automatic, so a manual-calculation workbook is a sign to work on a copy instead.

Finally, make undo easy. Turn on version history (OneDrive or SharePoint for Excel, built in for Google Sheets), and agree with your team on one rule: AI edits to a shared workbook happen on a copy first, and someone else checks the totals before the copy replaces the original.

Sources

  1. Get started with Copilot in Excel — Microsoft Support, November 13, 2026
  2. Frequently asked questions about Copilot in Excel — Microsoft Support, November 13, 2026
  3. COPILOT function — Microsoft Support, November 13, 2026
  4. Collaborate with Gemini in Google Sheets — Google Docs Editors Help, November 13, 2026
  5. Use the AI function in Google Sheets — Google Docs Editors Help, November 13, 2026
  6. ChatGPT for Excel and Google Sheets — OpenAI, November 13, 2026
  7. Claude for Microsoft 365 — Anthropic, November 13, 2026
  8. Claude Plans and Pricing (feature comparison) — Anthropic, November 13, 2026
  9. Copilot Pricing Plans for Individuals — Microsoft, November 13, 2026
  10. Google AI Pro & Ultra plans (Canadian page) — Google, November 13, 2026
  11. Google Workspace pricing (Canadian prices) — Google, November 13, 2026
  12. ChatGPT Plans and Pricing — OpenAI, November 13, 2026
  13. Data, Privacy, and Security for Microsoft Copilot — Microsoft Learn, July 9, 2026
  14. Generative AI in Google Workspace Privacy Hub — Google, October 6, 2026
  15. Gemini Apps Privacy Hub — Google, October 26, 2026
  16. Data controls in ChatGPT — OpenAI Help Center, September 25, 2026
  17. Is my data used for model training? (consumer) — Anthropic Privacy Center, March 16, 2026

Sources for the articles linked in the text

Each linked article has its own page, with its sources and its date.

From the Guide to Artificial Intelligence, by Robert Scales, published by Holistic Hybrid Inc. Share and adapt it under CC BY-NC-SA 4.0: credit the guide, link to https://guidetoartificialintelligence.com/en/learn/use-ai-excel-google-sheets/, no commercial use without permission, and keep the same licence.

Get the free Guide to Artificial Intelligence

Sign up for the newsletter and receive the free guide: what changed in AI, one lesson, one prompt to try. Unsubscribe in one click.

How we handle your address

Back to top

Display

Your choices are saved in this browser only. No data is sent.

Text size
100%
Colours
Reading
More settings
Accessibility statement

Get the app

Add the guide to your home screen. It opens like an app, and the pages you have read stay available offline.

Read without a connection: download the articles

iPhone and iPad (Safari, Chrome, Edge)

  1. Tap the Share button (the square with an arrow). In Chrome and Edge, it is in the address bar or the menu.
  2. Choose “Add to Home Screen”.
  3. Tap “Add”.

Android (Chrome, Edge, Samsung Internet, Firefox)

  1. Open the browser menu (⋮ or ☰).
  2. Choose “Install app” or “Add to Home screen”.
  3. Confirm with “Install”.

Computer (Chrome, Edge)

  1. Click the install icon at the right end of the address bar, or open the browser menu (⋮ or …).
  2. In Chrome, choose “Cast, save and share”, then “Install page as app”. In Edge, choose “Apps”, then “Install this site as an app”.
  3. Click “Install”.

Mac (Safari)

  1. Open the File menu.
  2. Choose “Add to Dock”.
  3. Click “Add”.

Firefox on a computer can’t install a site as an app. Use Chrome, Edge or Safari instead.