InfiniSynapse Practical Tutorial

ChatGPT Data Analysis: Upload, Prompt, and Verify

Upload a CSV or Excel file, confirm the columns, run the analysis, and check the number before you share it.

AuthorInfiniSynapse Research, product and analytics team
Published2026-06-28 · Last verified 2026-09-23 · Next review 2026-12-23
Evidence baseOpenAI data-analysis help article, File Uploads FAQ retrieved 2026-09-17, and hands-on testing on CSV and XLSX files.
Disclosure: This page is published by InfiniSynapse, which builds an enterprise AI data analyst that connects to databases and files. We describe ChatGPT honestly, including where it wins outright. The decision to switch to a connected data agent is framed so you can apply it to any vendor — including against us.
ChatGPT data analysis is file analysis inside ChatGPT. You upload a CSV or Excel file, ask in plain language, and ChatGPT writes and runs Python in a sandbox. You get a table, a chart, or a downloadable file. Confirm column names and row counts before you use the number.
TL;DR

Direct answer: how ChatGPT data analysis works

Attach a CSV or Excel file in the chat and ask one question with the verb, the grain, the filter, and the output you want. ChatGPT writes Python in a sandbox, runs it, returns a table or chart, and lets you download the result. Confirm column names and row counts before trusting later steps.

What ChatGPT data analysis is

ChatGPT data analysis is the current name for that sandbox. OpenAI previously called it Advanced Data Analysis, and before that Code Interpreter. The model writes and executes Python in a virtual machine that includes pandas, numpy, matplotlib, scikit-learn, and openpyxl. When you upload a file, ChatGPT can read it, transform it, plot it, and return a download link to the result. The product behavior is documented in OpenAI’s Data analysis with ChatGPT help article.

Three distinctions matter. First, ChatGPT is doing analysis through code, not through a vector lookup — the numbers it returns come from real Python, not from a guess. Second, the sandbox is ephemeral: each session resets, files do not persist by default, and the model cannot reach your private network. Third, ChatGPT applies an interpretation step on top of the code output, which is where most subtle errors enter — the code ran, but the model summarized it wrong. Compare this to a connected AI data analyst that runs against your live sources with a stored evidence trail.

Diagram of the five-step ChatGPT data analysis workflow — upload file, ask ChatGPT to describe the data, confirm assumptions, run the analysis, then export the verified result

How to start ChatGPT data analysis

Open a chat on chatgpt.com and attach the file in the composer. Current ChatGPT runs data analysis when you upload a spreadsheet or ask for a calculation on that file. There is no separate Code Interpreter switch to flip. Free accounts can upload about 3 files a day. Paid plans raise that quota, up to about 80 files in 3 hours, which OpenAI may lower at peak. Those figures are from OpenAI’s File Uploads FAQ, retrieved 2026-09-17. The operating ceiling after the quota — live warehouses, shared definitions, audit — is on ChatGPT data analysis limits.

ChatGPT data analysis on CSV and Excel

ChatGPT data analysis is reliable when the sheet is already a table. Put descriptive headers in row 1, keep one record per row, and use plain column names. Name the sheet when the workbook has more than one. Merged cells, hidden rows, and a header that is not in row 1 are the usual reasons a total is silently wrong. CSV and Excel files are capped at about 50MB, even though other file types can reach 512MB. Sample or split a larger export on your machine before you attach it. A multi-sheet join you can copy is Example A below.

The five-step workflow that works

Step 1 — Prep the file before upload

Rename the file to something descriptive. Strip personally identifiable fields you do not need (names, emails, full addresses). If a spreadsheet is above the roughly 50MB CSV/Excel cap, sample it locally first — a stratified sample almost always beats a failed upload. Save Excel files with a single sheet selected unless you actually need cross-sheet joins. The upload itself is then a drag-and-drop into the prompt box.

Step 2 — Ask ChatGPT to describe the file

Before any analysis, paste a single prompt: "Describe this file. List columns, types, row count, null rate per column, and the first five rows." This forces a schema-style snapshot you can trust. If ChatGPT reports column names that do not match what you remember, stop — the file is the wrong file, or the encoding is wrong, or the header row is in the wrong place. Catching this in step two saves hours of wrong-answer debugging.

Step 3 — Confirm assumptions before analysis

