Guides

How to Use AI to Analyze Spreadsheet Data (Excel, Google Sheets and CSV)

We took a 262-row sales export, asked an AI four questions, and screenshotted everything - from the first profile to the finished summary tab and chart. Here's what to ask, in what order, and how to tell when it's wrong.

The SheetAI Team9 min readUpdated October 10, 2026
Analyse spreadsheets with AI: a bar chart of spreadsheet cells rising to a highlighted peak. Cover image from the SheetAI blog.

Key takeaways

  • Excel, Google Sheets and CSV all end up in the same place: a grid with an AI next to it. Where the file starts only changes the first two minutes.
  • Profile before you analyse. One prompt tells you what a row is, whether the last month is complete, and whether your dates are secretly text.
  • Ask in order: describe, compare, explain, then verify. Every question earns the next one.
  • Use Ask mode for analysis and Act mode to build the output. Anything that deletes goes through Plan.
  • Ask for a reconciliation with every summary. Ours matched the source to the cent: $161,987.85.

Somebody sends you a spreadsheet and asks what it says. You could build pivot tables for an afternoon, or you could ask.

This is a walkthrough of the second option, done for real. We took a 262-row sales export, one row per order, January to August, dropped it into SheetAI, and asked it what a sensible analyst would ask. Every screenshot below is from that session. Wherever a step is different in Excel, Google Sheets or CSV, we say so.

Step 1: Get the file in front of the AI

This is the only step that depends on what kind of file you have, and it's shorter than you'd think.

Three cards side by side - Excel workbook, Google Sheet, CSV - each with a one-line route into SheetAI, all pointing to the same example question underneath: which region is growing fastest month over month, and which product is driving it.
Three file types, one conversation. The question at the bottom is the one we actually asked.
1

Excel (.xlsx, .xls, .xlsm)

Open the web app, click Open, pick the file. Sheets, formulas, formatting and merged cells come across as they are. When you're done, Export gives you an .xlsx back. Prefer to stay in Excel? The SheetAI Excel add-in puts the same chat in a task pane inside Excel on the web, Windows or Mac.

2

Google Sheets

Install the SheetAI add-on from the Workspace Marketplace, then Extensions → SheetAI → Open. It sits in the sidebar and reads whatever tab you have open. Nothing to export, nothing to re-import.

3

CSV

Same Open button in the web app. CSV is the format most likely to bring problems with it - dates that arrive as text, leading zeros stripped from IDs - so this is the file type where the next step matters most.

The SheetAI web app with a CSV of sales orders loaded into the grid: Order ID, Order Date, Region, Sales Rep, Product, Category, Units, Unit Price, Discount % and Revenue columns. The chat panel on the right is empty and set to Act mode, with Ask, Act and Plan toggles at the bottom.
Our export, thirty seconds after opening the file. 262 rows, ten columns, nothing done to it yet.

Step 2: Profile it before you ask it anything

The temptation is to go straight to the interesting question. Don't. The most common way an AI analysis goes wrong isn't the maths - it's that nobody checked what the data was before doing maths on it. Partial months invent declines. Text-typed dates make date filters silently return nothing. Duplicated rows double a total.

So the first prompt is deliberately boring. Switch to Ask mode, which reads and answers without touching a cell, and paste this:

Profile this sheet before I analyse it. What does one row represent, what date range does it cover, is the last month complete, and is anything blank, duplicated or stored as the wrong type? Keep it short.

The orders sheet on the left, and on the right the AI's profile of it: one row is one order identified by Order ID; the date range is January 2 to August 26, 2026; the last month is not complete, August is partial; no blanks across 262 rows; no duplicate Order IDs; and Order Date is stored as ISO text rather than a true date. Cost one credit, took 17 seconds.
One credit, 17 seconds. The last line is the one that would have bitten us: Order Date is stored as text, not as a date.

Look at what it found. August is partial - so any "August is down" finding would have been an artefact of the export date, not the business. And the date column is text, which is normal for a CSV and invisible to the eye, but it means any formula that compares dates will quietly compare strings instead. Fix it before you build anything on top.

Step 3: Ask in the right order

There's a sequence to good analysis questions, and it's the same whether a person or a model is answering them. Describe what's there. Compare it across the dimensions you care about. Only then ask why. And before any number leaves the sheet, ask to see the working.

