Preparing your learning space...
100% through Introduction to Excel AI tutorials
Now that you understand the ideas, this tutorial gets you set up. You'll install AI for Excel, learn your way around the interface, and write your first real prompts.
LABS.GENERATIVEAI function from any cell. It takes a prompt and an API key:=LABS.GENERATIVEAI("Write a VLOOKUP to find price by product name", OPENAI_API_KEY)
Excel can also run Python code natively with the =PY(...) function. It's powerful but not required for AI basics — skip it until you're comfortable with prompts.
When you open Copilot, a panel appears on the right side of Excel.
The interface is just two things: a prompt box and an answer area. Everything else in Excel works exactly as before.
There's one formula for good prompts:
What you want + which data + what you want back.
Start simple. These all work on a normal sales sheet:
"What's the total sales in this table?"
"Show me the average order value by region."
"Create a pivot table of sales by product category."
"Explain why column D has #VALUE! errors."
Two habits that save time:
If the answer is wrong, don't rephrase wildly. Say what's off: "That included empty rows — only count rows with data." Refinement is normal, even for experienced users.
Prompt templates to copy. These patterns cover most day-to-day requests:
| Pattern | Example |
|---|---|
| Group and summarize | "Show me total sales by region." |
| Compare two things | "Compare North vs South performance." |
| Debug an error | "Why is column D showing #VALUE!?" |
| Visualize | "Create a bar chart of revenue by product." |
| Ask for the formula | "Write a formula to find the 2nd highest value in column B." |
Theory is one thing — here's a full run. Say your sheet looks like this:
| Product | Region | Units | Unit Price |
|---|---|---|---|
| Laptop | North | 12 | 800 |
| Laptop | South | 8 | 800 |
| Mouse | North | 40 | 25 |
| Mouse | South | 30 | 25 |
| Monitor | North | 5 | 300 |
| Monitor | South | 9 | 300 |
Prompt 1 — understand your data.
"What is the total revenue per product?"
AI multiplies Units × Unit Price and groups by product. Expected answer:
| Product | Revenue |
|---|---|
| Laptop | 16,000 |
| Mouse | 1,750 |
| Monitor | 4,200 |
Prompt 2 — drill down.
"Which region sold more units?"
North: 57, South: 47. North wins.
Prompt 3 — visualize.
"Create a bar chart of revenue by product."
AI inserts the chart for you. Done — the whole analysis took three prompts.
The point: you never typed a single formula. But you did check the numbers — Laptop 16,000 matches 12×800 + 8×800 — which is exactly how you should treat every AI answer.
| Problem | Fix |
|---|---|
| Copilot button is missing | You need Microsoft 365 + a Copilot license. Check the account you're signed into — it must be the licensed one. |
| Copilot works on the wrong data | Select the correct range first, or name the table in your prompt: "in the Sales table…" |
| The answer is wrong | Say what's off and refine: "use column C, not B." Cross-check the result manually once. |
| AI says it can't do that | Ask for the formula instead: "write me the formula for…" — AI can always give you the building block. |
| Copilot feels slow on big sheets | Large workbooks slow it down. Trim to the range you're analyzing. |
Try these on a small sheet you already have:
Save your progress and earn XP for completing tutorials.
Keep learning
Technology
Excel with AI
Lesson group
Introduction to Excel AI
Progress
100% complete