Now ask it to state its assumptions for the question you want answered. "Before you run the analysis, list every assumption: which column is the date, which is the revenue, which rows you will exclude as test or refund rows, and which timezone you will normalize to." The model will surface the things it would have guessed silently. Confirm or correct them in one short reply, then proceed.

Step 4 — Run the analysis

Ask the question with the four ingredients: the verb (count, sum, group, forecast), the grain (per day, per region, per cohort), the filter (date range, included segments), and the output (table, chart, CSV). ChatGPT writes Python, runs it, and returns inline output plus a code block. Read the code, not just the answer. A 30-second skim of the dataframe filter line catches most logic errors.

Step 5 — Export and verify

Ask for the verified output as a downloadable file: an XLSX with multiple tabs, a CSV per cohort, or a PNG chart. Before pasting the number anywhere that matters, re-run the same logic on the source data — either in SQL, in a notebook, or in a connected agent — and compare. Two independent paths to the same number is the only safe pattern for board-deck-grade numbers.

ChatGPT data analysis in Excel and Google Sheets

Uploading a file is one path. ChatGPT also sits in a sidebar inside Excel and Google Sheets when the workspace add-in is turned on. The sidebar edits the workbook you already have open: formulas, cleanup, and a first-pass chart, reviewed in the sheet. Use the upload path for a CSV or a one-off export. Use the sidebar when the table should stay in the workbook. Install steps and plan requirements are on OpenAI’s Analyzing data with ChatGPT guide. A scored comparison of in-grid add-ins is in AI Excel data analysis tools.

ChatGPT data analysis prompts

Pattern 1 — The describe-first prompt

"Before answering, describe this file: columns, types, null rate per column, row count, first five rows, last five rows. Then wait for me to confirm before running any analysis." This is the single most useful pattern. Use it on every new file.

Pattern 2 — The verb-grain-filter-output prompt

"Compute monthly revenue grouped by product category for 2025. Exclude refund rows (negative amount) and internal test orders (customer email ending in @example.com). Return a CSV plus a line chart in matplotlib." Pinning down four ingredients keeps the answer constrained.

Pattern 3 — The state-assumptions prompt

"List every assumption you will make before running the analysis: column choices, filters, timezone, currency conversion, deduplication rule. Wait for confirmation before running code." This is the single best way to catch silent misinterpretation.

Pattern 4 — The two-path verification prompt

"Compute weekly active users two ways: once using the events table grouped by user_id, and once using the sessions table grouped by user_id. Show both numbers and explain any difference." Two-path checks find the kind of bugs single-path analysis hides.

Pattern 5 — The explainable-output prompt

"Return the answer with three sections: (1) result table, (2) the exact Python code you ran, (3) the assumptions and limitations a reviewer should know." This produces something close to an audit trail for a one-off file. It is still weaker than what a connected agent gives you, but far stronger than a bare answer.

ChatGPT data analysis examples

Example A — Cleaning a messy Excel export

Upload an XLSX with three sheets — raw_orders, refunds, customer_segments. Prompt: "List sheet names. Show first ten rows of each. Then join orders to customer_segments on customer_id, exclude any order_id that also appears in refunds, and group total order_value by segment for Q4 2025. Return an XLSX with tabs for raw_join, filtered_join, and segment_summary." Ask for the code, eyeball the join key, download.

Example B — Quick exploratory analysis of a CSV

Start from a pageviews export that fits the spreadsheet cap, or sample a larger file locally until the CSV is under about 50MB. Prompt the describe-first pattern, then ask: "Find the top ten landing pages by sessions for May 2026. Then for each, compute bounce rate and average time on page. Return one table sorted by sessions desc, one bar chart of bounce rate, and the Python you ran." This is a typical hour of analyst work compressed into a few minutes inside the sandbox. Keep the downloaded script so you can rerun the same filters outside the chat.

Example C — Forecasting from a time series file

Upload a daily revenue CSV for the last two years. Prompt: "Fit a SARIMA model on daily revenue with weekly seasonality. Hold out the last 30 days as a test set. Return the forecast versus actual chart, MAPE on the holdout, and the model parameters you chose." ChatGPT can do this in the sandbox. Whether you trust the model is a different question — always validate with a second method before forecasting in public.

Charts, file caps, and what to verify

ChatGPT can return bar, line, pie, and scatter charts as interactive charts. Other chart types usually come back as a static image. Ask for the chart type when the first drawing is the wrong one. The Python environment cannot call the public web or an external API, so any series that depends on a live source has to be in the file you attach. Scanned PDFs and picture tables are a weak source for exact values; upload a spreadsheet when the number has to match.

