The shortest path to data analysis with AI is to hand a CSV or Excel file to an AI and ask, "Total the sales by month and chart it." Behind the scenes the AI writes and runs Python code or spreadsheet formulas, then returns a table, a chart and an explanation. You do not need to write Python or functions yourself. Which tool to start with depends on where your data lives now and whether it may be handed to an outside AI at all. This article puts the major tools' eligibility, file limits and ways to see how the numbers were calculated into one table, taken from each vendor's official help pages, walks through a first analysis using a 12-row practice CSV with three deliberate errors, and covers how to check the AI's totals yourself and what to confirm before handing over confidential data (vendor pages checked on November 13, 2026).

Choose the tool by where your data is

  • ① Analyze a CSV or Excel file once

    Hand the file to a chat: attach it in ChatGPT, Claude or the Gemini app, and the AI totals it in Python and returns a chart

  • ② You work in Excel every day

    AI inside Excel: Copilot in Excel, Claude for Excel and ChatGPT for Excel build formulas, PivotTables and charts in the open workbook

  • ② You co-edit in Google Sheets

    Ask Gemini in Google Sheets or ChatGPT for Google Sheets for analysis, charts and pivot tables from the side panel

  • ③ The data cannot go to an outside AI

    Give the AI only the column names and the calculation you want, have it write the formulas or Python code, and run them in your own Excel (for example Python in Excel)

1. Three approaches, and what the AI does behind the scenes

In AI data analysis, the AI does not "read the numbers and answer." It writes code or formulas for the calculation, runs them, and explains the result. OpenAI's help for ChatGPT says that for some data-analysis tasks it writes Python code and runs it in a Jupyter notebook environment. So to check an AI's answer, look at which code or formula produced it. The three approaches differ in where the calculation runs and whether the data leaves your hands.

ApproachWhere it calculatesWhere the data goesHow you see the work
①Hand the file to a chatPython running inside the AI serviceThe whole file goes to the AI serviceYou can view the code it ran and the intermediate tables
②AI inside the spreadsheetFormulas and PivotTables in Excel or Google Sheets (Python too, in some tools)The needed parts of the open workbook go to the AI serviceTrace it through the formulas, PivotTables and changed cells left in the sheet
③Have it write only the codeYour own Excel or your own environmentOnly the column names and the calculation you want go to the AIThe formulas and code stay with you, and you can reread them

If unsure, start with ①. Just by handing over a file you can ask for totals, charts, an outlier check and cleanup of inconsistent labels in one go. To build it into your daily spreadsheet work, use ②; if the data cannot leave, use ③. For the bigger picture of which business tasks to start using AI on, see the guide to improving business efficiency with AI.

2. The main tools compared (eligibility, file limits, seeing the work)

The table below reflects each vendor's official help pages as read on November 13, 2026. File limits are listed only where the help page gives a number; where it does not, the cell says "Not stated."

ToolWho can use itFiles and limitsHow to see the calculationWatch out for
①ChatGPT data analysisFree and paid plansFree is limited to 3 file uploads per dayXLSX, XLS, CSV, TSV and moreCSV files and spreadsheets: about 50MB (depends on row size); up to 80 files every 3 hoursThe help page recommends reviewing the generated code, outputs and assumptionsBar, line, pie and scatter charts can be switched to interactive chartsThe Python used for analysis cannot access the internetExact values in scanned tables or images may not be read reliably
①Claude file creation and code executionFree, Pro, Max, Ultra, Team, EnterpriseTurn on "Code execution and file creation" (called "Create and edit files" in the updated layout) under Settings > CapabilitiesUpload CSV, TSV and other files for analysis and charts30MB per file, for both uploads and downloadsWrites and runs Python scriptsYou can get the result as an Excel file (.xlsx) with formulas, formatting and chartsExternal access is controlled by "Allow network egress"With it off, there is no internet access
①Gemini appSign in to the Gemini appA Google AI plan raises the limitsUp to 10 files per promptUp to 100MB per file for everything except videoCreates charts from uploaded spreadsheets, and you can edit the chart type and labelsWith a work or school account, attaching from Google Drive requires the administrator to enable it
②Copilot in ExcelMicrosoft 365 Personal or Family with an AI credits plan, Premium, a commercial Copilot subscription, or a Copilot Chat-eligible business Microsoft 365Edit, plan and chat modes on Windows, Mac and the webNot statedPlan mode lays out the steps before it editsChanges can be undone or restored from prior versionsCopilot can edit only when calculation is set to AutomaticMicrosoft advises against using it for decisions in sensitive areas such as finance, legal or medical topics
②Claude for ExcelClaude Pro, Max, Team, EnterpriseExcel on the web, Windows (Microsoft 365) and Mac 16.46 or later; not iPad, Android or Excel 2016/2019 perpetual licensesNot stated (works across multi-tab workbooks)Answers include cell-level citations you can click to jump to the cellData tables (What-If Analysis) and macros/VBA are not supportedThe docs warn that files from outside sources can hide instructions
②②ChatGPT for Excel / Google SheetsFree, Go, Plus, Pro, Business, Enterprise, Edu, K-12Free and Go have limited usageNot stated (handles large multi-tab files)The help page suggests asking for a plan of which tabs and ranges it will change before big editsDoes not share chat history or memory with regular ChatGPTDuplicate the file first for important work
②Gemini in Google SheetsAn eligible Google Workspace or Google AI planExcel files (.xlsx) must first be saved as Google Sheets"Analysis steps" shows the steps and "Show code" shows the code usedAn inserted chart links to the data in a new tab and does not change when the original data changesReloading the page clears the conversation history
③Python in ExcelBusiness and enterprise Microsoft 365 (Windows, web, Mac 16.96 or later)Preview for Personal and Family; not free or perpetual licensesCalculates from workbook cells referenced with xl()The Python code stays in the cell, so anyone opening the workbook can reread itCode runs in an isolated container in the Microsoft Cloud, without network access, and data is not kept there

