Article
Can ChatGPT Analyze Excel Files? Yes, but Check Its Work
Yes, ChatGPT can analyze Excel files. But extra sheets, title rows, totals rows and hidden rows can skew the answer. A 5-minute check, and the fixes.

Yes. Upload an Excel file to ChatGPT and it can summarise it, chart it, clean it up and write formulas for it. For most of that, it writes a short program in Python, a programming language, that opens your file and reads the cells into a table. Then it answers from that table.
That program reads exactly what’s in each cell. It doesn’t see the layout the way you do.
Most workbooks (Excel’s word for the whole file) are laid out for people: a title above the column names, a totals row at the bottom, a few rows hidden, each month on its own sheet. You read past all of that without thinking. Code that isn’t written to handle it reads the title as data and the totals row as one more sale.
To show what that does to the numbers, we made a messy sample workbook and opened it with pandas, the Python tool ChatGPT’s help pages mention. We didn’t run ChatGPT on it. We ran the kind of code it writes, left on its standard settings, and the workbook’s Total row alone doubled a month’s sales, from $444 to $888.
So treat the first answer about an Excel file as a draft. Ask ChatGPT what it read, compare its answers with Excel, and in about five minutes you’ll know whether to trust it. The check is here, and the fixes follow it, smallest first. If you’d rather stay inside Excel, OpenAI also makes a ChatGPT add-in for it.
What ChatGPT does well with a spreadsheet
ChatGPT works best on a tidy sheet: the column names in row 1, then one row for each record (one order, one expense, one survey answer), and nothing else on the sheet. That’s how OpenAI’s help asks for spreadsheets to be laid out, too.
On a sheet like that it’s quick. Ask for sales by month or the ten best-selling products and you get the answer in a sentence, where you’d otherwise build a pivot table (Excel’s tool for totalling a list by group). Ask for a chart and it draws one in the chat.
It can do cleaning chores too: finding duplicate rows, splitting a full name into first and last, or making “UK”, “U.K.” and “United Kingdom” the same thing.
It can also write an Excel formula for you to paste in, or explain one you’ve inherited. Try a new formula on a few rows you can check by hand before you copy it down the sheet.
What code makes of a messy workbook
OpenAI’s help says that for data analysis, ChatGPT writes and runs Python code. That code decides which sheet to open, which row holds the column names, and which rows count as data. OpenAI doesn’t say how ChatGPT handles several sheets or any of the layouts below, so we can’t tell you what it will do with your file. What we can show is what each layout does when the code doesn’t handle it.
Our sample is a made-up candle shop’s orders. A Summary sheet comes first, then a sheet each for July, August and September, and a hidden sheet called Old prices. Each month’s sheet has things real sheets often have:
- a title and a blank row above the column names
- the region typed once, then merged down the rows below it
- two cancelled orders, hidden
- a Total row at the bottom, which says $444 for July’s 10 orders
We read it with pandas and changed none of its settings, except, for the picture below, which row holds the column names. ChatGPT’s code might change more, for example to list the sheets first, and you can’t tell from its answer whether it did. That’s what the check below is for.
Only the first sheet
Left to its standard settings, pandas opens the first sheet and stops. In our workbook that was the Summary: a title and four lines of monthly totals. Not one order came with it, so a question about products or regions had nothing to work from.
When we asked for every sheet instead, the hidden Old prices sheet came too, next to this year’s orders.
A title above the column names
The code takes the first row as the column names. Our July sheet starts with the title “July 2026 orders”, so that became the name of the first column, and the rest were called “Unnamed: 1” to “Unnamed: 6”. The real names, Date to Total, became just another row of data.
If ChatGPT ever mentions a column called “Unnamed”, this is what happened.
Merged cells
Merging joins several cells into one, so a label like “North” can stretch down five rows. Excel keeps only the top cell’s contents, so the rows below it are empty.
That’s how the code read them. The first North order and the first South order got their region, and the other eight got nothing. A “sales by region” answer built on that would count 2 of the 10 orders.
A totals row
The code can’t tell a Total row from an order. To it, the Total row is one more row of numbers. Ours turned 10 orders into 11 rows, and July’s sales into $888, twice the $444 the Total row shows. The average order came out at $80.73 instead of $44.40.
Hidden rows and sheets
Hiding a row changes what Excel shows you, not what’s in the file. The two cancelled orders we hid, #7005 and #7009, were read like every other row. If you hid rows to keep them out of your numbers, they’re back in. The same goes for hidden sheets.
Excel’s own SUM counts hidden rows too, which is why our Total row says $444. Without the two cancelled orders, July’s sales were $424.
Dates typed as text
A date typed or pasted in as text is only text, so the code has to guess what it means, and pandas guesses month first. Our 04/07/2026, meaning 4 July, became 7 April. Further down the same column, 13/07/2026 became 13 July, because there is no 13th month. Nothing warned us about either.
To spot text dates in Excel, look at which side of the cell they sit on. Unless someone has changed the alignment, Excel puts real dates on the right and text on the left.
Formulas
An Excel file stores each formula together with the last result Excel worked out for it. Read with pandas, the file gives the code that saved result, and nothing is recalculated. So the code knows each order’s total is 120, but not that it came from quantity times price, unless it’s asked to look. It can look: opening our sample with openpyxl, the tool pandas uses for .xlsx files, showed =E4*F4 in the first order’s Total cell.
A file exported from another app can hold formulas with no saved results, which the code reads as empty. Opening it in Excel and saving it usually fixes that. OpenAI also says that a lot of complex formulas can cause problems, even in a file under the size limit.
Big workbooks
ChatGPT gives spreadsheets the same size limit as CSV files (plain-text copies of a sheet): about 50 MB. A file under that can still be too big to analyse completely. Our guide to ChatGPT’s CSV file limit covers size: what to cut, and how to tell when only part of a file was read.
A 5-minute check before you trust the answer
Ask this in the same chat. Change “Sales” to the column your question is about.
Before you answer, tell me which sheets you read, which row you used for the column names, how many rows of data you used from each sheet, the total of the Sales column, and the earliest and latest date. Then show me the last three rows you used.
Then get the same numbers from Excel:
Count the sheets, hidden ones included
Count the sheet tabs along the bottom of the window. Then right-click any tab and choose Unhide. If it lists any sheets, those are hidden sheets, and ChatGPT’s code can still read them.
Unhide hidden rows before you count
Run your eye down the row numbers on the left. A jump, such as 7 then 9, means a row is hidden. The code reads hidden rows whether you can see them or not, so unhide them before you count: select the rows either side, right-click and choose Unhide. If you hid them to leave them out, that’s already one answer: delete them from the copy you upload.
Count the rows and add up the column
Select the column you asked about, from the first record down to the last, leaving out the column name and any totals row. The status bar, the strip along the bottom of the window, shows the Count and the Sum.
Compare
Check each of ChatGPT’s answers against yours, and its dates against what you know: if your data covers July to September, an April date is a clue.
If everything matches, the answer is working from the data you meant. If something doesn’t, the mismatch usually says why:
| What doesn’t match | What it usually means |
|---|---|
| A column called “Unnamed”, or your title used as a column name | It took the title row for the column names |
| One row too many, and a total about twice yours | It counted your totals row as data |
| Blanks where your sheet has labels | Those labels are in merged cells |
| Only one sheet named, or far fewer rows | It read only the first sheet |
| A sheet you’d forgotten about | It read a hidden sheet |
| A date in the wrong month | A date stored as text was read month first |
The last three rows help here. If the last one says Total, you’ve found your problem.
How to fix it, smallest change first
Tell ChatGPT how the workbook is laid out
This costs nothing, so try it first. For our sample workbook, it would be:
The orders are on the July, August and September sheets. On each, the column names are in row 3. Leave out the Total row at the bottom of each sheet and the hidden Old prices sheet. Regions are in merged cells, so fill each one down to the rows below it. Dates are day first.
If your question needs two sheets at once, such as orders and a price list, name the column that links them, and ask how many rows found no match. Then run the check again.
Tidy a copy of the workbook
Work on a copy and keep the original. What you’re aiming for is a sheet with the column names in row 1, one record on each row, and nothing above or below.
- Delete the title and any blank rows above the column names.
- Unmerge merged cells (Home, then the arrow beside Merge & Center, then Unmerge Cells) and fill each label down to the rows it covered.
- Delete totals and subtotal rows. ChatGPT can add things up itself.
- Delete the rows you hid to leave out, and unhide the rest.
- Turn text dates into real dates. One way: select the column, choose Data, then Text to Columns, press Next twice, choose Date with the order your dates are written in (DMY if 04/07 means 4 July), then Finish.
- Fix numbers stored as text. Excel marks many of them with a small green triangle in the corner of the cell; select them and choose Convert to Number.
- Delete columns the question doesn’t need, especially names, emails or account numbers. That keeps them out of ChatGPT too.
If the same kind of data is spread over several sheets, one a month, think about stacking it on one sheet with a Month column. Then the code has one table to read.
Upload one clean sheet as a CSV
A CSV is a plain-text copy of a single sheet: values only, with no formulas, formatting or other sheets. That makes it the most predictable thing you can upload.
In Excel, open the sheet you want, choose File, then Save As (Save a Copy on some versions), and pick CSV. Excel saves only the sheet you have open.
Before you save, set the date column to a format like 2026-07-04 (Format Cells, then Custom, then type yyyy-mm-dd). Dates written that way can’t be read the wrong way round.
Our free Excel to CSV converter does the same in a browser tab: pick the sheet and download the CSV. The file stays on your computer.
If the CSV is still too big for ChatGPT, cut columns, filter or split it.
For a workbook you ask about every week
Uploading means a fresh copy, a fresh chat and the same check every time. If you keep coming back to the same workbook, the routes below save that.
Ask from inside Excel
OpenAI’s ChatGPT for Excel is an add-in: a ChatGPT panel that sits beside your sheet in Excel, on the desktop or the web, and works on the workbook you have open. OpenAI’s help says it handles workbooks with several sheets and formulas, and that you can @-mention the sheets it should use. To add it, go to Home, then Add-ins, search for ChatGPT, and sign in.
It’s listed on every ChatGPT plan, with limited use on Free. OpenAI says it asks for permission before changing your workbook, and suggests duplicating the file first for important work. VBA and macros may not be fully supported.
Microsoft’s Copilot in Excel does a similar job if your Microsoft 365 plan includes it (Microsoft lists which do), and so does Anthropic’s Claude for Excel on paid Claude plans. All three are still AI reading your cells, so run the same check.
Keep the data in a database
A database is software built to answer questions over every row. It keeps your data between questions, so there’s nothing to re-upload, and it suits lots of rows or several files at once.
Infograph, which we make, keeps your data in one. Upload the workbook (.xlsx or .xls, up to 250 MB on any plan, Free included) and each sheet you pick becomes its own table. Or connect a workbook in your OneDrive: Infograph re-reads it on a schedule on paid plans, or when you sync it yourself on Free.
You ask in plain words in Infograph. You can also ask from ChatGPT or Claude once you’ve added Infograph to them as a connector, which lets them use another app; our CSV guide has the steps.
What it won’t do is tidy the sheet for you. It takes each sheet’s first row as the column names, and reads merged cells, totals rows and hidden rows as they are, so do the tidying above first. Each question uses credits from your plan (see the plans), and for one small file it’s more than you need.
When the workbook is an export from another app
Many workbooks are exports, such as payments from Stripe or invoices from QuickBooks or Xero. For those, you can skip the file and connect the app itself to Infograph (see every connection). Its data comes in as tables, one row for each payment or invoice, and stays up to date: on a schedule on paid plans, or when you sync it on Free. Ask in Infograph, or from ChatGPT or Claude connected as above, and the answer comes from the latest sync rather than last week’s export.
The Free plan includes one connection, so that’s one app or one OneDrive workbook. For a one-off question, uploading the export is still quicker. And if the app already has a report for your question, such as last month’s sales, its own report answers it with no export.
ChatGPT and Excel questions
Can ChatGPT read Excel files with multiple sheets?
It can, if its code opens each sheet. OpenAI doesn't say whether ChatGPT reads every sheet, and pandas, the Python tool its help mentions, opens only the first unless it's asked for more. Name the sheets in your question, and ask which ones it read.
Can ChatGPT read Excel formulas?
Not by default. Read with pandas, an uploaded file gives the result each formula last saved, not the formula. The code can read the formulas themselves if it's asked to, so ask it to list the formulas in a column. ChatGPT can also explain a formula you paste into the chat, and OpenAI's ChatGPT for Excel add-in works with the formulas in an open workbook.
Can free ChatGPT analyze Excel files?
Yes. Some older guides say you need a paid plan, but OpenAI's help now says spreadsheet uploads work on Free and paid plans, with Free accounts limited to three file uploads a day. The ChatGPT for Excel add-in is listed for Free accounts too, with limited use.
Why won't ChatGPT open my Excel file?
Check the file type first: OpenAI lists XLSX, XLS, CSV, TSV and OpenDocument (.ods) spreadsheets, so save a macro workbook (.xlsm) or an Apple Numbers file as .xlsx. Remove any password, because the code has no way to type it. Files over about 50 MB won't upload; our CSV limit guide covers making them smaller. And OpenAI says it may not reliably read values from a table pasted in as a picture.
Can ChatGPT give me back an edited Excel file?
If it hands you a file, its code wrote it, so open it before you rely on it. When we wrote our July sheet back out with pandas, only that sheet came back, with no merged cells or hidden rows, and each order's formula had become a plain number. If you need working formulas, ask for them by name.
Can ChatGPT open an Excel file from OneDrive?
OpenAI says that where plugins are available for your account, you can attach files from Google Drive, OneDrive and SharePoint. For a Google Sheets link, see why ChatGPT often can't open one, in our guide to ChatGPT and Google Sheets.
Is my Excel file private when I upload it to ChatGPT?
ChatGPT saves a copy of each file you upload to your Library (Space on some Plus and Pro accounts), and deleting the chat doesn't delete it: delete the file from the Library. On personal plans, OpenAI may use uploaded files to improve its models while Improve the model for everyone is on; you can turn it off in Settings, then Data Controls. OpenAI says it doesn't use content from business plans such as ChatGPT Enterprise this way. Either way, delete columns you don't need, such as names, before you upload.
Is Copilot or ChatGPT better at Excel?
It depends more on where you work than on the tool. Copilot comes with some Microsoft 365 plans and works inside Excel, and so does OpenAI's ChatGPT for Excel add-in, on any ChatGPT plan. Uploading a file to ChatGPT works on a copy instead. Whichever you use, ask what it read and compare it with Excel.
Does uploading to ChatGPT change my Excel file?
No. ChatGPT works on a copy, and the file on your computer stays as it was. The ChatGPT for Excel add-in is different: it can change the open workbook, and OpenAI says it asks for permission first.
Get answers from all of your data
Infograph reads everything you connect and turns a question in plain words into an answer, a data report or a live dashboard.
Answers, reports and dashboards
Ask a question and get back what it needs: a straight answer, a written report or a dashboard that stays live.
Frontier intelligence
The latest models from the leading labs, chosen for speed, intelligence, price or open source.
Every app and kind of data
Upload files or connect your apps and databases. InfoSync keeps them fresh, with nothing to schedule.


