Analyse a spreadsheet and chart it with AI

Upload a spreadsheet to ChatGPT, Gemini in Sheets or Claude, get charts and insights in plain English, and check every number against the raw data.

Repeatable, human-guided workflowBased on official documentation; not tested end to endReviewed 19 Nov 2026
The practical answer

Clean the sheet first: one header row, one record per row, no merged cells. Then ask a specific question ("Which product's monthly revenue fell most since June?"), not "analyse this". In ChatGPT, upload the file and name the columns, grouping and chart type you want. In Google Sheets, use Gemini's side panel to create charts and "Analyze for insights". Claude can work from an uploaded file too. Before you share anything, recheck the headline numbers with a pivot table or formula. AI finds patterns fast; you confirm they're real.

Assisted workflow — not unattended automation
The scenario

What you are trying to accomplish

You have a sales export with 2,000 rows: date, product, region, channel, units and revenue. Your manager asks why revenue dipped last quarter and wants a chart for Monday's meeting. You can't spend a day building pivot tables. The workflow turns the question into a precise analysis request, gets charts and explanations from AI, and then checks the key numbers independently, because a wrong filter or a misread column can produce a confident but false story.

Result to aim for

Three to five charts that answer the question, a short written explanation with the numbers behind each claim, and a verification note showing the headline figures were rechecked with a pivot table or formula.

Who uses this

How different people use this task

Small business owners

Monthly sales by product and channel, best and worst sellers, and seasonality, from a shop or POS export.

Marketers

Campaign results by channel: cost, clicks and conversions, with charts for a weekly report. Check attribution assumptions.

Managers

Team metrics such as tickets, response times or project hours, turned into trends for a review meeting.

Freelancers

Income by client and month, and time spent versus revenue per project, to set better rates.

Operations and e-commerce

Stock levels, returns and delivery times, highlighting outliers worth investigating.

Students and researchers

First-pass exploration of a dataset. Use proper statistical methods and tools for anything you'll publish.

Prepare these inputs

  • A spreadsheet (.xlsx, .xls, .csv) or Google Sheet you're allowed to share with an AI tool
  • One clear business question, written down before you start
  • A data dictionary: what each column means, units and currency, and any known quirks
  • Sensitive columns (names, emails, IDs) removed or anonymised
  • Basic spreadsheet skills to build one pivot table for checking
Why each tool is here

Recommended workflow stack

These are task-specific roles based on documented capabilities, not a tested leaderboard. You can often substitute another approved product with equivalent features.

ChatGPTOptional

Upload the file, run the analysis, build charts and explain results, with the method shown so you can check it.

OpenAI's data analysis help lists support for .xls, .xlsx and .csv files, interactive bar, line, pie and scatter charts, and warns that it may choose a method or chart you didn't intend unless you specify columns and chart type.
GeminiOptional

Inside Google Sheets: create charts from a prompt and use Analyze for insights to find trends and patterns without leaving the sheet.

Google's help lists data analysis, insights and chart creation among Gemini in Sheets capabilities, and a 2025 update made generated charts editable. Requires a plan with Gemini in Workspace.
ClaudeOptional

Alternative for analysing uploaded files and writing a clear explanation of what the data does and doesn't show.

Useful for turning analysis results into a careful written summary with caveats. Use the assistant you already have.
Choose how to do it

2 documented methods for this task

These are different routes to the same outcome, not separate duplicate articles. Availability and permissions must be checked in the products themselves.

01Upload to ChatGPTAI-assisted

Best for one-off analysis of an exported file: upload, ask a precise question, get charts and a method you can check.

ProductsChatGPT

Before you start

  • A tidy .xlsx, .xls or .csv file
  • A specific question
  • Column definitions

Method-specific steps

  1. Describe the data

    Ask ChatGPT to list columns, data types, row count, date range and missing values before any analysis.

  2. Ask precisely

    Name the columns, grouping, filters and chart type you want.

  3. Ask for the method

    Request the steps and filters used, so you can reproduce the key numbers.

  4. Verify

    Recheck the headline figures with a pivot table or formula in your spreadsheet.

Important limitations

  • It may pick a method or chart type you didn't intend; be specific.
  • Only bar, line, pie and scatter charts are interactive; others are static images.
02Gemini inside Google SheetsAI-assisted

Best when the data already lives in Google Sheets and charts must stay linked to it. Use the Gemini side panel for charts and insights.

