# How to use AI with spreadsheets and data · AI in Bed

https://www.aiinbed.com/everyday-ai/ai-for-spreadsheets · Published 2026-11-26

**Short answer:** Describe what you want in plain words and let AI write the formula, clean the data or run the analysis. Copilot in Excel and Gemini in Google Sheets work inside your spreadsheet; ChatGPT and Claude can analyse an uploaded file and make charts for free; and Google Colab with Gemini, or the open-source Jupyter AI, write Python for bigger data. Always check a few results by hand.

### What AI is good at here

- Write and explain formulas: lookups, nested IFs, date maths, text splitting.
- Clean messy data: fix inconsistent names, split columns, find duplicates.
- Summarise a sheet: totals, trends, outliers and "what changed since last month?"
- Make charts and pivot tables from a sentence.
- Write scripts and macros that automate the dull, repeated steps.

### The best tools

- **[ChatGPT](https://chatgpt.com)** (Free plan, OpenAI). Best for: Analyse a file, free. Upload a CSV or Excel file and ask questions. It writes and runs Python behind the scenes and shows charts. File uploads are limited on the free plan.
- **[Claude](https://claude.ai)** (Free plan, Anthropic). Best for: Careful analysis and reports. Reads spreadsheets and data files, runs analysis code and can build an interactive chart or dashboard you can share.
- **[Copilot in Excel](https://www.microsoft.com/microsoft-365/excel)** (Paid, Microsoft). Best for: Inside Excel. Suggests formulas, highlights trends and builds pivot tables and charts from a question, on Microsoft 365 plans with Copilot.
- **[Gemini in Sheets](https://workspace.google.com/products/sheets/)** (Paid, Google). Best for: Inside Google Sheets. Builds tables, formulas and charts from a prompt, and an AI function that can classify or summarise text cell by cell.
- **[Google Colab](https://colab.research.google.com)** (Free, Google). Best for: Python without setup. Free notebooks in the browser with Gemini built in to write and fix pandas code for you. Handles files too big for a spreadsheet.
- **[Jupyter AI](https://github.com/jupyterlab/jupyter-ai)** (Open source, Project Jupyter). Best for: Open-source notebooks. Adds a chat assistant to JupyterLab that can use many model providers, including local models through Ollama.
- **[LibreOffice Calc](https://www.libreoffice.org)** (Open source, The Document Foundation). Best for: Free office suite. A free, open-source spreadsheet that opens Excel files. Pair it with any chatbot for formula help.

### A simple workflow

1. **Describe your data:** the column names, what one row is, and a few example rows (made-up or anonymised if it's sensitive).
2. **Say the goal, not the formula:** "For each customer, total sales in 2026, ignoring refunds."
3. **Ask it to explain the formula** in a sentence, so you can spot wrong assumptions.
4. **Test on a few rows** you can check by hand before filling the whole column.
5. **For analysis, ask for the method too:** what it filtered, how it handled blanks and outliers.
6. **Save the result as a formula or script,** not just a number, so you can rerun it next month.

### Prompts to copy

**Formula:**

> In Google Sheets, column A has dates, B has customer names and C has amounts (refunds are negative). Write a formula for total sales per customer in 2026 excluding refunds, and explain how it works.

**Clean up:**

> Here are 20 rows from my sheet. The company names are inconsistent ("Acme Ltd", "ACME", "Acme Limited"). Suggest a cleaned name for each, and a formula or steps to do this for all 3,000 rows.

**Analysis:**

> Analyse this file. First describe the columns and any data problems. Then tell me the 3 most important trends, with a chart for each, and say exactly how you calculated them.

### Tips for better results

- Say which tool and version you use: Excel, Google Sheets and LibreOffice formulas differ.
- Use named ranges or tables so formulas stay readable when AI writes them.
- Ask for an "audit column" that flags rows where the formula found something odd.

### Watch out for

- AI can quietly misread a column or skip rows. Spot-check results against the raw data.
- Don't upload customer, payroll or health data to tools your organisation hasn't approved. Use sample data to get the formula, then run it yourself.
- A chart that looks convincing can still be wrong. Check the axes, units and date range.

### Questions

**Can AI write Excel formulas?**

Yes. Describe your columns and what you want to calculate, and any chatbot will write the formula and explain it. Copilot in Excel and Gemini in Google Sheets do it inside the spreadsheet.

**What is the best free AI for data analysis?**

ChatGPT and Claude can analyse uploaded files and make charts on their free plans, within limits. Google Colab is free and has Gemini built in to write Python for larger datasets.

**Can AI analyse data without me knowing how to code?**

Yes. Tools like ChatGPT, Claude and Copilot write and run the code for you. It still helps to ask them to explain each step, so you can catch mistakes.