The byte caps below are OpenAI’s published upload limits, retrieved 2026-09-17 from the File Uploads FAQ. What happens after the quota — live warehouses, shared definitions, an audit trail — is the subject of ChatGPT data analysis limits.

LimitSymptomWorkaroundWhen to switch
512MB per fileThe attach fails before analysis startsSplit the file, or query the source in placeWhen the question needs the full table, not a slice
About 50MB for CSV and ExcelA spreadsheet that is under 512MB still will not attachAggregate or sample locally, then upload the extractWhen the sample no longer answers the question
Free: about 3 uploads a day. Paid: up to 80 files / 3 hoursThe composer stops accepting filesWait for the quota window, or change planWhen the same question repeats every week
No live database accessYou manually export CSV every weekSchedule the export, use a connectorWhen the question repeats more than weekly
Ephemeral sessionFiles disappear, code lost between chatsSave the code, paste in a notebookWhen the analysis becomes a recurring report
No persistent business contextYou re-explain what "active user" means in each chatMaintain a definitions document, paste at startWhen teammates need the same definitions too
No audit trailReviewer asks "how did you compute this"Use Pattern 5, save the chatWhen the answer ships to a board or regulator
Statistical claims unverifiedOutput looks reasonable but is wrongTwo-path verification, run on sourceWhen the cost of being wrong exceeds rerun cost

ChatGPT is fast and cheap on files you control. It is not the right tool for a number that has to be true on Monday morning.

Alternatives and when to switch

The honest map of alternatives groups by what the analysis is connected to. ChatGPT covers the "files I uploaded" cell. Notebook tools — Jupyter, VS Code, Cursor — cover "files plus my local env." BI dashboards cover "a pre-modeled metric in a connected source." A connected AI data analyst covers "any source, any question, with an audit trail." The category map is GPT data analyst alternatives.

512MB
OpenAI’s per-file upload cap. CSV and Excel are tighter, about 50MB. Source: File Uploads FAQ, retrieved 2026-09-17.
5
Prompt patterns that consistently raise output quality — describe-first, verb-grain-filter-output, state-assumptions, two-path verification, and explainable-output.
2025-2026
The window where connected AI data analysts moved from research demos to shipping enterprise tools with bound knowledge bases per source.

Where InfiniSynapse fits

InfiniSynapse is an enterprise AI data analyst that connects to PostgreSQL, MySQL, Snowflake, Supabase, S3, and CSV files at the same time. Unlike a one-shot sandbox, it pairs each source with a bound knowledge base of business definitions, runs through a Plan mode you can review before execution, and stores an evidence trail per result. For one-off analysis on a single file you uploaded by hand, ChatGPT is the right choice. For recurring questions across databases that must be defensible — the kind a CFO or auditor will read — a connected agent is the structural fit. The companion AI database query pillar explains the connected pattern in depth.

Common mistakes to avoid

When ChatGPT is the right tool

  • One-off exploration on a CSV or Excel file you have on disk
  • Quick reshape, dedupe, or pivot of messy export
  • Sketch of a statistical model before notebook implementation
  • Charting a small dataset for a deck
  • Learning a new analysis technique on toy data

When it is the wrong tool

  • Recurring weekly or monthly report on a live database
  • Numbers shared with regulators, board, or finance
  • Cross-source joins across databases plus files plus warehouses
  • Shared business definitions used by a team
  • Anything requiring an audit trail per result

Outgrowing the sandbox? Try a connected AI data analyst.

Connect your databases and files read-only, seed a small knowledge base of business definitions, and run the same question you have been retyping in ChatGPT every week. Compare the plan, the SQL, the verification, and the stored evidence trail.

Try InfiniSynapse online

FAQ