ProductsGemini

Before you start

  • Google Workspace or Google AI plan with Gemini in Sheets
  • Data in a Google Sheet

Method-specific steps

  1. Open Gemini in Sheets

    Open the Gemini side panel in your sheet.

  2. Analyze for insights

    Use the insights option or ask a specific question about trends.

  3. Create a chart

    Prompt with exact axes, for example "chart with date on the x-axis and revenue on the y-axis".

  4. Check the chart's data range

    Confirm the chart uses the right range and filters.

Important limitations

  • Some chart types may still be produced as images that aren't linked to your data.
  • Google notes complex analysis is most consistent in smaller files, below 1 million cells.
Follow the process

Step-by-step workflow

Each step shows what to do and what result to expect. Human checks are explicitly marked.

  1. 01

    Write the question before opening the data

    Human approval / review

    Write one sentence your analysis must answer, and who it's for. "Why did Q3 revenue fall, and which product or region drove it?" is a good question. "Analyse my sales" is not. A clear question decides which columns matter, which chart to use and when you're done. Note what decision depends on the answer.

    Expected outputOne written question and the decision it informs.
  2. 02

    Clean and anonymise the sheet

    Make sure there's one header row with clear names, one record per row, no merged cells, no totals rows mixed into the data, and consistent dates and currencies. OpenAI's help recommends descriptive headers in the first row and no multiple unrelated tables on one sheet. Remove or replace names, emails and customer IDs before uploading.

    Expected outputA tidy, anonymised table that a stranger could understand from the headers.
  3. 03

    Ask the AI to describe the data first

    Before any analysis, ask for the row count, columns and data types, date range, missing values and obvious outliers. Compare the row count and date range with what you expect. This catches truncated exports, wrong files and columns the AI misread, before they turn into wrong conclusions.

    Expected outputA data description that matches what you know about the file.
  4. 04

    Ask precise analysis questions

    Ask one question at a time and name the columns, grouping, filters and time period: "Group revenue by month and product for July to September; show a line chart with one line per product." Ask for the steps it took. If the AI picks a different method or chart, tell it exactly what you want; OpenAI's help notes this happens when requests are vague.

    Expected outputCharts and tables that directly answer each part of your question, with the method stated.
  5. 05

    Explore inside Google Sheets (if your data lives there)

    Open the Gemini side panel, use Analyze for insights to surface trends and correlations, and ask for charts with explicit axes. Charts created this way can be editable and update with the data, though Google notes some chart types may still be produced as images. Check each chart's data range.

    Expected outputCharts in your Google Sheet linked to the right data range.
  6. 06

    Verify the headline numbers yourself

    Human approval / review

    Pick the three numbers your conclusion depends on, for example Q3 revenue, the drop for the worst product and its share of the total. Recalculate them with a pivot table or SUMIFS formula in your own spreadsheet. If they don't match, ask the AI which filters it used. Also ask: is the change bigger than normal month-to-month variation? Could something else explain it, like a price change, a missing week of data or a returns policy?

    Expected outputThe three headline numbers confirmed independently, and alternative explanations considered.
  7. 07

    Write the story with honest caveats

    Ask for a short explanation for your audience: what happened, the evidence (with numbers), what it might mean, and what the data can't tell you. Correlation isn't causation: "sales fell when we cut ads" doesn't prove the cut caused it. Keep charts simple: one message per chart, a clear title stating the finding, labelled axes.

    Expected outputA one-page summary with three to five charts and clearly stated limitations.
Copy, paste, adapt

Copy-ready prompts for each step

Replace the [brackets] with your details. Each prompt asks the AI to mark uncertainty instead of guessing.

Describe the data before analysing

Works in any AI assistant. Replace the [brackets].
Before analysing anything, describe the attached file: number of rows, each column with its data type and what it seems to contain, the date range, missing or blank values per column, duplicate rows, and any obvious outliers. Do not draw conclusions yet. Here's what the columns should mean: [paste data dictionary].

If the row count or date range is wrong here, stop. Everything after this would be wrong too.

Answer a specific question with charts

Works in any AI assistant. Replace the [brackets].
Question: [your question]. Use only these columns: [list]. Filter: [period / segment]. Group by: [e.g. month and product]. Create: (1) a [line/bar] chart of [metric] by [dimension], (2) a table with the exact values behind the chart. Then list the steps and filters you used so I can reproduce the numbers in a pivot table. If the data can't answer the question, say so.

