Excel and Google Sheets formulas with AI: ask in plain English (then check them)

How to get formulas from Copilot, the AI function in Google Sheets or any AI chatbot, with examples to copy, what happened to the old COPILOT function and how to avoid blind trust.

Cover reading 'AI bookkeeping for freelancers and small businesses' with a receipt
Image: Best AI Today

You don’t need to memorise formulas any more. You can type “work out how much this went up since last month” and AI gives you the formula and explains it. Here are three ways to do it, and how to avoid mistakes.

Pick your route

Option Who it’s for What you need
Copilot in Excel Microsoft 365 Excel users The Copilot icon showing up (depends on your account and plan)
Gemini in Google Sheets Google Sheets users An eligible Google Workspace or Google AI plan for the AI function
An AI chatbot (ChatGPT, Gemini, Claude…) Anyone, with any program Describe your sheet and copy the formula

1. Copilot in Excel

  1. Open your workbook and select the Copilot icon in the lower-right corner.
  2. Say what you want to calculate and in which cells. Microsoft’s own examples:
    • “Calculate the percentage increase from cell A1 to cell B1.”
    • “Extract the first name from a full name in cell C1.”
  3. Check the formula before you use it.

You can also select a cell with a formula you don’t understand and ask Copilot to explain the formula in the selected cell. Very handy when you inherit someone else’s spreadsheet.

Watch out: the =COPILOT() function is gone

If a tutorial tells you to type =COPILOT(...) into a cell, it’s out of date. According to Microsoft, the function has not been available since 14 September 2026. It was a preview feature. Saved results stay, but if the cell recalculates you’ll get a #NAME? error. You now ask for the same thing in the Copilot pane.

2. The AI function in Google Sheets

Google does have an in-cell function: =AI() (or =Gemini()). It’s mainly for working with text: summarising, sorting into categories, writing or looking something up.

=AI("Classify this comment as positive, neutral or negative", A2)

Steps: type the formula (or use Insert > Function > AI), select the cells and click Generate and Insert.

Limits listed in Google’s help page:

  • It returns text only.
  • It can’t see your whole spreadsheet or other files: pass the cells into the function.
  • It can’t be nested inside another formula, such as an IF.
  • It generates at most the first 350 cells in a selection and has usage limits; if you hit the long-term one, wait 24 hours.
  • You can’t undo it, though you can regenerate.

For sums and counts, use a normal formula: it gives the same result every time.

3. Asking an AI chatbot

This works for everyone. The trick is context. Copy this template:

I use [Excel / Google Sheets]. Column A has [salesperson names], column B [dates] and column C [amounts]. Data runs from row 2 to row 200. I want [Maria’s total sales in 2026]. Give me the formula and explain each part.

If your program isn’t in English, say which language it’s in: function names are often translated.

Examples to copy

I want… Formula
Percentage increase from A1 to B1 =(B1-A1)/A1 (format the cell as a percentage)
First name from C1 =LEFT(C1,FIND(" ",C1&" ")-1)
Total of column C when A is “Maria” =SUMIFS(C:C,A:A,"Maria")

How to check a formula is right

Microsoft says it plainly: review and verify anything Copilot creates. That applies to any AI.

  1. Test it on 3 or 4 rows and do the maths by hand.
  2. Look at odd cases: empty cells, zeros, names with extra spaces.
  3. Make sure the range reaches the last row.
  4. Ask: “When would this formula fail?”

And mind your data: don’t paste payslips, phone numbers or customer details into a chatbot. Use made-up examples with the same layout; the formula will be identical. See what not to tell ChatGPT, and to ask better, how to write good prompts.

Sources