How to Use ChatGPT for Excel and Data Analysis
Use ChatGPT for Excel two ways: the official add-in that edits your workbook, and file upload for Python analysis and charts. Includes prompts, limits and tips.
On this page
- Key takeaways
- Two ways to use ChatGPT with Excel
- What you need before you start
- Method 1: install and use the ChatGPT for Excel add-in
- Method 2: upload a spreadsheet for data analysis
- ChatGPT prompts for Excel you can copy
- Worked example: analyzing an ecommerce sales export
- Limits, privacy and accuracy
- ChatGPT vs Copilot vs Gemini for spreadsheets
- Common mistakes to avoid
- Frequently asked questions
- Next steps
There are two ways to use ChatGPT for Excel. The first is OpenAI’s official ChatGPT for Excel add-in, which puts ChatGPT in a sidebar inside your workbook so it can build formulas, clean data and update models directly. The second is uploading an .xlsx or .csv file to ChatGPT, which then analyzes the data with Python and returns tables and charts. Both work on the free plan with limited usage, and Plus at $20 a month gives you much more room.
This guide shows you how to set up both methods, gives you ready-to-use prompts for formulas, cleaning, pivots and charts, and explains the limits and mistakes that trip people up. It is written for marketers, founders, finance staff and students who use spreadsheets but are not Excel experts.
Key takeaways
- OpenAI’s ChatGPT for Excel add-in works in Excel desktop and web, and is available globally on Free, Go, Plus, Pro, Business, Enterprise and Edu plans.
- Uploading a spreadsheet to ChatGPT lets it run Python analysis and create interactive bar, line, pie and scatter charts.
- ChatGPT accepts .xls, .xlsx and .csv files. Spreadsheets are limited to about 50MB, and Free users get only 3 file uploads per day.
- VBA and macros may not be fully supported in the add-in, so keep macro work for manual review.
- Always check formulas and changed cells before you share a workbook. AI can be confidently wrong with numbers.