Python in Excel is not AI by itself; it lets you write Python formulas in Excel cells. In approach ③ you give ChatGPT or Claude the column names and the calculation you want, have it write the code, and paste it into a Python cell in your own workbook. Microsoft's page on data security and Python in Excel explains how the data is handled.

The "How to see the calculation" column is the one most often overlooked when choosing. With ① you read code, with ② the formulas and changed ranges in the sheet, and with ③ the code that stays on your side. Whichever you pick, you can still compare the AI's answer with numbers produced another way, as the next section shows.

3. Run a first analysis with a practice CSV

For your first analysis, small data with known answers shows the AI's habits more clearly than your own work data. The 12 rows below are practice data made up as three months of orders at a shop. Three errors are planted on purpose. Paste them into a text file, save it as sales.csv, and hand it to the AI you use.

order_id,date,region,product,units,unit_price
1001,2026-07-03,North,Coffee,12,450
1002,2026-07-10,South,Tea,8,380
1003,2026-07-18,North,Tea,5,380
1004,2026-07-25,South,Coffee,10,450
1005,2026-08-02,North,Coffee,9,450
1006,2026-08-09,South,Coffee,14,450
1006,2026-08-09,South,Coffee,14,450
1007,2026-08-16,north,Tea,7,380
1008,2026-08-23,South,Tea,,380
1009,2026-09-06,North,Coffee,15,450
1010,2026-09-13,South,Tea,11,380
1011,2026-09-20,North,Tea,6,380

The planted errors: (1) order 1006 appears twice with identical content (a duplicate), (2) the units for order 1008 are blank (a missing value), and (3) the region for order 1007 is lowercase north (an inconsistent label). Real data often looks like this, and how the AI treats these rows changes the conclusion.

  1. 1

    Tidy the data before handing it over Put column names in the first row and one record per row. OpenAI's help also recommends clear column names in the first row, not placing unrelated tables on one sheet, and not splitting the data with empty rows or columns.

  2. 2

    Before any calculation, have it describe the data Do not ask for totals right away; first make the AI say how it read the data. See whether it notices the duplicate, the missing value and the inconsistent label.

    PromptMake a table of this CSV's row count, the meaning and type of each column, the number of empty cells, duplicate order_id values, and the distinct values in region (case-sensitive). Do not calculate any totals yet.

  3. 3

    Decide the handling yourself and say it For example: merge duplicates into one row, exclude missing values instead of filling them and report how many, and standardize the labels. Left to itself, an AI may silently fill gaps with an average or keep duplicates.

    PromptMerge rows with the same order_id into one, exclude rows with empty units from the calculation and list those order_id values. Capitalize the first letter of region. Compute sales = units × unit_price, total it by month and by region, and show the code you used.

  4. 4

    Compare with numbers produced another way Open the file in a spreadsheet and compute the row count and total yourself (formulas in the next section). If they do not match the AI's answer, ask the AI which rows it handled differently.

  5. 5

    Chart it last Once the numbers match, ask for "a bar chart of sales by month." In ChatGPT, bar, line, pie and scatter charts can be switched to interactive charts. A chart inserted by Gemini in Google Sheets does not change when the original data changes, so recreate it after fixing the data.

