Explore our AI courses, practical training for non-technical teamsExplore courses Explore AI courses
ChatGPTExcelHow-To

How to Use ChatGPT for Excel: Formulas, Analysis, and Cleanup

You don't need to memorise INDEX MATCH ever again. Here is how to turn ChatGPT into the Excel expert sitting next to you.

TLDR: ChatGPT can write Excel formulas from a plain-English description, explain what a confusing formula does, clean up messy data, and tell you exactly how to build a pivot table or chart. You stay in control; it does the fiddly part.
0lines of code you need to write
5steps to a clean, analysed sheet
1habit that prevents costly errors

Share this article

The Short Version

The fastest way to get better at Excel in 2026 isn’t a course. It’s learning to describe what you want in plain English and letting ChatGPT translate it into the formula, the steps, or the cleanup logic. This guide gives you the workflow and the exact prompts for formulas, data cleaning, pivot tables, and analysis, plus the one habit that keeps you from trusting a wrong answer.

Why ChatGPT and Excel work so well together

Here is the thing about Excel: the hard part was never the maths. It was remembering the exact syntax. Was it VLOOKUP or XLOOKUP? Does the comma go there? Why is it returning #REF! again? Most people lose more time fighting the formula bar than actually thinking about their data.

That’s exactly the gap ChatGPT fills. You describe what you want in normal words, and it hands back the formula, the steps, or the explanation. You’re not learning to code. You’re learning to ask clearly, which is a much smaller skill than people think.

One important note before we start. ChatGPT in your browser doesn’t live inside Excel, so it can’t click cells for you. You’ll be copying formulas and instructions across. If you want AI that acts directly inside the workbook, that’s Microsoft’s Copilot territory (we cover the trade-offs in our Copilot comparison). For everything below, plain ChatGPT works beautifully and costs nothing on the free tier.

Writing formulas from plain English

This is the use most people start with, and it’s genuinely the one that saves the most time. The trick is to describe three things: what your data looks like, what you want to happen, and which cells are involved.

Prompt you can copy

“In Excel, I have names in column A and sales amounts in column B, rows 2 to 200. Write a formula that adds up only the sales where the name in column A is ‘Priya’. Tell me which cell to put it in and explain it in one sentence.”

You’ll get a clean SUMIF formula, a note on where to paste it, and a plain explanation. The explanation matters more than it looks: read it, because it’s how you catch when ChatGPT misunderstood your layout.

The most common reason a formula comes back wrong is that you described your columns vaguely. “I have some sales data” gives ChatGPT nothing to work with. “Dates in A, region in B, revenue in C, rows 2 to 500” gives it everything. Be specific about columns and rows and your hit rate jumps.

Explaining a formula you didn't write

Inherited a spreadsheet held together by a formula nobody understands? This is one of my favourite uses. Paste the formula in and ask ChatGPT to translate it.

Prompt you can copy

“Explain this Excel formula in plain English, step by step, like I’ve never seen it before: [paste the formula]. Then tell me one thing that could break it.”

That last line is the useful bit. Asking what could break a formula surfaces the assumptions baked into it: a hard-coded range, a column that shifts, a lookup that fails silently. You go from “I don’t dare touch this” to actually understanding your own sheet.

Cleaning up messy data

Real spreadsheets are messy. Names in inconsistent capitalisation, dates stored as text, extra spaces, “N/A” mixed with blanks. ChatGPT is excellent at telling you how to fix all of it, either with a formula or with Excel’s built-in tools.

  • Split one column into two: ask how to split “Surname, Firstname” into separate columns. It’ll point you to Text to Columns or a formula.
  • Standardise text: “give me a formula to make every name in column A proper case and remove extra spaces.”
  • Fix dates stored as text: describe the format you have and the format you want.

For a deeper dive on letting AI do the heavy lifting once your data is clean, we wrote a full walkthrough on how to analyse a spreadsheet with AI. Clean first, analyse second. Doing it in that order saves you from drawing confident conclusions from broken data.

Pivot tables, charts, and analysis

Pivot tables intimidate people more than almost anything in Excel, and they shouldn’t. Describe the question you’re trying to answer, and ChatGPT will give you the exact click-by-click steps to build the pivot table that answers it.

Prompt you can copy

“I have a sheet with columns: Date, Salesperson, Region, Revenue. Walk me through building a pivot table that shows total revenue by salesperson, broken down by region. Give me the exact steps in Excel.”

You can go further. Paste a small summary of your numbers (not thousands of rows, just the totals) and ask ChatGPT what stands out, what looks odd, and what you should investigate. It’s a sharp second pair of eyes for spotting a trend or an outlier you’d have missed. This is the same logic we apply in our guide to using ChatGPT for financial analysis: let it surface the questions, you make the judgement.

5 prompts worth saving