Two ways to use ChatGPT with Excel
Pick the method based on where your work happens. If you want changes made inside a live workbook, use the add-in. If you want insights, charts or a cleaned file from a dataset, use file upload in the normal ChatGPT app.
| Feature | ChatGPT for Excel add-in | Upload file to ChatGPT |
|---|---|---|
| Where it runs | Sidebar inside Excel (desktop or web) | chatgpt.com or the ChatGPT app |
| Edits your workbook directly | Yes, with formulas and references | No, it returns a new file to download |
| Best for | Building models, budgets, fixing formulas | Exploring data, charts, summaries |
| Charts | Supported, multi-tab workbooks too | Interactive bar, line, pie and scatter charts |
| Also works with | Google Sheets (via Extensions) | Files from Google Drive, OneDrive, SharePoint via connectors |
| Plans | All plans, Free and Go limited | All plans, Free limited to 3 uploads a day |
Both draw on your ChatGPT plan. If you are unsure which plan you need, our ChatGPT pricing guide covers Free, Go, Plus, Pro and Business, and our explainer on ChatGPT limits by plan shows where heavy users run out.
What you need before you start
- A ChatGPT account. Free works for testing. Go ($8/month in the US) and Plus ($20/month) give higher limits for uploads and data analysis.
- Microsoft Excel. The add-in works in Excel on desktop or the web. A free Microsoft account with Excel for the web is enough to try it.
- A tidy spreadsheet. One table per sheet, with descriptive column headers in the first row. OpenAI’s own tips recommend avoiding multiple unrelated tables on one sheet.
- Permission to share the data. Remove personal data such as customer phone numbers or salaries unless your plan and company policy allow it.
Method 1: install and use the ChatGPT for Excel add-in
OpenAI describes the add-in as “a spreadsheet-native AI experience that lives in a sidebar inside your Excel and Google Sheets spreadsheets.” Here is how to set it up, based on the official OpenAI help article.
- Open the add-ins store. In Excel, go to the Add-ins option on the Home or Insert ribbon. This opens the Microsoft Marketplace inside Excel.
- Search for ChatGPT and install. Find the official ChatGPT add-in from OpenAI and add it. Check the publisher name so you do not install a lookalike.
- Sign in. Open the add-in from the ribbon. A sidebar appears. Sign in with your ChatGPT account.
- Describe what you want. Type a request such as “Add a column that calculates profit margin as a percentage, and format it.” The add-in reads your workbook, including formulas and references.
- Review the changes. Check every changed cell and formula. OpenAI explicitly advises you to review formulas, calculations, citations and changed cells before sharing.
- Iterate. Ask follow-ups: “Now add a scenario where costs rise 10%,” or “Explain how the total in F20 is calculated.”
Note: Spreadsheet chats in the add-in are kept separate from your main ChatGPT chat history. If you want to reuse a prompt, save it somewhere else. For Google Sheets, install the same add-on from the Google Workspace Marketplace and open it from the Extensions menu.
Good tasks for the add-in
- Building a monthly budget or cash flow model from scratch.
- Cleaning messy imports, such as splitting full names or standardizing city names.
- Explaining an inherited spreadsheet: “Walk me through how this pricing model works.”
- Running what-if scenarios on an existing model.
- Adding charts that summarize a table.
Method 2: upload a spreadsheet for data analysis
When you upload a file to ChatGPT, it runs Python code in a notebook-style environment to analyze it. According to OpenAI’s data analysis help page, it accepts .xls, .xlsx and .csv files, plus PDFs and formats like JSON and XML.
- Prepare the file. Remove sensitive columns, keep one table per sheet, and use clear headers like “Order Date” and “Revenue (INR)”.
- Upload it. In a new chat, click the attach option and choose the file, or attach it from Google Drive or OneDrive if connectors are enabled for your account.
- Ask for an overview first. “Describe this dataset: columns, data types, row count, missing values and anything unusual.” This confirms ChatGPT read it correctly.
- Ask specific questions. “Which 5 products had the highest revenue growth between Q1 and Q2?” Specific questions get specific answers.
- Request charts. “Make a line chart of monthly revenue by region.” Interactive charts are supported for bar, line, pie and scatter types.
- Download the result. Ask for a cleaned file: “Export the cleaned data as an .xlsx file with a summary sheet.” Then open it in Excel and check it.
Watch out: Spreadsheets are limited to about 50MB per file, and Free users can upload only 3 files per day. If your export is bigger, filter it to the columns and date range you need, or save it as .csv, which is usually smaller.
ChatGPT prompts for Excel you can copy
These prompts work in both the add-in and the main app. Replace the column letters and names with your own. For more prompt structure ideas, see our prompt engineering guide.
| Task | Prompt |
|---|---|
| Write a formula | “Write an Excel formula that sums column D only where column B is ‘Mumbai’ and column C is in 2026.” |
| Fix an error | “This formula returns #N/A: =VLOOKUP(A2,Sheet2!A:C,3,FALSE). Explain why and give a fixed version using XLOOKUP.” |
| Clean data | “Standardize the phone numbers in column E to the format +91 XXXXX XXXXX and flag invalid ones.” |
| Pivot summary | “Create a summary of total revenue and order count by month and by sales channel.” |
| Find insights | “What are the three most important trends in this sales data? Back each with numbers.” |
| Build a model | “Build a 12-month cash flow model for a small agency with retainer income, freelancer costs and GST.” |
| Explain a sheet | “Explain what each tab in this workbook does and how the totals are linked.” |
Tip: Ask ChatGPT to show its working: “Explain each step of the formula in plain English.” If you understand the formula, you can spot errors and maintain the sheet later without AI.
Worked example: analyzing an ecommerce sales export
Say you run a small online store and export last quarter’s orders as a .csv with columns for order date, product, city, quantity and revenue. Here is a practical sequence:
- Overview. “Summarize this file and list any missing or odd values.” ChatGPT flags blank cities and duplicate order IDs.
- Clean. “Remove duplicate order IDs and fill blank cities as ‘Unknown’. Tell me how many rows changed.”
- Analyze. “Show revenue by product and by city, and the top 10 products by revenue.”
- Visualize. “Make a bar chart of revenue by city and a line chart of weekly revenue.”
- Act. “Based on this, suggest three actions to grow repeat orders.” Treat these as ideas to test, not facts.
For more ideas on using AI across an online store, read our guide to AI for ecommerce.
Limits, privacy and accuracy
- Usage limits. Free and Go have limited add-in usage, and Plus and Pro are subject to agentic usage limits. Heavy daily use is smoother on Plus or Business.
- Macros. VBA and macros may not be fully supported in the add-in.
- Data retention. OpenAI says some add-in logs may be retained for 30 days for safety and integrity purposes. On Business and Enterprise, OpenAI does not train on workspace data.
- Accuracy. ChatGPT can misread a column or apply the wrong filter. Spot check totals against Excel’s own SUM and COUNT.
For teams handling client or employee data, write down what can and cannot be uploaded. Our AI usage policy template makes that quick.
ChatGPT vs Copilot vs Gemini for spreadsheets
ChatGPT is not the only option. Microsoft 365 Personal ($9.99/month) includes Copilot in the Office apps, including Excel, and Google Sheets has Gemini with the =AI() function on eligible plans. If you already pay for one of these, start there.
- Choose ChatGPT if you already pay for Plus, want one assistant for writing and data, or switch between Excel and Google Sheets.
- Choose Copilot if your company is on Microsoft 365. Our Microsoft Copilot pricing guide breaks down the plans.
- Choose Gemini if you live in Google Sheets. See our guide to using Gemini in Gmail, Docs and Sheets.
For a broader comparison of assistants, our ChatGPT vs Claude comparison covers how each handles files and analysis.
Common mistakes to avoid
- Uploading messy files. Merged headers and multiple tables confuse the analysis. Clean first.
- Not checking formulas. Test any new formula on rows where you know the answer.
- Vague prompts. “Analyze this” gives generic output. Name the columns, the period and the question.
- Sharing sensitive data. Strip personal and financial details unless your plan and policy allow it.
- Using AI for every sum. For simple totals, a normal formula is faster and exact.
Frequently asked questions
Is there an official ChatGPT add-in for Excel?
Yes. OpenAI offers ChatGPT for Excel and Google Sheets, a sidebar add-in installed from the Microsoft Marketplace inside Excel or from the Google Workspace Marketplace for Sheets. It works in Excel desktop and web, and is available globally on Free, Go, Plus, Pro, Business, Enterprise and Edu plans, with lower usage on Free and Go.
Can I use ChatGPT for Excel for free?
Yes, with limits. The add-in is available on the Free plan with limited usage, and free users can upload up to 3 files per day for data analysis in the main app. If you work with spreadsheets daily, Go at $8 a month or Plus at $20 a month gives you noticeably more room.
Can ChatGPT read Excel files?
Yes. ChatGPT accepts .xls, .xlsx and .csv files and analyzes them with Python. It can summarize data, find trends, clean columns and create interactive bar, line, pie and scatter charts. Spreadsheet uploads are limited to about 50MB, so filter very large exports before you upload them.
Can ChatGPT write Excel macros and VBA?
ChatGPT can write VBA code in a normal chat that you paste into Excel yourself. However, OpenAI notes that VBA and macros may not be fully supported inside the ChatGPT for Excel add-in. Always test macros on a copy of your workbook, since a faulty macro can overwrite data.
Is it safe to upload business spreadsheets to ChatGPT?
It depends on your plan and data. Business and Enterprise plans do not train on workspace data, and personal plans have data controls in settings. Remove sensitive personal or financial details when you can, follow your company policy, and avoid uploading anything you are not allowed to share with a third party.
Next steps
Start with one real task this week: install the add-in and ask it to explain or tidy a spreadsheet you already use, or upload a sales export and ask for three insights with a chart. Once that works, save your best prompts in a shared doc for your team, and borrow more from our AI prompts for small business owners. To see which other tools are worth adding, browse our list of the best AI tools for small business owners. If you are new to ChatGPT in general, our beginner guide to ChatGPT covers the basics. Plans and limits change often, so confirm the current details on OpenAI’s official help and pricing pages.
Pricing and features are checked at the time of writing and can change. Some links may be affiliate links, which never affect our verdicts.