How the three errors are handled flips August's rank

Totaling this data's sales (units × unit_price) by month gives different results depending on the handling. With the correct handling (duplicate merged, missing value excluded), August is the lowest month, but keeping the duplicate makes August look like the highest.

Total sales by month (practice data)

July14,840
August (correct handling)13,010
August (duplicate kept)19,310
August (gap filled with the average)16,696
September13,210
Number to checkAnswer with correct handlingWhat appears when the handling is wrong
Total sales for the three months41,06047,360 if the duplicate is kept
August sales13,010 (lowest of the three months)19,310 if the duplicate is kept; 16,696 if the duplicate is merged into one row and the blank is filled with the other rows' average of 9.7 units (both the highest of the three months)
Sales by regionNorth 23,040, South 18,020Without standardizing the labels, North 20,380 and north 2,660 become separate regions
Sales by productCoffee 27,000, Tea 14,060Coffee 33,300 if the duplicate is kept

"August slumped" and "August was the best month" lead to completely different decisions in a meeting. The cause is not a calculation error by the AI but that nobody decided how duplicates and missing values should be handled. Inconsistent labels work the same way: when the AI totals the data in Python (pandas), North and north are counted as separate regions.

4. How to catch errors in the AI's totals

Checking an AI's answer comes down to producing the same number by a different route and seeing whether it matches. Here are concrete formulas for the practice data and what to look for in the AI's code.

  • Match the row count In Excel or Google Sheets, =COUNTA(A2:A13) returns 12, =COUNTA(UNIQUE(A2:A13)) returns 11 (distinct orders), and =COUNTBLANK(E2:E13) returns 1 (blank units). If the AI says "12 orders," it is counting the duplicate.

  • Compute the total another way =SUMPRODUCT(E2:E13,F2:F13) adds every row, treating the blank as 0, so it returns 47,360. Subtract the duplicate row (6,300) and you get 41,060, the total under the correct handling. A PivotTable totaling by month works as a check too.

  • Make it state the handling in words Ask, "Write how you handled missing values, duplicates and inconsistent labels, and how many rows you excluded." If it cannot answer, or the steps do not match the numbers, have it redo the calculation.

  • Look for these words in the code In Python code, find the lines with drop_duplicates (removes duplicates), dropna (drops rows with missing values), fillna (fills missing values with something), groupby (totals by group) and merge (joins tables). If there is a fillna, check what it filled with; after a merge, check that the row count did not grow.

  • Check the denominator and period of ratios and growth rates If you see "+30% month over month," have it say what the denominator was and which periods were compared. Also check that a partial month was not compared as a full month.

  • Look at the chart's axis If a bar chart's vertical axis does not start at 0, small differences look large. When asking for a chart, add "start the vertical axis at 0."

Checking promptFor the totals you just produced, give the original row count and the number of rows used, the rows you excluded and why, the value used if you filled any missing values, and the full code you used. Then compute the total again by a different method (calculate each row and add them up) and show whether the two match.

Having the AI recheck itself does not replace writing a formula yourself, but it helps reveal differences in handling. For any number that goes to a meeting or a report, at least compute the total and the count once in your own spreadsheet and confirm they match. Microsoft's help for Copilot in Excel likewise says to review and verify anything Copilot creates before relying on it. For the wider set of mistakes that come from trusting AI output as is, see common troubles when using AI.

5. What to check before handing over confidential data

With ① and ②, the data itself is sent to the AI service. Before handing over customer lists, unpublished sales or HR evaluations, check these five points.

What to checkWhyWhere to look
Whether your company's usage policy allows itMany companies forbid entering data into tools or contracts they have not approvedYour internal policy (how to write one: corporate AI usage guidelines)
Whether inputs are used for trainingConsumer plans depend on your settings, and their defaults differ from business plansOpenAI says it does not use content from business offerings such as the API and ChatGPT Enterprise to improve its modelsDefaults by plan: the training section of the efficiency guide
Where it is kept, and for how longDeleting a chat may leave files or logs behindIn ChatGPT, saved files must be deleted separately from the conversationClaude for Excel inputs and outputs are deleted within 30 days except in listed cases; ChatGPT for Excel / Google Sheets keeps some logs for 30 days
Who can read it through a spreadsheet add-inThe spreadsheet vendor's terms apply, not just the AI company'sChatGPT for Excel's help says that under Microsoft's add-in marketplace terms, Microsoft may be able to read the workbook content
Whether the file came from outsideHidden instructions in a file could make the AI extract data or take other actionsClaude for Excel's docs warn to use it only with trusted files and to review confirmations of risky operations carefully