You don’t need a hundred prompts. You need a handful that cover the tasks you actually repeat. Keep these somewhere you can grab them, and tweak the specifics each time.

  • The formula builder: “In Excel I have [describe columns and rows]. Write a formula that [what you want]. Tell me which cell to use and explain it in one sentence.”
  • The error fixer: “This Excel formula is returning [the error]. Here it is: [paste]. Explain why, and give me a corrected version.”
  • The translator: “Explain this formula in plain English, step by step, then tell me one thing that could break it: [paste].”
  • The cleaner: “I have messy data in column [X] that looks like [example]. Give me the fastest way to standardise it, either a formula or Excel’s built-in tools.”
  • The analyst: “Here are my summary totals: [paste]. What stands out, what looks odd, and what should I investigate before I report this?”

That’s most of what a non-technical professional needs from Excel, covered by five reusable prompts. The investment is learning to fill in the brackets clearly, which gets easier every time you do it. If you find yourself running the same one daily, save it as a Custom GPT so it’s one click away.

The 5-step workflow

Put it together and a normal “ugh, this spreadsheet” task becomes a calm, repeatable routine.

From messy sheet to clear answer

1DescribeTell ChatGPT your exact columns and rows
2CleanFix text, dates, and gaps first
3BuildGet the formula or pivot steps
4AnalyseAsk what stands out in the totals
5VerifySpot-check before you trust it

The repeatable ChatGPT-for-Excel workflow described in this guide.

Run it a few times and it stops feeling like a process. It just becomes how you do spreadsheets.

The one habit that keeps you safe

Here’s the honest warning. ChatGPT will sometimes give you a formula that looks perfect and is subtly wrong, especially with complex nested logic or edge cases like empty cells. It says it with total confidence either way. That’s not a reason to avoid it. It’s a reason to check.

The habit: test every formula on a small set of rows where you already know the answer. If you know Priya’s sales should total 4,200, run the formula and confirm it returns 4,200 before you trust it across 5,000 rows. Thirty seconds of checking saves you from sending a report built on a broken sum.

Treat ChatGPT like a brilliant intern, not an oracle. Fast, capable, occasionally confidently wrong. Always verify the numbers that matter.

Do that, and you get the best of both worlds: the speed of AI and the safety of a human who actually checked. That combination, not blind trust, is what makes AI genuinely useful at work.

Frequently Asked Questions

Can ChatGPT write Excel formulas for me?

Yes. Describe your data layout (which columns and rows hold what) and what you want the formula to do, and ChatGPT will write it and explain it. Be specific about your columns and rows for the best results, and always test the formula on a few rows where you already know the answer.

Is ChatGPT better than Excel's built-in Copilot?

They do different jobs. ChatGPT is free or low-cost and great at writing and explaining formulas you then paste in. Microsoft’s Copilot lives inside Excel and can act on your workbook directly, but it requires a paid Microsoft 365 license. For learning formulas and one-off tasks, plain ChatGPT is usually enough.

Can ChatGPT analyse my spreadsheet data?

It can analyse data you paste in, such as summary totals, and point out trends or outliers worth investigating. For large files, paste summaries rather than thousands of raw rows. Treat its observations as a starting point for your own judgement, not a final answer.

Do I need to share my actual file with ChatGPT?

Not for most of this. You can get formulas, cleanup steps, and pivot-table instructions just by describing your columns. If you do paste real data, avoid anything confidential or personal, and check your organisation’s policy on what can go into AI tools.

What is the most common ChatGPT Excel mistake?

Describing your data vaguely. Saying ‘I have some sales data’ leaves ChatGPT guessing about your layout, which leads to formulas that reference the wrong cells. Always state exactly which columns and rows hold which information, and you will get accurate formulas far more often.

About This Article

This guide is written for non-technical professionals who use Excel for work and want AI to take the pain out of formulas and data cleanup. The workflows reflect how ChatGPT is commonly used alongside Excel in 2026; formula syntax should always be verified against Microsoft’s official Excel documentation and tested on your own data before relying on it.

Sources

  1. Microsoft 365 Blog, “Copilot’s agentic capabilities in Word, Excel, and PowerPoint are generally available” (April 22, 2026), for context on AI working inside Excel. https://www.microsoft.com/en-us/microsoft-365/blog/2026/04/22/copilots-agentic-capabilities-in-word-excel-and-powerpoint-are-generally-available/
  2. Microsoft Support, Excel functions (by category) reference, for verifying formula syntax. https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb
Sana Mian
Sana Mian, Co-Founder of Future Factors AI

Sana is an AI educator and learning designer specialising in making complex ideas stick for non-technical professionals. She has trained 2,000+ learners across corporate teams, bootcamps, and keynote stages. Future Factors offers AI Bootcamps, Corporate Workshops, and Speaking & Consulting for businesses ready to adopt AI without the overwhelm.

More about Sana →

Psst, Hey You!

(Yeah, You!)

Want helpful AI tips flying Into your inbox?

Weekly tips. Real examples. Practical help for busy professionals.

We care about your data, check out our privacy policy.