How do I use ChatGPT for data analysis on a CSV file?
Attach the CSV in the chat and ask one specific question — for example, monthly revenue by product category for the last twelve months. ChatGPT writes Python in a sandbox, runs it, shows the result, and lets you download the cleaned file. Confirm the column names and row counts in the first reply before you trust later steps.
What file sizes and types does ChatGPT data analysis support?
OpenAI’s File Uploads FAQ, retrieved 2026-09-17, lists 512MB per file and about 50MB for CSV and Excel. Free accounts get about 3 uploads a day. Paid plans allow up to 80 files in 3 hours, which OpenAI may lower at peak. Spreadsheets, PDF, JSON, and other text formats are supported. The sandbox cannot reach a private database or the public web unless you upload the data or connect a source first.
Can ChatGPT analyze Excel files with multiple sheets?
Yes. Upload the XLSX file and tell ChatGPT which sheet to start with or ask it to enumerate sheet names first. It can pivot, join across sheets, and export a new XLSX with multiple result tabs. Watch for merged cells, hidden rows, and inconsistent header positions — these are the most common reasons an analysis silently misreads the file.
What are good ChatGPT prompts for data analysis?
Good prompts pin down the verb, the grain, the filter, and the output. For example: compute weekly active users grouped by signup country for 2025, exclude internal email domains, and return a CSV plus a line chart. Vague prompts like analyze this file produce vague summaries. Always ask ChatGPT to state its assumptions before it runs code.
What are the limits of ChatGPT for data analysis?
The sandbox resets each session, cannot reach private databases without a connector, has file size limits, has no persistent business definitions across chats, and lacks a built-in plan-review step. Its statistical and SQL output is usually correct but unverified — for any number that goes into a board deck, an analyst should still check the code and re-run on the source data.
When should I switch from ChatGPT to a connected data agent?
Switch when your data lives in databases rather than files, when the same business question repeats weekly, when stakeholders need an audit trail, or when answers depend on shared business definitions. A connected AI data analyst keeps a knowledge base bound to each source and produces evidence with every query — capabilities ChatGPT's general-purpose sandbox is not designed to deliver.
Is ChatGPT for data analysis safe for company data?
Treat uploads as you would any cloud SaaS share. Enterprise plans offer data controls, but the safer pattern is to strip personally identifiable fields before upload, use a workspace with retention controls, and avoid pasting production credentials. For regulated data, run analysis inside a tool with row-level controls and a stored evidence trail per result.
Does ChatGPT data analysis replace BI dashboards?
No. ChatGPT covers exploratory and one-off analysis on files you upload by hand. BI dashboards cover recurring questions on a fixed semantic layer, refreshed against connected sources. Most teams keep dashboards for monitored metrics and reach for ChatGPT or a data agent for the long tail of one-off questions that never made it onto a dashboard.

Methodology and review notes

Last updated: 2026-09-23 · Next scheduled review: 2026-12-23

This tutorial draws on hands-on testing of ChatGPT data analysis on CSV and XLSX files, OpenAI’s data-analysis help article, and the File Uploads FAQ retrieved 2026-09-17. Worked examples are abstracted from analyst workflows and stripped of any client data. The five prompt patterns were tested across more than fifty sessions before the June 2026 publication; file caps were rechecked against the FAQ on 2026-09-23.

Conflict of interest: InfiniSynapse publishes this page and sells a connected AI data analyst. To reduce bias, the page calls out scenarios where ChatGPT wins outright, links to a separate limits piece, and recommends a connected agent only for the cases where the sandbox structurally cannot fit.

Update cadence: Reviewed every 90 days for changes in the OpenAI sandbox capabilities, model defaults, and file format support.

Sources and references

  1. [Vendor] OpenAI. Data analysis with ChatGPT. help.openai.com/en/articles/8437071-data-analysis-with-chatgpt. Retrieved 2026-09-23.
  2. [Vendor] OpenAI. File Uploads FAQ. help.openai.com/en/articles/8555545. Retrieved 2026-09-17. Source for the 512MB, about-50MB spreadsheet, and upload-quota figures on this page.
  3. [Vendor] OpenAI. Analyzing data with ChatGPT, including Excel and Google Sheets. openai.com/academy/data-analysis.
  4. [Independent] NIST. AI Risk Management Framework (AI RMF 1.0, 2023). nist.gov/itl/ai-risk-management-framework.
  5. [Independent] Wikipedia. Retrieval-augmented generation entry. en.wikipedia.org/wiki/Retrieval-augmented_generation.
  6. [Independent] BIRD-SQL: A Big Bench for Large-Scale Database Grounded Text-to-SQL Evaluation. BIRD benchmark.
  7. [Research] Anthropic. Building Effective Agents. anthropic.com/research/building-effective-agents.
  8. [Independent] ISO/IEC 42001 AI management system standard. iso.org/standard/81230.
  9. [Vendor] pandas documentation. pandas.pydata.org/docs.

Related guides

The warehouse choice is on best SQL analytics software for data analysis.