ChatGPT data analysis turns a spreadsheet into answers in plain English. Upload a CSV or Excel file, ask what you want to know, and ChatGPT summarises trends, finds outliers, builds tables and draws charts. For many tasks it writes and runs real Python code behind the scenes, so the maths is calculated rather than guessed.
It works on the Free plan as well as paid plans, but the results depend a lot on how clean your file is and how clearly you ask.
A messy sheet with merged headers and blank rows will trip it up, while a tidy table with clear column names gets solid results on the first try.
This guide covers supported files and limits, preparing your spreadsheet, step-by-step analysis, prompts that work, interactive charts, checking the Python code, privacy, limits and fixes. It follows OpenAI’s official help articles, updated in late November and early December 2026.
- Upload: click + > Add photos & files, attach a CSV, XLSX or XLS file, then ask your question.
- Prepare: headers in row 1, one record per row, no blank rows or multiple tables on a sheet.
- Limits: spreadsheets about 50 MB; 80 uploads per 3 hours; Free users 3 uploads per day.
- Charts: bar, line, pie and scatter can be interactive; hover for values or use ••• > View as table.
- Check: ChatGPT runs Python in a Jupyter-style sandbox; review the code and assumptions before you rely on results.
- No internet: the analysis sandbox cannot call APIs or the web, so upload all the data it needs.
What ChatGPT Data Analysis Can Do
- Summarise data: rows, columns, trends and outliers in plain language.
- Build tables: filtered or grouped views you can scroll row by row.
- Create charts: from your data, interactive or as images.
- Calculate: Python-based sums, averages, pivots, transformations and statistics.
- Explain: the assumptions it made, what the results mean and sensible next steps.
For many tasks ChatGPT writes and runs Python in a stateful Jupyter notebook environment. It can open files you gave the session and show pandas DataFrames as interactive tables. When Data Analysis is available it can even open a ZIP archive and work with the files inside.
Supported Files and Limits
| File type | Examples | Limit |
|---|---|---|
| Spreadsheets | CSV, XLSX, XLS, TSV, ODS | About 50 MB, depending on row size |
| Documents and text | PDF, DOCX, TXT, JSON, XML, YAML, Markdown | 512 MB and 2 million tokens per file |
| Images | Screenshots of tables | 20 MB per image (exact values not reliable) |
| Upload rule | Limit |
|---|---|
| Uploads, paid plans | Up to 80 files every 3 hours |
| Uploads, Free plan | 3 files per day |
| Storage | 25 GB per user, 100 GB per organization |
| Project files | Free 5, Go and Plus 25, Pro/Business/Enterprise/Edu 40 |
OpenAI may lower upload limits at peak times, and available file types vary by model, plan and workspace settings. Google Sheets files (.gdoc style) cannot be uploaded directly: download as XLSX or CSV first. Saved uploads appear in your ChatGPT Library.
Prepare Your Spreadsheet
Five minutes of tidying saves most failed analyses.
- Put descriptive column headers in the first row, such as
order_date,region,revenue_usd. - Keep one record per row. Unmerge any merged cells.
- Delete empty rows and columns that split the data.
- Keep one table per sheet. Move notes and summary blocks elsewhere.
- Use real values, not pictures of values. ChatGPT cannot reliably read numbers inside images.
- For huge workbooks with heavy formulas, export just the needed sheet as CSV.
Tip: remove personal data such as names, emails and phone numbers before uploading, or replace them with IDs.
Analyze a File Step by Step
- Open a new chat in ChatGPT on the web or in the mobile app.
- Click + in the message box, then Add photos & files, and pick your CSV or Excel file.
- Start with a check: “Describe this file. List the columns, data types, row count and any missing values.”
- Ask your real question, naming columns and the calculation: “Total revenue_usd by region for 2026, sorted high to low.”
- Ask for a chart: “Show that as a bar chart.”
- Review the code and numbers (see below), then refine: “Exclude refunds where status is ‘returned’.”
- Ask for an output file if you need one: “Give me the cleaned data as a CSV I can download.”
Working on the same dataset every week? Put the file in a ChatGPT project so it is ready in every chat. For one-off sensitive data, use a ChatGPT Temporary Chat.
Prompts That Work
| Goal | Prompt |
|---|---|
| First look | “Summarise this dataset: columns, types, row count, missing values and obvious errors.” |
| Clean data | “Trim spaces, standardise dates to YYYY-MM-DD, remove duplicate order_id rows, and tell me how many you removed.” |
| Group and total | “Pivot revenue by month and product category. Show a table.” |
| Trend | “Plot monthly signups as a line chart and describe the trend in two sentences.” |
| Outliers | “Find orders more than 3 standard deviations from the mean value and list them.” |
| Compare | “Compare average delivery days for Region A and Region B. Is the difference statistically significant?” |
| Correlation | “Scatter plot ad_spend against sales and give the correlation coefficient.” |
| Explain | “Explain these results for a manager with no stats background.” |
The more specific you are about columns, method, grouping and chart type, the less ChatGPT has to guess. If it picks the wrong approach first time, tell it exactly what you want.
Make and Read Charts
- Interactive charts: bar, line, pie and scatter. On the web, hover a point or bar to see its value.
- See the data: open Chart options (•••) and choose View as table.
- Switch views: use Switch to interactive chart or Switch to static chart when the button is shown.
- Other types: histograms, heatmaps and box plots come back as static images.
Ask for styling in plain words: “Use a horizontal bar chart, label each bar with its value, and title it Q3 revenue by region.”
Check the Python Behind the Answer
When ChatGPT uses Python, you can open the analysis to see the code and output. Do this before you share any number.
- Expand the analysis or code view under the answer.
- Check which rows were filtered out and how missing values were handled.
- Check the formula matches what you meant, for example mean vs median, or revenue before vs after tax.
- Spot-check one or two numbers against your spreadsheet.
- If the method matters, ask: “Show me the method you used and change it to a median.”
Use Files From Google Drive or OneDrive
Where connected apps are available for your account or workspace, you can attach files from Google Drive, OneDrive and SharePoint instead of downloading them first. ChatGPT uses the connected account’s permissions, so it cannot read files you cannot open yourself, and workspace admins control which apps are allowed.
Privacy and Deleting Files
- Uploaded files follow OpenAI’s chat and file retention rules. Deleting a chat does not delete a copy saved separately in Library; delete that too.
- Check Settings > Storage to see saved-file usage.
- Review Data Controls to decide whether your content can be used to improve models.
- For confidential company data, use a Business or Enterprise workspace and your company’s rules.
Limits to Know
- No web access in the sandbox: the Python environment cannot make web requests or API calls. Upload the data first.
- Scanned PDFs and images: exact values from image-based tables are unreliable. Use a spreadsheet or text file.
- Large or complex files: a file can upload fine and still be too big or formula-heavy for full analysis.
- First-try mistakes: ChatGPT may choose a method or chart you did not want. Correct it in the next message.
- Upload quota is hidden: ChatGPT does not show how much of your 3-hour upload allowance is left.
ChatGPT vs Other Spreadsheet AI
| Tool | Works where | Best for |
|---|---|---|
| ChatGPT data analysis | Upload in ChatGPT | Quick questions, charts and Python stats on any file |
| Claude in Excel | Inside Excel | Editing a live workbook with formulas and cell citations |
| Claude file creation | Claude chat | Building finished Excel, Word or PowerPoint files |
| Local models | Your own PC | Private data that must not leave your machine |
For more options, see our best ChatGPT alternatives roundup.
Troubleshooting
“Upload limit reached” after few uploads
Check you are signed in to the right account and plan, and wait for any retry time shown. Failed uploads can count towards the limit. Free plans allow 3 uploads a day.
ChatGPT only analysed part of my file
Ask it to inspect a specific sheet, rows or columns, or split the file into smaller CSVs.
Numbers from my PDF are wrong
The PDF is probably scanned or image-based. Export the table to Excel or CSV and upload that.
It refuses to fetch live data
The analysis sandbox has no internet. Download the data yourself or attach it from a connected app.
Dates or numbers are read as text
Tell it the format: “order_date is DD/MM/YYYY and revenue uses commas as thousands separators.”
The chart is static, not interactive
Only bar, line, pie and scatter charts are interactive. Ask for one of those, or select Switch to interactive chart.
A Google Sheet will not upload
Download it as XLSX or CSV first, or attach it through Google Drive if connected apps are on.
FAQ
Is ChatGPT data analysis free?
Yes, Free users can upload files and analyse data, with a limit of 3 uploads per day. Paid plans allow up to 80 uploads every 3 hours.
Can ChatGPT read Excel files?
Yes. XLSX and XLS are supported, up to about 50 MB depending on row size.
What happened to Advanced Data Analysis and Code Interpreter?
Those were earlier names. The feature is now simply data analysis built into ChatGPT, and it still runs Python behind the scenes.
Can ChatGPT make a chart from my data?
Yes. Bar, line, pie and scatter charts can be interactive; other types come back as images.
Is my uploaded data private?
Files follow OpenAI’s retention rules and your Data Controls settings. Remove personal data you do not need, and delete saved copies in Library when done.
How accurate is it?
The calculations run as real code, but the method can be wrong. Always review the code, assumptions and a few spot checks.
Can it analyse more than one file at once?
Yes. Attach several files and ask it to join or compare them on a shared column.