Four numbered cards: 1 Describe (what's in here?), 2 Compare (how does X differ from Y?), 3 Explain (why did that happen?), 4 Verify (show me the formula). Each has a one-line reason and an example prompt in a quote box.
Skip to number 3 and you'll get a confident story built on numbers nobody checked.

Here's the compare-and-explain question we asked, still in Ask mode:

Which region is growing fastest month over month, and which product is driving it? Show the numbers behind your answer.

That last sentence isn't decoration. Without it you get a paragraph. With it you get a table you can check.

The AI's answer in the chat panel: a table of July revenue, August revenue and month-over-month change for North (+$2,183.95, +107.3%), West (+$4,966.35, +44.6%), South (-7.7%) and East (-95.4%). Below it, the product driver for North is Floor Lamp: $0 in July, $1,530 from 14 units in August, 70.1% of North's increase. A footnote says August data runs through August 26, so it is a partial month.
North wins on percentage, West wins on dollars, and it says which - then names the product and how much of the jump it explains. Note the footnote: it carried the partial-month caveat forward from the profile without being asked.

Two things worth noticing. First, "fastest growing" is ambiguous - percentage or dollars? - and instead of picking one silently it showed both and said which it used. Second, it didn't just name a product; it said Floor Lamp explains 70.1% of North's increase and listed the next three contributors. That's the difference between an answer and a claim.

It reasons out loud, too. Above every answer there's a collapsible Thinking section where you can watch it decide between percentage and dollar growth, notice the partial month, and check its totals. You don't have to read it. But when an answer surprises you, it's the first place to look.

How to write the prompt

Most bad AI analysis comes from a prompt that says "analyse this" and nothing else. The model can count rows; it can't know what they mean, what you're deciding, or what shape of answer you'll actually use. Give it four things.

An example prompt with four colour-coded parts - context (this is a sales export, one row per order line, January to August), one question (which region is growing fastest and which product is driving it), the shape of the answer (a table of revenue by region and month, then two sentences), and guardrails (treat August as partial, don't change anything in the sheet). A red box says to leave out the answer you're hoping for.
Context, one question, the shape of the answer, and the traps you already know about. Leave out the answer you're hoping for.
  • Context. What one row is, and what period the data covers. Ten words that stop it counting order lines as orders.
  • One question. Not "insights". A question with an answer you'd recognise if you saw it.
  • The shape of the answer. A table, a chart, two sentences, a new tab. Say it and you won't have to ask twice.
  • Guardrails. Partial months, rows to exclude, "don't change the sheet". Everything you'd tell a new analyst on their first day.

Step 4: Build the output - and check it

Once you know what the answer is, you usually want it in the sheet: a summary tab, a chart, something you can send. That's Act mode. Same chat, but now it writes.

We asked for a Summary tab: revenue per region for each month, a total column, currency formatting, and a line chart of monthly revenue per region to the right of the table. And one more sentence at the end: confirm the summary total matches the orders sheet.

A Summary tab in SheetAI: a bold header row, months January to August 2026 down the side, East, North, South and West revenue columns, and a highlighted Total column, all formatted as currency. To the right, a line chart titled Monthly Revenue by Region with West climbing steeply from June. In the chat panel, the AI confirms the summary total of $161,987.85 matches the orders sheet grand total.
Note the last line of the chat: it reconciled the summary total against the source column, and the numbers match. Always ask for that check.

West's climb from June is the first thing you see, which is exactly the finding from Step 3, now in a form you can send. Every Act-mode change lands with an Accept / Reject bar, so if you'd like it laid out differently, one click puts it all back.

Ask, Plan or Act?

The three modes are the same in the web app and the Google Sheets add-on, and the choice is simpler than it looks.

Three cards: Ask - reads, answers, touches nothing; Plan - writes the plan and waits for you to approve, edit or cancel; Act - just does it, with an Accept / Reject bar. Each lists what to use it for.
Analysis lives in Ask. Output lives in Act. Anything that deletes goes through Plan.

Analysis questions - all of Steps 2 and 3 above - belong in Ask. Nothing moves, so you can be as exploratory as you like. Building the summary tab is Act. And if the request involves deleting rows, restructuring, or anything on a sheet you can't easily get back, use Plan: it writes out every step first and waits for you to approve.

Where each file type is different

Google Sheets

Everything above works the same, but you never leave the tab. The add-on reads the sheet you have open, answers in the sidebar, and writes into the same grid. It also logs every read and write as it goes - "read cells E1:G14", "updated G3" - so you can audit what it touched.

The SheetAI sidebar inside Google Sheets, in Ask mode, next to a monthly MRR table. The sidebar lists top growth months with net new MRR figures and where momentum slowed, without changing any cell in the sheet.
Ask mode in the Google Sheets add-on: the answer is in the sidebar and the sheet is exactly as you left it.

One Sheets-specific tip: if your data is a live import (a form, a connected source), say so in the prompt. "This sheet updates daily" changes the advice from "paste values" to "write formulas that keep working".

Excel

Excel files carry the most baggage: multiple sheets, formulas that reference each other, merged headers, hidden columns. All of that survives the upload, and it's worth telling the AI which sheet is the source of truth if there's more than one ("analyse the Data tab, ignore the Dashboard tab, it's derived"). When you're done, export to .xlsx and the summary tab and chart come with it. If the workbook is already full of formulas, ask it to explain them before it changes them.

CSV

CSV has no types, so everything arrives as text and the import guesses. Dates are the usual casualty, and so are IDs with leading zeros and anything that looks like a number but isn't. The profile prompt in Step 2 catches all three. If it flags a problem, fix the column first - it's one more prompt, and every formula downstream depends on it.

Prompts you can paste

The ones we use most, in the order we use them. Swap the column names for yours.

WhenModePrompt
FirstAskProfile this sheet. What is one row, what date range, is the last month complete, is anything blank, duplicated or the wrong type?
DescribeAskGive me totals and averages for every numeric column, and the top and bottom five rows by Revenue.
CompareAskCompare Revenue by Region for each month. Flag the biggest month-over-month swing and say whether it's percentage or dollars.
ExplainAskWest jumped in June. What changed - product mix, unit volume, or discounting? Show the numbers.
Sanity checkAskWhat in this data would you not trust, and why?
BuildActAdd a Summary tab: revenue by region and month, total column, currency format, line chart beside it. Confirm the totals match column J.
Write-upAskWrite a five-bullet summary for someone who hasn't seen the data, with a caveat about the partial month.

Where you come in

Some context lives outside the file: whether refunds are in the export, that the East region was reorganised in May, or that Revenue is net of discount in one system and gross in another. Tell the AI in a sentence and it builds that into every answer. Two minutes with whoever sent the file is the best investment in any analysis.

What it will do is the part that used to take the afternoon: the profiling nobody does thoroughly by hand, the comparisons across every dimension, the summary tab with the chart, and - if you ask - the reconciliation that proves the summary matches the source. That leaves you with the part that needs a human: deciding what the numbers mean, and what to do about them.

Try it on your own export

Open a file, paste the profile prompt from Step 2, and see what it finds before you analyse anything.

Open SheetAI

Frequently asked questions

Can AI analyze an Excel spreadsheet?

›
Yes. Open the .xlsx in SheetAI's web app and ask questions in plain English - which region is growing, what's driving it, what looks wrong. Sheets, formulas and formatting survive the upload, and you can export the result back to .xlsx. If you'd rather stay in Excel, the SheetAI Excel add-in adds the same chat as a task pane in Excel on the web, Windows or Mac.

How do I analyze Google Sheets data with AI?

›
Install the SheetAI add-on from the Google Workspace Marketplace, open it from the Extensions menu, and ask in the sidebar. It reads the tab you have open, answers there, and can write summaries, formulas and charts into the same sheet. Every cell it reads or changes is listed as it goes.

Can AI analyze a CSV file?

›
Yes, and it's the file type where a profiling step matters most. CSV has no data types, so dates and IDs often arrive as text. Ask the AI to profile the file first - what a row is, the date range, whether anything is the wrong type - and fix the columns it flags before you run any analysis.

What should I ask an AI first when analyzing a spreadsheet?

›
Ask it to profile the data: what one row represents, what period it covers, whether the last month is complete, and whether anything is blank, duplicated or stored as the wrong type. This catches partial months and text-typed dates, which are the two most common reasons an analysis is wrong.

How do I know if the AI's analysis is correct?

›
Ask for the numbers behind every answer, and for a reconciliation against the source when it builds a summary ("confirm the totals match column J"). In our walkthrough, the summary total matched the orders sheet to the cent.

Will the AI change my data when I ask it a question?

›
Not in Ask mode, which reads and answers without touching a cell. Act mode does make changes, but every edit arrives with an Accept / Reject bar so you can undo the lot. For deletions or restructuring, use Plan mode, which writes out every step and waits for your approval before doing anything.

Is this better than pasting my data into ChatGPT?

›
The difference is where the answer lands. A chat window gives you a paragraph; a spreadsheet AI writes the table, the chart and the formulas into the sheet, reads the actual cells rather than a pasted sample, and lets you check its work against the source. And you're not copying a sample of your data into a chat box and hoping it was representative.

Written by The SheetAI Team

We build SheetAI, an AI spreadsheet assistant that reads your data, writes the formulas, and shows its work. We write about the spreadsheet problems we keep running into.

Get started

Put this to work on your own spreadsheet

Upload a file, ask in plain English, and watch SheetAI write the formulas into the sheet, with every step visible so you can check the work.

All articles

Works in your browser and Google Sheets · Setup in 30 seconds