Start practice

How to use AI in Excel

AI for Excel ·

You do not need to remember every Excel function to work fast. AI can turn a sentence like "total sales for the West region" into a formula, explain a formula someone else wrote, and suggest how to clean messy data. What it cannot do is see your sheet unless you describe it, so the skill is in describing the sheet and checking the result.

What AI does well in a spreadsheet

JobExample requestWhat to check
Write a formula"Total of column E where column C is West"The ranges and the condition
Explain a formula"What does this formula do, step by step?"That the explanation matches the cells
Fix an error"Why does this give #N/A?"Test the fix on a row you know
Plan a cleanup"How do I split full names into first and last?"Run it on a copy first
Suggest a summary"What would a manager want to see from this data?"Your own judgment about what matters
Write a description"Describe this chart in two sentences for a report"Numbers against the sheet

AI tools can be used in two ways here: a chat assistant next to your sheet, where you describe the data and paste the formula back, or an assistant built into the spreadsheet app, which can see the sheet. The method below works for both. The built in ones save the description step but still need the check.

Describe the sheet in one sentence

The most common reason an AI formula is wrong is that the AI guessed the layout. Give it three things: which column holds what, which rows have data, and the cell where the result goes.

Prompt
In Excel, column C has the region and column E has the order amount, rows 2 to 9. In cell H2 I want the total amount for the region "West". Give me one formula and explain it in one line.

Here is the kind of sheet that prompt describes:

RowA OrderB DateC RegionD ProductE Amount
210013/2/2026WestLaptop1200
310023/3/2026EastMonitor300
410033/5/2026WestMonitor250
510043/8/2026NorthLaptop1100
610053/9/2026EastLaptop1300
710063/12/2026WestKeyboard80
810073/15/2026NorthMonitor280
910083/18/2026WestLaptop1150

A good answer:

Formula
=SUMIF(C2:C9,"West",E2:E9)

Result: 2,680, which is 1,200 + 250 + 80 + 1,150. Checking takes ten seconds: the four West rows add up to the same number.

Examples

Explain a formula you inherited

Prompt
Explain this Excel formula in plain words, one line per part: =SUMIFS(E2:E9,C2:C9,"West",D2:D9,"Laptop")

The answer should say: add the amounts in E2:E9, but only where the region is West and the product is Laptop. On the sheet above that is 1,200 + 1,150 = 2,350. More in the SUMIFS guide.

Count with a condition

"How many orders were above $1,000?" becomes:

Formula
=COUNTIF(E2:E9,">1000")

Result: 4. See COUNTIF for the other ways to count.

Look up one value

"What is the amount of order 1005?" becomes =XLOOKUP(1005,A2:A9,E2:E9), which returns 1,300. The XLOOKUP guide covers the not found case.

Variants

  • Google Sheets uses the same functions for most everyday jobs. Say which app you use, because a few functions differ.
  • Older Excel versions may not have XLOOKUP. If you get #NAME?, tell the AI your version and ask for INDEX and MATCH instead.
  • Tables: if your data is an Excel Table, ask for a formula with structured references like Orders[Amount]. They do not break when you add rows.
  • Several conditions: say all of them in the prompt. "West and Laptop and after March 10" is one request, not three.

Common mistakes

The formula points at the wrong column

The AI guessed. Name the columns in the prompt, and compare the ranges in the formula with your headers.

The total looks right but is a little low

The range is one row short, often because you added data after describing the sheet. Check that the last row in the formula matches the last row of data. Excel formula not working lists this and five other typical mistakes.

The result is 0

Usually the condition does not match the cells exactly: "west" with a trailing space, a number stored as text, or the condition pointing at the amount column. Check one row by hand.

Pasting confidential data into a chat

To get a formula you need the layout, not the data. Describe the columns and use made up sample rows if the real ones are private.

Practice

The level "What AI can do in a spreadsheet" gives you jobs to sort into what AI does well, what to check and what to do yourself, and asks you to pick the right request for a situation. The next levels go further: ask AI for a formula, check it and fix it.

Practice: What AI can do in a spreadsheet

Free, in your browser, no sign up. Opens level “What AI can do in a spreadsheet”.

FAQ

Can AI write Excel formulas?

Yes, reliably for everyday jobs like SUMIF, COUNTIF, XLOOKUP and IF, as long as you say which columns and rows hold the data. Always test the result on a few rows you know.

Is there AI built into Excel?

Some versions of Excel and Google Sheets include an AI assistant. A separate chat assistant works too: describe the sheet, paste the formula back, and check it.

Is it safe to paste my spreadsheet into AI?

Not if it holds private or confidential data. For a formula the AI only needs the column layout and a few made up rows. Follow your company's rules for approved tools.

For learning only. Nothing here is legal, financial or tax advice. Sample AI replies in the practice are written in advance, and all names and numbers are made up.