AI guidesExcel with AI

Analyse Excel and data with AI: formulas, pivots, charts and clean data

AI can write the formula you have been fighting for an hour, clean a supplier's messy export, and turn a sales sheet into a pivot and a chart in minutes. It can also add a wrong total with full confidence. Here is the free route, the paid route, which tool fits which job, and how to check the result.

11 min read

01AI is a fast bookkeeper who never sleeps, but still needs an audit

Think of AI as a new office bookkeeper who types ten times faster than anyone. Give them a box of receipts and an hour later you have a tidy sheet, totals and a chart. But they sometimes skip a row, count a header as a number or mix VAT-inclusive amounts with VAT-exclusive ones. So you keep the original receipts and you check the bottom line, every time.

02Free route vs paid route

Free

Free: AI chat plus free spreadsheet tools

  • Claude's free plan runs code on an uploaded Excel or CSV file and returns a new, formatted xlsx
  • Free ChatGPT and Gemini can read a spreadsheet, explain it and suggest formulas (limits vary by plan)
  • LibreOffice Calc: a full free spreadsheet with pivot tables and charts
  • Python with pandas in JupyterLab: free, repeatable analysis that AI writes for you
  • VisiData and OpenRefine: free tools to explore and clean large, messy files

Limit: Daily usage limits, no AI inside the Excel window, and you copy results back by hand

03The safe way to work with data and AI

  1. 1CopyWork on a copy, keep the original file untouched
  2. 2DescribeExplain columns, units, currency, VAT and what you want
  3. 3AI buildsFormulas, pivot, chart or cleaning steps, in the sheet or in code
  4. 4CheckRow counts, totals vs source, spot-check 5 rows by hand
  5. 5Keep the recipeSave the prompt, formulas or Python code for next month

04The best tools for Excel and data analysis

1

Best at: Reads a whole workbook, explains formulas with cell citations, fixes #REF! errors and builds clean new sheets or models.

Free

Chat with code execution: upload xlsx or CSV, get analysis, charts and a new Excel file back

Paid

Pro about 20 USD a month (17 billed yearly): more usage and the Claude for Excel add-in (Pro, Max, Team, Enterprise)

Add-ons that help 5
  • Add-onClaude for ExcelSidebar inside Excel (web, Windows, Mac): edits pivots, sorts, filters, adds conditional formatting and keeps formula links intact.
  • SkillBuilt-in Excel (xlsx) skillAnthropic's skill that Claude uses automatically to create properly formatted spreadsheets with working formulas.included
  • SettingCode execution and file creationMust be on for skills and file output; Claude computes in Python instead of guessing.included
  • SettingInstructions in the add-inFixed rules for every chat, such as ILS with thousand separators and bold headers.included
  • SettingProjectsKeep your price list, BOQ template and office conventions available in every chat.included
2

Best at: Already inside the Excel you use: formulas, PivotTables, charts and highlighting, without leaving the file.

Free

No Copilot in Excel without a subscription

Paid

Microsoft 365 Personal 9.99 USD, Family 12.99 USD, Premium 19.99 USD a month, with AI usage limits

Add-ons that help 3
  • ModeAgent ModeBuilds and edits a workbook step by step with tables, charts, PivotTables and formulas; on Premium and Copilot business licences, rolling out to more plans and regions (not yet in the EU per Microsoft).
  • SettingAutoSave on OneDriveCopilot in Excel needs the file saved to OneDrive or SharePoint with AutoSave on.included
  • SettingFrontier featuresPersonal, Family and Premium users can switch on preview features in Copilot settings.included
3

ChatGPT

OpenAI

Best at: Upload a sheet and get Python analysis, interactive tables and charts you can explore.

Free

Limited file uploads and data analysis, depending on model and current allowance

Paid

Plus about 20 USD a month: more data analysis and uploads

Add-ons that help 3
  • ModeData analysis (Python)Reads xls, xlsx and CSV, runs pandas and shows the code it used.included
  • ConnectorGoogle Drive, OneDrive, SharePointAttach the sheet straight from the cloud, where your plan allows connectors.included
  • SettingProjectsKeep one job's files and rules together for monthly reports.included