Find what changed and why

Works in any AI assistant. Replace the [brackets].
Compare [period A] with [period B] for [metric]. Break the change down by [product / region / channel] and show which segments contributed most to the difference, in absolute and percentage terms. Then list possible explanations visible in the data (price, volume, mix, missing data) and what additional data would be needed to confirm each. Don't present a cause as proven.

Write the summary for my audience

Works in any AI assistant. Replace the [brackets].
Write a one-page summary for [audience] answering: [question]. Structure: what happened (2 sentences), the evidence (3 bullets, each with the exact number), what it might mean, what the data can't tell us, and a recommended next step. Use only numbers from the analysis above. Plain English, no jargon.

How to confirm it worked

  • The AI's row count and date range match your source file.
  • The three headline numbers were recalculated with a pivot table or formula and match.
  • Every chart has a clear title, labelled axes and the correct data range.
  • Each claim in the summary cites an exact number from the analysis.
  • Alternative explanations were considered, and causation isn't claimed without evidence.
  • Personal data was removed before uploading, and sharing the data with an AI tool is allowed by your policy.

When something goes wrong

The AI's numbers don't match your pivot table.

Ask exactly which rows, filters and columns it used. Common causes: totals rows in the data, text-formatted numbers, mixed currencies or a wrong date filter.

The analysis answers a different question.

Restate the question, name the columns and grouping, and specify the chart type. Vague requests lead to the AI choosing its own method.

Dates or numbers were read as text.

Fix formats in the spreadsheet first (one date format, numbers without currency symbols in cells) and re-upload.

A dramatic trend turns out to be missing data.

Always run the describe-the-data prompt first and check for gaps in the date range before reading trends.

Gemini's chart isn't linked to the sheet.

Google notes some chart types may still be produced as images. Ask for a standard chart type or recreate it with Insert > Chart using the same range.

The file is too big or slow.

Filter to the columns and period you need before uploading. Google says complex analysis in Sheets is most consistent below 1 million cells.

What the workflow does not guarantee

  • This is an assisted workflow. AI explores and charts; a person verifies the numbers that drive decisions.
  • AI analysis can be confidently wrong when data is messy, ambiguous or incomplete.
  • Patterns aren't proof of cause. Use proper experiments or statistics for important causal claims.
  • Don't upload personal, confidential or regulated data to tools your organisation hasn't approved.
  • Feature availability for ChatGPT data analysis and Gemini in Sheets depends on your plan.
Good to know

Questions about this workflow

Important differences between supported methods, permissions and what remains under human control.

Can ChatGPT analyse Excel files?

Yes. OpenAI's data analysis help lists .xls, .xlsx and .csv files, plus charts. Bar, line, pie and scatter charts can be interactive; other types come back as images. Name the columns and chart type you want for best results.

Can Gemini make charts in Google Sheets?

Yes, with a plan that includes Gemini in Workspace. Google's help lists chart creation and data insights, and a 2025 update made generated charts editable and linked to the sheet, though some chart types may still be images.

Is AI data analysis accurate?

It's often right and sometimes confidently wrong, usually because of messy data or a misunderstood request. Always recheck the numbers your conclusion depends on with a pivot table or formula.

How do I prepare data for AI analysis?

One header row with clear names, one record per row, no merged cells or totals rows, consistent date and number formats, and personal data removed. Add a short description of what each column means.

Which is better for spreadsheets: ChatGPT, Gemini or Claude?

If your data is in Google Sheets, Gemini keeps charts linked to the sheet. For a one-off exported file, ChatGPT's data analysis is convenient. Claude is good at writing up careful explanations. Any of them needs the same verification step.

Can AI tell me why my sales dropped?

It can show what changed and where: which products, regions or channels. It can suggest explanations, but proving a cause usually needs more data or a test. Treat AI explanations as hypotheses.

Is it safe to upload business data?

Remove personal and confidential data first, use a plan with data controls your organisation approves, and check whether chats are used for model training.

Documentation and verification

Based on official documentation; not tested end to end. These links establish documented features, not a claim that we executed the workflow.

Read our editorial process

Related step-by-step fixes

Explore more in Excel and data

Try "summarize a PDF", "Excel formula", "subtitles" or "blurry photo".