Data you cannot hand over can still be analyzed without handing it over. Make a copy with columns such as names, email addresses and employee IDs removed or replaced with meaningless numbers, and hand over the copy. If even that is difficult, use approach ③: give the AI only the column names and the calculation you want, have it write formulas or Python code, and run them in your own spreadsheet. Microsoft says Python in Excel code runs in an isolated container in the Microsoft Cloud, that the data is not stored there, and that it is not used for AI training by Copilot.

If a Google Sheets file is shared with people outside your organization, the Gemini panel warns that content added by Gemini may be visible to users outside your domain. Check the sharing scope before handing data over too. For criteria on what is safe to type into an AI, see information you should not enter into AI.

6. What to leave to AI and what people decide

A good place to draw the line is whether someone is harmed if it is wrong. None of the vendors' help pages say AI results can be used without checking. Anthropic does not recommend Claude for Excel for final client deliverables without human review or for audit-critical calculations without verification.

Type of analysisLeave to AIPeople decide
Exploration (grasping what is happening)Totals, charts, outlier candidates and suggested anglesWhich angle is really worth pursuing
PreparationStandardizing labels, detecting duplicates, splitting or joining columnsThe rules for handling duplicates, missing values and outliers
Numbers for a reportDrafts of formulas and PivotTablesMatching counts and totals, and finalizing the numbers
Explaining causesSeveral hypotheses about the causeWhether a correlation can be called a cause (AI sometimes writes correlations as causes)
Numbers tied to finance, audit or regulationExplaining the calculation steps and helping check formulasThe final calculation itself and responsibility for it

To turn the results into meeting materials, continue with how to create presentation slides with AI; to start by pulling numbers out of paper forms or table images, see how to extract text from images with AI OCR; and to polish the report text inside Word, see how to use ChatGPT for Word. ChatGPT's help also notes that exact values in image-based tables may not be read reliably, so upload a spreadsheet or text-based file when exact values matter.

Summary

To analyze data with AI, hand over a file and ask; the AI uses Python or formulas to produce totals, charts and an explanation. There are three ways to start: to analyze a file once, ① hand it to a chat (ChatGPT, Claude, Gemini); for daily spreadsheet work, ② use the AI inside the spreadsheet (Copilot in Excel, Claude for Excel, ChatGPT for Excel / Google Sheets, Gemini in Google Sheets); and when the data cannot leave, ③ have the AI write only formulas or code and run them in your own sheet (Python in Excel and similar).

As the practice data showed, how one duplicate row and one missing value are handled makes August either the lowest or the highest month. Before letting the AI calculate, have it describe the data, decide and state how duplicates, missing values and inconsistent labels should be handled, match the count and total in a spreadsheet, and only then chart it. For confidential data, check the company policy, the training settings, the retention period, the add-in terms and where the file came from before handing it over, or analyze it with approach ③ without handing it over.

FAQ

Q. Can I analyze data without knowing how to program?
A. Yes. Hand over a file and ask in plain language, and the AI writes and runs Python code or formulas. What you need is not the ability to write code but the habit of checking whether the result is right. Simply computing the count and total with COUNTA and SUMPRODUCT in a spreadsheet and comparing them with the AI's answer catches the big mistakes.

Q. How much can I do for free?
A. ChatGPT, Claude and Gemini all let you hand over files for analysis on their free plans. However, ChatGPT Free is limited to 3 file uploads per day, and ChatGPT for Excel / Google Sheets has limited usage on Free and Go. Claude for Excel requires Pro or higher, and Copilot in Excel requires an eligible Microsoft 365 subscription. For how the free plans differ, see the ChatGPT, Claude and Gemini free tier comparison.

Q. What should I do with large files?
A. The limits are about 50MB for CSV files and spreadsheets in ChatGPT, 30MB per file in Claude, and 100MB per file in the Gemini app. ChatGPT's help says that even within the limit, spreadsheets with many complex formulas may not be fully analyzed, and suggests focusing on specific sheets or rows or splitting the file. Extracting only the columns and period you need before handing it over is the reliable approach.

Q. Which is best: ChatGPT, Claude, Gemini or Copilot?
A. Deciding by where your data is gets you there fastest. If you work in Excel workbooks, use Copilot in Excel, Claude for Excel or ChatGPT for Excel inside Excel; for Google Sheets, Gemini or ChatGPT for Google Sheets; to analyze a CSV once, the chat you already use is fine. If ease of checking the work matters most, Claude for Excel with its cell-level citations and Gemini in Google Sheets, which can show its analysis steps and code, are the clearest.