4

Best at: For teams in Google Sheets: side panel that creates tables, formulas, charts and pivot tables, plus the AI function in cells.

Free

The Gemini app is free; Gemini inside Sheets needs an eligible Workspace or Google AI plan

Paid

Google AI Pro 19.99 USD a month or a Workspace business plan (check current plans)

Add-ons that help 3
  • Add-onAI function, =AI("prompt", range)Classify or summarise text row by row, for example tag complaints by type. Text only, up to 350 cells per run.
  • GPT/GemYour own GemFixed rules for your reports: units, currency and column names.free
  • SettingSave xlsx as Google SheetsGemini works best on native Sheets files, so convert the Excel file first.included
5

Julius AI

Julius AI

Best at: A chat built only for data: upload files, ask in plain words, get charts and statistics.

Free

Free plan with a daily credit allowance and lighter models

Paid

Plus 20 USD a month (16 billed yearly), Pro 45 USD

Add-ons that help 2
  • ConnectorGoogle Drive, OneDrive, SharePointAvailable even on the free plan.free
  • Add-onScheduled runsRepeat a weekly report automatically on paid plans.
6

Best at: Free, offline and private: AI writes the formulas or the pandas script, your computer does the work.

Free

Everything is free: Calc, Python, pandas, JupyterLab, VisiData (GPLv3), OpenRefine

Paid

No paid plan needed

Add-ons that help 4
  • Add-onPython and pandasRepeatable cleaning and analysis of thousands of rows; ask AI to write the script.free
  • Add-onJupyterLabRun the script step by step and see each table, then export to Excel.free
  • Add-onVisiDataOpen huge CSV or xlsx files in the terminal and get an instant histogram per column.free
  • Add-onOpenRefineClean inconsistent names, such as 5 spellings of the same supplier.free

05Which tool for which job

JobRecommended toolWhy
Write or fix a complex formulaClaude for Excel or Copilot in ExcelSees the real cells, explains the formula and traces #REF! or #DIV/0!
Pivot table and chart from sales dataCopilot Agent Mode, Claude for Excel or Gemini in SheetsBuilds the pivot directly in the workbook
Clean a messy supplier exportClaude or ChatGPT with Python, OpenRefineCode fixes thousands of rows the same way every time
Quantity take-off (BOQ) sheetClaude (chat or Excel add-in)Builds a structured sheet with quantity, unit, rate and total formulas
Monthly cost or sales trackingPython pandas script written by AI, or Claude ProjectsOne recipe you rerun every month
Tag free-text rows (complaints, notes)Gemini AI function in SheetsClassifies row by row inside the sheet
Very large files, privacy mattersPython, VisiData, LibreOffice (offline)Data never leaves your computer
Quick look at a file without ExcelVisiData or Julius AI freeOpen, sort and count in seconds

06Example: a quantity take-off sheet

Site engineer preparing a bill of quantitiesasks
Attached is my list of elements from the drawings (CSV). Build an Excel BOQ: columns item no., description, unit, quantity, unit rate, total. Totals must be formulas, not numbers. Add a subtotal per chapter, a grand total, 17 percent VAT on a separate line, and highlight any row with a missing rate. Do not change my quantities.
gets
A formatted xlsx with live formulas, chapter subtotals, a VAT line and red highlighting on 4 rows without a rate. You check that the row count matches the CSV and that the grand total equals the sum you get with a simple SUM.
ToolClaude (free chat with code execution and the built-in Excel skill)

07Example: sales tracking with a pivot and a chart

Office manager at a small supplierasks
In this workbook, the Sales sheet has date, customer, product, quantity and amount. Create a pivot of amount by month and product, a line chart of the last 12 months, and a short summary of the 3 biggest changes. Put everything on a new sheet.
gets
A new sheet with a PivotTable, a chart and three bullet points such as 'anchors up 22 percent since March'. You click the cited cells to confirm the numbers.
ToolCopilot in Excel (Agent Mode) or Claude for Excel

08Example: cleaning a messy export

