Home › Data analysis › Analyze a spreadsheet: how to do it with AI

Analyze a spreadsheet: how to do it with AI

Last checked

From official vendor pages; selected tasks also include dated logged-out free-plan trials. Report an error.

Beginner Risk: Medium 📊 Data analysis

Upload a CSV or Excel file and ask questions in plain words, like "which product grew fastest last quarter?", and the assistant calculates the answer and can draw a chart. It helps when you need a quick answer and don't want to build a pivot table.

Who it’s for: Anyone with a spreadsheet and a question: analysts, small business owners, managers and students.

Why medium risk: The numbers look authoritative even when the AI misreads a column or skips rows, and spreadsheets often contain customer or staff data.

Best pick

ChatGPT has the highest score on our published rubric (94/100) of the 4 tools listed for this task. Free plan includes limited file uploads; Plus ($20/month, verified) adds more capacity.

When it fits, and when it doesn’t

Good fit:

Not a good fit:

Step by step

  1. Remove columns you don't need, especially names, emails and IDs.
  2. Make sure the first row has clear column names, numbers are stored as numbers and dates use one format.
  3. Upload the file and ask the assistant to describe the columns, row count, missing values and duplicates before any analysis.
  4. Decide how to treat missing values (exclude, zero or flag) and tell the AI; don't let it choose silently.
  5. Ask one question at a time and request the method (filters, formulas or code) it used.
  6. Rebuild one answer yourself with a SUMIFS or pivot table and compare.
  7. Ask for a chart only once the numbers are right.

AI prompts to analyze a spreadsheet

Replace the [brackets] with your details. See all prompt examples

Check the data first
Here is a spreadsheet of [what it contains]. Before analysing, tell me: the number of rows, each column and its type, missing values, and anything that looks wrong (duplicates, odd dates, text in number columns).
Answer one question
Using this file, answer: [question]. Show the steps or code you used, the exact filters, and the final number. If the data can't answer it, say so.
Explain a change
Compare [period A] with [period B] for [metric]. List the 3 biggest changes, by how much, and which rows drive them. Then suggest one chart that shows it clearly.
Give me a formula to check it
Write the Excel or Google Sheets formula (SUMIFS, COUNTIFS or a pivot setup) that reproduces your answer, using my column names, so I can verify it in the original file.

Illustrative example

You paste

sales.csv: 1,240 rows, columns date, region, product, units, revenue.
Question: which region had the biggest revenue increase from Q2 to Q3?

A good answer looks like

Rows: 1,240; no missing revenue values.
Q2 to Q3 revenue change by region:
  West  +$18,400 (+22%)
  East  +$6,100 (+7%)
  North -$2,300 (-4%)
West grew most, mainly product "Kit B" (+$11,900).
Method: grouped by region and quarter of date, summed revenue.
Check formula: =SUMIFS(revenue, region, "West", date, ">="&DATE(2026,7,1), date, "<="&DATE(2026,9,30)), minus the same formula for Q2 (named ranges assumed).
Missing values: 6 rows with blank region, excluded and listed separately.

Illustrative example written for this guide, not output captured from a specific tool.

Check before you rely on it

Which tool to pick, and why

Reasons come from the capabilities, free-plan details and prices we've checked on official pages (separate from any dated trial above). Sources: chatgpt.com/pricing · claude.com/pricing · gemini.google/subscriptions/ · www.microsoft.com/en-us/microsoft-copilot/for-individuals

Common mistakes

Privacy tip

Delete or mask personal columns (names, emails, phone numbers, IDs) before uploading. In Claude, turn off "Help improve our AI models" in Settings → Privacy; in Gemini, turn off Keep Activity.

Claude (incl. Claude Code) setting · Google Gemini setting · ChatGPT (incl. Work & Codex) setting · Sources: privacy.claude.com/en/articles/12109829-how-do-i-change-my-model-improvement-privacy-settings · support.google.com/gemini/answer/13594961 · help.openai.com/en/articles/7730893-data-controls-in-chatgpt

Related tasks

Report an error on this page