GuideAI at work
AI in Excel and Google Sheets: 10 Tasks with Prompts
Copilot in Excel, Gemini in Google Sheets or a chatbot? 10 real tasks with prompts: formulas, data cleanup, analysis, charts – plus the number traps.
You ask AI for total sales across three quarters and get a confident, nicely worded answer – with a number that isn’t in your table. That’s why rule number one for AI in spreadsheets is simple: don’t let the model do the math – ask it to write the formula.
This guide walks you through 10 concrete tasks where AI in Excel and Google Sheets can save you time, each with an example prompt you can copy. You also get a fair comparison: built-in Copilot and Gemini versus a chatbot in a separate window. Facts as of November 22, 2026.
How do you use AI in Excel and Google Sheets?
In Excel, click the Copilot icon in the bottom-right corner of the window. In Google Sheets, click Ask Gemini in the top-right corner. Describe the task in plain words, e.g. “add a column with the percentage margin”. You need a plan that includes AI. Without one, describe your data to a chatbot such as ChatGPT or Claude and ask for a formula.
Copilot in Excel, Gemini in Sheets or a chatbot?
| Copilot in Excel | Gemini in Google Sheets | ChatGPT / Claude (add-in or chat) | |
|---|---|---|---|
| Where it works | Windows, Mac, web (edit, plan and chat modes); iPad: plan and chat | web on a computer (as described in Google’s help) | Excel add-ins; ChatGPT also for Google Sheets |
| What you need | Microsoft 365 Personal/Family with an AI credits plan, Microsoft 365 Premium, a commercial Copilot subscription or a business Microsoft 365 plan eligible for Copilot Chat | an eligible Google Workspace or Google AI plan (e.g. Business Standard/Plus, Enterprise Standard/Plus, Google AI Pro/Ultra) | ChatGPT: all plans; Claude for Excel: Pro, Max, Team, Enterprise |
| Edits the sheet | yes (three modes: edit, plan, chat) | yes (tables, formulas, charts, pivot tables) | yes, after asking your permission (ChatGPT), with a warning before overwriting data (Claude) |
| Function in a cell | no – COPILOT function retired Sept 14, 2026 | yes – =AI() (also reached via “Fill with Gemini”) |
not described in the docs |
| Works in English | yes | yes | yes |
Our take: if you already have Microsoft 365 with Copilot or Workspace with Gemini, start with the built-in AI – it works directly on the open sheet and inserts formulas itself. A chatbot in a separate window makes sense when you don’t have such a plan or need a longer analysis (in ChatGPT, OpenAI puts the spreadsheet limit at approximately 50 MB).
One important change: the =COPILOT() function in Excel stopped working on September 14, 2026 (it was only ever a preview feature). After recalculation, cells that use it show a #NAME? error; earlier results stay in the file as cached values. If you have files like that, replace it with regular formulas.
10 tasks where AI in your spreadsheet saves time
1. Write a formula from a description
In our view, the safest and most rewarding task: AI writes the formula, Excel does the math. Example prompt:
Column B has the invoice date, column C the amount, column D the status
"paid"/"unpaid". Write a formula for column E that shows "OVERDUE" if the
invoice is unpaid and more than 14 days have passed since the invoice date.
If you or your colleagues use Excel in another language, add that to the prompt: localized versions of Excel use different function names and, in many locales, semicolons instead of commas as separators.
2. Fix a broken formula
In Google Sheets, hover over a cell with an error and select Fix – Gemini then reviews the formula. In Excel, paste the formula into Copilot, for example:
The formula =VLOOKUP(A2,PriceList!A:C,3,FALSE) returns #N/A for some rows.
Explain the 3 most common causes and give me a corrected version with error handling.
3. Clean up your data
Trailing spaces, “SMITH” and “smith”, dates in three formats. In October 2026, Microsoft started rolling out the @clean-data skill in Copilot (Windows, Mac, web): it finds issues like these, proposes corrections, and you choose which to apply. An example prompt for both tools:
Standardize column A: remove extra spaces and capitalize first and last names.
In column C, convert all dates to YYYY-MM-DD. Don't delete any rows.
Tell me how many cells you changed.
4. Split or combine columns
“John Smith, Denver” in a single cell? Ask for a formula, not finished values – that way the result recalculates when new data arrives.
5. Categorize text
In our view, this is where AI inside a cell works best. An example in Google Sheets (syntax per Google’s help: AI("prompt", [range])):
=AI("Assign this review to one category: delivery, quality, price, service. Return only the category name.", B2)
The function returns text only and can’t be embedded in other functions (Google’s example of what’s unsupported: =IF(AI(...))). Google doesn’t describe automatic updates – to refresh results, use Refresh and Insert. On limits: Google’s October 2026 announcement says Fill with Gemini supports up to 3,000 cells per request, while the AI function help page still says only the first 350 selected cells are generated.
6. Build a pivot table
Both Copilot and Gemini can create pivot tables. Example prompt:
Create a pivot table on a new sheet: sales by region (rows) and month
(columns), sum of amounts, sorted descending by annual total.
7. Create a chart
Copilot and Gemini insert a chart from a description. One catch in Google Sheets: a chart Gemini generates from a regular dataset does not update when you change the source data. For weekly reports, it’s better to build it once by hand.
8. Add conditional formatting
Both built-in assistants handle conditional formatting. Example prompt:
Highlight in red the rows where stock is below the minimum in column F,
and in yellow the rows below 120% of the minimum.
9. Spot trends and outliers
In Excel, Copilot has an advanced analysis mode that opens a new sheet and runs Python code; Microsoft notes that Copilot doesn’t modify your workbook. In ChatGPT you can upload an xlsx file – the analysis also runs on Python, and you can see the code by clicking “View Analysis”. Example prompt:
Analyze daily sales for the past year. Point out 3 trends and the days
with outliers. For each finding, tell me which rows it comes from.
10. Fill in data from the web
Copilot in Excel can fetch information from the web and cite its sources. Since October 2026, the AI function in Google Sheets shows the web sources it used in each cell (in Sheets on the web). Always click through 2–3 sources and check that the data matches.
Number traps (read this before you send the report)
In its Copilot in Excel documentation, Microsoft advises against using it for decisions in sensitive areas such as finance, legal or medical topics and recommends verifying everything it creates. Anthropic doesn’t recommend Claude for Excel for audit-critical calculations without verification. Google warns that Gemini may suggest inaccurate information. These warnings have practical consequences:
- Excel does the math, not AI. Ask for a formula and test it on 3 rows you can calculate in your head.
- Check control totals. After every change made by AI, compare the
SUMof a key column with its value before the change. - Watch out for “silent” overwrites. In edit mode, Copilot changes the sheet directly (you can undo changes or go back to an earlier version). For important files, work on a copy or choose plan mode or chat mode.
=AI()results are generated text, not calculations. They don’t recalculate like a regular formula – you refresh them yourself.- A file from a stranger may contain hidden instructions. Anthropic warns about prompt injection attacks and advises using Claude for Excel only with trusted spreadsheets. In our view, the same caution applies to any assistant.
- Calculation settings. Copilot editing only works when Calculation Options in Excel are set to Automatic.
Data privacy in spreadsheets
Spreadsheets often hold customer data and salaries. Before you upload a file to a chat, check your company’s rules. On personal ChatGPT plans (Free, Plus, Pro), OpenAI may use your conversations to train its models unless you opt out. On personal Claude plans, you choose in your privacy settings whether your chats can be used for training. We cover this in our guide to the best free AI chatbots. It’s best to replace personal data with IDs.
What to do now
Open the spreadsheet you work with every week and start with task 1: describe in plain words a formula you currently write by hand. If the result is weak, improve your request using our guide on how to write a good prompt. And if you’re deciding which AI plan to pay for, see our ChatGPT vs Claude vs Gemini comparison.
FAQ
Is Copilot in Excel free?
No. According to Microsoft, you need Microsoft 365 Personal or Family with an AI credits plan, Microsoft 365 Premium, a commercial Copilot subscription or a business Microsoft 365 plan eligible for Copilot Chat. Without one, you can ask a regular chatbot for a formula and paste it into Excel.
How do I use the AI function in Google Sheets?
Type =AI("prompt", range) in a cell – for example, a categorization prompt and the cell containing the text. The function requires an eligible Google Workspace or Google AI plan. Refresh the results manually with Refresh and Insert.
Can ChatGPT write Excel formulas?
Yes. Describe your data (what’s in which column) and the result you expect. If your Excel isn’t in English, say which language and locale you use. Test the formula on a few rows before copying it across the whole sheet.
What happened to the COPILOT function in Excel?
Microsoft retired it on September 14, 2026. After recalculation, cells with this function show a #NAME? error, and only previously calculated values are kept. Instead, Microsoft points users to the Copilot pane.
Can AI make mistakes in calculations?
Yes, which is why the vendors recommend verifying results. The safest approach is to have AI write formulas and leave the math to the spreadsheet. Check every number that goes to a client or your boss against control totals.
Sources
- Microsoft Support – Get started with Copilot in Excel
- Microsoft Support – FAQ: editing with Copilot in Excel
- Microsoft Support – What is Copilot in Excel? (FAQ, supported languages)
- Microsoft Support – COPILOT function
- Microsoft Support – Advanced analysis with Copilot in Excel
- Microsoft Excel Blog – What's new in Excel (October 2026)
- Microsoft Support – Copilot in Microsoft 365 Personal, Family and Premium
- Microsoft Support – How to correct a #N/A error
- Google Docs Editors Help – Gemini in Google Sheets
- Google Docs Editors Help – AI function in Google Sheets
- Google Workspace Updates – Expanded language support for Gemini in Sheets
- Google Workspace Updates – Fill with Gemini in 11 additional languages
- Google Workspace Updates – Fill with Gemini: citations and larger requests
- OpenAI – ChatGPT for Excel and Google Sheets
- OpenAI Help – Data analysis with ChatGPT
- OpenAI – How your data is used to improve model performance
- Claude – Claude for Excel
- Anthropic – Updates to our consumer terms