Purchasing coordinatorasks
This supplier price file has merged headers, prices as text with ILS signs, dates in two formats and the same item listed twice. Write a pandas script that cleans it, logs every change, and saves a clean xlsx plus a list of the duplicates. Explain each step.
gets
A short Python script, a clean file and a change log. Next month you run the same script on the new file in JupyterLab in seconds.
ToolChatGPT data analysis or Claude, then Python pandas in JupyterLab

09Start in 5 minutes

  1. 1

    Save a copy

    Duplicate the file and add _AI to its name. Never let the AI edit the only original.

  2. 2

    Remove what is sensitive

    Delete or mask customer names, ID numbers and bank details if they are not needed for the question.

  3. 3

    Open the right tool

    In claude.ai turn on code execution and file creation, or open Copilot or the Claude add-in inside Excel.

  4. 4

    Describe the data

    Say what each column is, units, currency, VAT included or not, and what the output should look like.

  5. 5

    Ask for formulas, not values

    Write: totals must be live formulas, show me the formula you used.

  6. 6

    Check the result

    Compare row counts and the grand total with the source, and spot-check five rows by hand.

  7. 7

    Save the recipe

    Keep the prompt or the Python script in a Project so next month takes one minute.

10Do and don't

Do

  • Work on a copy and keep the original file
  • Ask for formulas and code you can see
  • Check totals against an independent SUM
  • Mask personal and financial details first
  • Open only files you trust in an add-in

Don't

  • Paste a total from chat into a quote without checking
  • Let the AI overwrite source data
  • Upload full payroll or client bank data to a free chat
  • Assume a currency, unit or VAT rule the AI guessed
  • Use downloaded templates blindly: they can hide instructions

11FAQ

Is the free version enough?

For occasional work, yes: free Claude or ChatGPT can analyse an uploaded file and return a new Excel file, and LibreOffice plus pandas cover the rest. Working inside the Excel window needs a paid plan.

Claude for Excel or Copilot in Excel?

Both work inside the workbook. Copilot comes with Microsoft 365 subscriptions; Claude for Excel needs a Claude Pro plan or higher and gives cell-level citations. Many offices use whichever subscription they already pay for. Check current plans.

Can I trust the numbers?

Not blindly. Ask for formulas, compare totals with the source and spot-check rows. Anthropic itself says not to use the add-in for final deliverables or audit-critical calculations without human review.

What about the privacy of financial data?

Read your plan's data settings, prefer business plans for company data, remove what is not needed, and use offline tools (Python, LibreOffice, VisiData) for the most sensitive files.

Can AI write macros or VBA?

Chat tools can write VBA code for you to paste and test, but Claude for Excel does not run macros or VBA. For repeat jobs a pandas script is often simpler and safer.

More in this guide

Design an image with AI: create, edit and improve pictures, free and paidImages with AIDesigning an AI Character: Mascot, Avatar, Talking Presenter, 3DTask: AI characterEngineering calculations with AI: compute, check and document properlyCalculations with AIBuild engineering software with AI: from a small calculator to an app, without being a programmerSoftware without codingFind a product with AI: search, compare and verify products, suppliers and datasheetsFind and compare productsFind a standard with AI: the right standard and clause, without the hallucinationsStandards, no guessingDesign a website with AI: a landing page or engineering office site, from idea to domainA site in an hourMake a presentation with AI: technical and sales decks, from outline to PPTXTask: presentationWrite a report with AI: technical reports, site reports, calculation notes and quotesTask: reportDrawings and diagrams with AI: flowcharts, process schematics and simple CADDrawing with AIVideo and animation with AI: explainer clips, product animations, subtitles and voice-overVideo with AIResearch the web with AI: answers with sources, not guessesResearch with sourcesOrganise your files and desktop with AI: rename, sort, deduplicate and OCR without losing a fileTidy, not riskyTranslate technical documents with AI: datasheets, manuals and specs, without losing terms or layoutTask: translationThe Claude Toolkit: What to Add for Every Task So It Works BetterA kit for every taskThe full Claude guideEverything you need to start, step by step

Back to the AI page