Skip to content
TECHNOARTH Technology in practice.
AI

AI for Excel: how to get formulas, tables and analysis from ChatGPT, Copilot and Gemini

AI writes Excel formulas, explains existing ones, finds errors and builds analyses. Here’s how to describe your spreadsheet so the AI gets it right, ready-made prompts for VLOOKUP, SUMIFS, dates and text, and how to check the result.

You don’t need to memorize formulas: AI writes, explains and fixes them. The secret is describing the spreadsheet properly — which column holds each piece of data, where it starts and what result you want.

In this article
  1. Describe the spreadsheet
  2. Ready-made prompts
  3. How to check the result
  4. Copilot inside Excel
  5. FAQ

Describe the spreadsheet

Always say:

  1. The columns and what’s in each one (with the letter: A = Date, B = Customer…).
  2. Where the data starts (row 2, for example, with the header in row 1).
  3. The result you want and in which cell.
  4. Your Excel version (Microsoft 365, 2019…) and that you use English function names with commas between arguments — the US English Excel standard.
Prompt
I have a spreadsheet in Excel (Microsoft 365, US English). Columns: A = Date, B = Salesperson, C = Product, D = Amount. Data from A2 to D500.
In G2 I want the total sold by the salesperson typed in F2, only for September 2026.
Give me the formula with commas as separators and explain each part.

Ready-made prompts

Look up a value in another table:

Prompt
On the Orders tab, column A has the product code. On the Products tab, A has the code and B has the price.
In Orders!C2 I want the price for each code. Use XLOOKUP if available, or VLOOKUP, and show what to do when the code doesn't exist.

Explain an existing formula:

Prompt
Explain in simple language what this formula does, part by part, and whether there is any risk of error:
=IFERROR(INDEX(Products!B:B,MATCH(A2,Products!A:A,0)),"not found")

Find the error:

Prompt
This formula returns #N/A on some rows: [paste the formula]. The codes come from a system and sometimes have spaces.
What are the likely causes and how do I fix it?

See also what each error means in Excel errors and in VLOOKUP returning #N/A.

Data analysis:

Prompt
I've attached the sales spreadsheet. Show: total by month, the 5 customers who bought the most, the change compared to the previous year and 3 observations that stand out.
Tell me which columns you used in each calculation.

How to check the result

  1. Test the formula on 2 or 3 rows whose result you can work out in your head.
  2. Check that the ranges ($A$2:$A$500) cover all the data.
  3. Make sure the AI used the right separator (commas in US English Excel) and the English function names (SUMIFS, VLOOKUP, IF).
  4. For analyses, check the totals with a simple PivotTable.

Copilot inside Excel

With Copilot in Microsoft 365, you can ask for formulas and analysis right in the spreadsheet, without copying and pasting. See how to use Copilot in Word, Excel, Outlook and Teams.

FAQ

The formula the AI gave me shows up as text in the cell.

The cell is probably formatted as Text. See Excel formula not calculating.

The AI used function names from another language version or semicolons.

Ask: “rewrite it with the US English function names and commas as separators”.

Share

About the author

TECHNOARTH Editorial Team

The TECHNOARTH newsroom: technology tutorials, guides, comparisons and news produced with AI assistance and checked against manufacturers’ official sources.