The Best AI for Excel in 2026, Tested
I still remember the moment Excel stopped feeling like a spreadsheet and started acting like a junior analyst who knew what they were doing.
I was working through a messy month-end report (one of those “this should’ve taken 10 minutes… it took 3 hours and a small piece of my soul” deals) when Copilot casually built a pivot table, charted the results, summarized the drivers, and suggested commentary… all before I’d even finished my coffee.
I just sat there staring at the screen like, “Okay, Excel. I see you.”
That was the moment it clicked: we’re not in the “AI is nice to have” era anymore. We’re in the “Excel is rapidly becoming the smartest person in the room” era.
And the crazy part? The best AI for Excel isn’t just one feature. It’s an entire stack that suddenly snapped into place:
- Copilot chat that can build your formulas, charts, pivots, and summaries in plain English.
- A new =COPILOT function that cleans, classifies, and analyzes data right inside the grid.
- Analyze Data, which quietly pulls insights even when you don’t know what to ask.
- ChatGPT’s ability to spit out fully functional Excel files (budgets, forecasts, dashboards) in literal seconds.
- Python for Excel, which turns your workbook into a fully automated data pipeline.
- And the new Agent Mode… where Excel starts running multi-step workflows like your own AI-powered reporting engine.
Put all of that together and Excel becomes a full-blown automation platform, wearing the same interface you’ve been using since high school computer lab. The rest of this page walks through each one, and where they overlap with the finance automation and business intelligence work you may already be doing.
Copilot Chat in Excel, your new analyst who works in plain English
I did not expect Copilot Chat in Excel to be this good. When Microsoft first teased it, I assumed it would be another “cute but useless” button, like Clippy’s smart, overachieving cousin who still could not help me close the books.
But then I asked it to build me a pivot table. And it did. Then I asked it to chart the results. Done. Then I asked it to explain what changed month-over-month. Nailed it.
That’s when I started treating Copilot Chat as an analyst. A fast one. A weirdly cheerful one. The kind who always volunteers for extra work and never complains about “just one more” pivot.
Here is what it does, and where it falls on its face.
What Copilot Chat does, and what it still cannot

What it can do right now
- Ask it for a nested IF, a weird INDEX-MATCH combo, a SUMIFS with six criteria, it writes it cleanly and explains what it’s doing. Copilot Chat can generate complex formulas, including advanced excel formulas and spreadsheet formulas, through AI-powered formula generation. It automates the process of building and debugging formulas for data analysis and financial modeling.
- For pivot tables you can literally say:
“Create a pivot that shows total revenue by product line for the last 12 months.”
It’ll do it. - On charts, Copilot builds surprisingly clean visuals, and will even suggest which visual tells the story best.
- It summarizes a dataset instantly, which is great for a quick “What’s going on here?” look.
- On a first-pass analysis it highlights drivers, flags anomalies, and calls out trends the way a solid analyst would.
- It drafts commentary. Not perfect, but as a first draft? Chef’s kiss.
Where it still struggles
- Ambiguous data (Copilot hates mystery boxes, label your stuff.)
- Multiple datasets across tabs (Agent Mode will fix this, but Chat isn’t there yet.)
- Messy data (unclean headers, merged cells, random blank columns, all landmines)
- Complex data structures and complex calculations (Copilot Chat may struggle with complex data arrangements or automating complex calculations that require multiple steps or advanced logic.)
- Asking it to “figure it out” without context
Copilot is smart, but it’s not psychic.
The more specific you are, the better the output.
Step-by-step walkthrough, get your first win in 60 seconds
Here’s the fastest way to see Copilot in action, and convince yourself this isn’t hype.
Step 1: highlight your dataset
Copilot is like a toddler: it performs best when you point at the thing you want it to use.
Note: Copilot can help automate data entry tasks, reducing manual effort and minimizing errors.
Step 2: open Copilot and ask for a summary
Try:
“Summarize the key trends in this dataset.”
Copilot will spit out a clean, plain-English overview.
Step 3: drill deeper with follow-up questions
Now the fun starts.
Try:
- “Which customer drove the largest change?”
- “Show me a month-over-month comparison.”
- “Highlight any outliers.”
Copilot understands context and builds on earlier steps.
Step 4: build a pivot + chart in one shot
Ask:
“Create a pivot table showing revenue by product for 2023 and add a line chart.”
Copilot creates both, inserts them into the sheet, and formats them.
Step 5: export results into real cells
Copilot sometimes shows results in its sidebar.
Just hit “Insert” and it drops everything directly into your workbook.
Boom. Your first AI-assisted report.
Finance case study, variance commentary in 15 seconds
This one surprised even me.
The setup
I had a monthly revenue variance that looked… suspicious. Too high. Too clean. You know that “someone fat-fingered something” feeling? Yeah, that.
Normally, I’d:
- build pivots
- slice by customer
- slice by product
- filter by region
- calculate deltas
- write commentary
Thirty to sixty minutes gone. Just to get to:
“Region X spiked because Customer Y had a large one-time order.”
What I did instead
I highlighted the data and asked Copilot:
“Explain the key drivers of the revenue variance vs last month. Then draft a one-paragraph summary an executive could read.”
Copilot:
- built the pivot
- identified the customers driving the change
- flagged a one-time order
- noted seasonality
- drafted commentary that was 80% usable
Total time: 15 seconds.
Half of that was me reading the output with a mix of excitement and existential dread.
What this means for you
If your month-end close includes:
- variance analysis
- trend analysis
- driver analysis
- reforecasting
- commentary writing
Copilot instantly becomes a force multiplier, especially for your “I don’t have time for this but it needs to get done” days.
The =COPILOT function is being retired
If you have been using =COPILOT in a cell, stop building on it. Microsoft is switching it off on 14 September 2026, and workbooks that depend on it will stop working.
This section used to tell you it was the most underrated thing in Excel. It was fun, it genuinely did clever work, and it should never have gone into a finance workbook. Microsoft’s own reason for retiring it explains why.
Why it is going
The function was non-deterministic. Microsoft’s documentation puts it plainly: the same formula, given the same arguments, can return different results over time as the underlying models change.
Sit with that for a second, because in a spreadsheet it is disqualifying. Every other function in Excel is a promise that the same inputs give the same output, forever. That promise is the entire reason a workbook can be audited, reperformed or signed. SUM does not have opinions.
A cell that quietly returns a different answer next quarter is not a formula. It is a saved API call with no version pinned, and it would have failed the first audit that asked someone to reperform it.
What to do if you used it
- Find them. Search your workbooks for =COPILOT before September. A file that breaks during close is a bad way to discover this.
- Freeze the outputs you still need. Copy the results and paste as values, so the numbers survive even though the function does not.
- Move the recurring work to Power Query. Anything you were doing repeatedly, cleaning names, categorizing rows, standardizing text, belongs in a transformation that runs the same way every time.
- Move the one-off work to the side pane, which is where Microsoft has consolidated it.
The Power Query point is the one worth acting on. Most of what people used =COPILOT for was bulk text tidying, and that is a job with a deterministic answer. It only looked like an AI problem because writing the transformation used to be tedious, and a model will now write the transformation for you.
Power Query data cleaning covers exactly that, and it is the version that still runs in three years.
What replaced it
The Copilot side pane, which is a better fit anyway. It keeps a conversation, it can be pointed at a plan you review before it edits, and it leaves a result in the sheet rather than a live cell that might change its mind.
That last difference is the whole argument. A model that writes a value into your workbook is auditable. A model that lives inside the cell is not.
The rule this leaves behind
Worth keeping past this particular feature: if a thing sits in a cell, it has to be deterministic. Put the model in the pane, in the query, or in the script, and let it produce a value. Do not let it be the value.
Nine months of a widely promoted Excel function, retired for the reason a finance person would have raised on day one. That is roughly the rate this whole category moves at, which is an argument for keeping your logic somewhere the vendor cannot reach.
Analyze Data, the Excel feature that reads your numbers for you
Analyze Data is the kid in class who never raises their hand, never causes trouble, and then casually scores a 1580 on the SAT.
It’s been sitting in Excel for years, quietly doing math while the rest of us are over here manually building pivots like it’s still 2012. But with the rise of Copilot, Analyze Data suddenly feels like the secret weapon everyone forgot they had.
Where Copilot Chat waits for you to ask a question… Analyze Data just hands you answers.It looks at your dataset, scans for patterns, identifies anomalies, explains trends, and suggests visuals, all without you typing a single prompt.
If Copilot is the analyst you talk to, Analyze Data is the analyst who taps you on the shoulder and says:
“Hey, you should probably look at this.”
Here is what it does and how I use it in real finance workflows.
What Analyze Data does

Here’s the simplest way to think about it:
Analyze Data is an automated insight engine.
You feed it a dataset, and it gives you:
- Trends (revenue rising, spend tightening, volume dropping)
- Anomalies (that one rogue transaction that shouldn’t exist)
- Drivers (which customer/product/region caused the change)
- Breakdowns (auto-generated pivots for common views)
- Smart visuals (charts that carry a point rather than decorate one)
Note: Analyze Data excels at data visualization and acts as a data visualization platform by automating data visualization tasks within Excel. It simplifies the process of turning raw data into visual insights, making it easy to create charts, graphs, and dashboards automatically.
It’s not meant to replace Copilot Chat or the =COPILOT formula, it’s the appetizer. It gives you a head start before you even think about deeper analysis or automation.
Where it shines
- Early-stage analysis
- KPI scanning
- First-pass trend reviews
- Executive dashboard prep
- Supporting advanced analytics, such as predictive analytics and forecasting
- Checking if your data even makes sense
- “Tell me what I should care about” moments
Where it struggles
- Multiple tables
- Modeling
- Intent-heavy tasks
- Work that requires business logic
- Small datasets (it needs substance to chew on)
- Limitations when you need to combine data from multiple sources or when connecting Excel to external applications
But for raw tables with a decent number of rows? It’s shockingly good.
Step-by-step, from raw dump to insight in 30 seconds
Let’s say you’ve got a big table, sales data, GL transactions, or budget vs actuals.
Here’s how I use Analyze Data to make sense of it fast.
Step 1, click “Analyze Data”
You’ll find it in the Home ribbon.
Excel opens a sidebar that starts scanning your dataset instantly.
Step 2, review the suggested insights
This is where Analyze Data shows off.
You’ll see:
- Automatically generated charts
- Pivot table suggestions
- Breakdown views
- Time-series insights
- Drivers and outliers
- Explanations in plain English
You didn’t tell it what to look for.
It just… found stuff.
Step 3, insert what you want
If a chart or pivot looks useful, hit “Insert.”
Boom, it drops right into your workbook as a real object you can edit.
Step 4, ask Copilot to explain the insight
This is one of my favorite combos.
Take the pivot or chart Analyze Data created, highlight it, and ask Copilot:
“Explain the biggest drivers behind this trend in one paragraph.”
Excel becomes a tag team:
- Analyze Data finds the insight
- Copilot explains it
- You take the credit
This is the future, folks.
Finance case study, automated KPI trends for executive dashboards
Here’s a real example from a CFO dashboard I built recently.
The situation
Monthly KPI packet, 10 metrics:
- Revenue
- Gross margin
- CAC
- Churn
- Cash burn
- ARR
- Operating expenses
- Headcount
- Utilization
- Pipeline coverage
Each one needed a trend chart and a quick blurb on “what happened this month.”
Normally, this is:
- 10 pivots
- 10 charts
- 10 commentary paragraphs
- 60–90 minutes of work
- One large coffee
- Several philosophical regrets
Here’s what I did instead
Step 1, upload raw KPI table
Nothing fancy. Just month, metric, value.
Step 2, use Analyze Data
Excel instantly gave me:
- YoY trend charts
- MoM changes
- Outlier months
- “Big jump” alerts
- Suggested visualizations for each metric
I inserted about eight of them as-is.
Step 3, ask Copilot to explain each insight
For each chart, I used:
“Explain what happened this month and why it matters. Keep it concise.”
Copilot wrote executive-level commentary for all 10 KPIs in under two minutes.
Total time: 3–5 minutes.
Not an exaggeration.
What it means for your workflow
You can now build a monthly exec dashboard in the same time it takes your coffee to cool down.
Analyze Data gives you the “what.”
Copilot gives you the “why.”
You deliver the insight, without drowning in pivots.
ChatGPT-generated Excel files, the ultimate cheat code for finance pros
This is the part where people either lean in with curiosity… or immediately assume I’m exaggerating.
Yes, ChatGPT can generate full, working Excel files and Excel spreadsheets. You can also extend this functionality with an Excel plug in, such as PromptLoop, to bring AI capabilities directly into your spreadsheets.
Yes, they open in Excel like any normal workbook. Yes, they include formulas, tables, charts, formatting, conditional logic, and even multi-sheet models.
And yes, this is absolutely a cheat code.
If you’ve ever sat down to build a new budget model, a P&L template, a dashboard, or a forecast from scratch and thought, “I swear I’ve done this 30 times already,” this section will feel like a warm hug.
Let’s break down why this works, how to do it step-by-step, and how I’ve used it in real finance work.
Why this is a cheat code
Before this feature dropped, my workflow for building new templates looked like:
- open a blank workbook
- fiddle with column widths
- create a table
- add formatting
- write formulas
- test formulas
- add conditional formatting
- build charts
- add rollups
- manually fix everything that doesn’t line up
- question my life choices
Now?
I describe the workbook to ChatGPT and two seconds later I’m downloading a fully built version.
ChatGPT handles:
- sheet structure
- table layouts
- formatting
- formulas
- data validation
- named ranges
- drop-downs
- charts
- dashboards
- roll-ups
- helper sheets
- even instructions for the end user
- automatically generating spreadsheet formulas and excel formulas, so you can improve your excel skills without manual effort
You don’t need to build 90% of your templates anymore. You just need to edit what AI gives you.
It’s like hiring a junior analyst who builds the skeleton instantly so you can focus on the logic that matters.
Step-by-step, how to generate a full Excel file
Here’s the exact process I use when I want ChatGPT to build a workbook from scratch.
Step 1, draft your structure in plain English
Tell ChatGPT what you want, like you’re giving a requirements doc.
Example:
“I want a three-sheet Excel file:
Sheet 1: Inputs, table for assumptions with columns for assumption name, value, and notes.
Sheet 2: Model, revenue model using units * price, driven by Inputs.
Sheet 3: Dashboard, KPI summary, sparkline charts, and key callouts.
Format it cleanly using tables and apply consistent styling.”
Think like a PM, not an analyst.
Step 2, tell it the logic
Be explicit about formulas.
Example:
“Revenue = Units Price
Gross Profit = Revenue Gross Margin
Net Income = Gross Profit – Operating Expenses”
ChatGPT will wire all the formulas correctly on the backend.
Step 3, ask it to generate the file (.xlsx)
This is the magic line:
“Generate this as an .xlsx file I can download.”
ChatGPT compresses everything into a downloadable Excel file.
Step 4, download and open in Excel
It’s a real file.
No converter.
No plugins.
No scripts.
Just click and open.
Step 5, use Copilot to adapt it to real data
Once the file is open, I usually ask Copilot:
“Map this template to my actual data on Sheet4.”
or
“Update the dashboard to reflect this new dataset.”
This turns the AI-generated file into a fully customized, production-ready workbook.
Finance case studies
These are all real templates I’ve had ChatGPT build for me, and the time saved is not small.
Case study #1, month-end reporting template
Before AI:
2–4 hours to build structure, layout, and initial formulas.
With ChatGPT:
I sent a prompt describing:
- Summary sheet
- GL detail sheet
- Mapping table
- Variance analysis sheet
- Dashboard with YoY/MoM views
- Conditional formatting rules
ChatGPT generated the full file in a minute.
Copilot then rewired it to my data.
Total time saved: 2–3 hours every month.
Case study #2, OPEX budget model
I asked ChatGPT for:
- driver-based expense inputs
- FTE tables with salary + benefits
- rolling 12-month view
- headcount forecast
- dynamic labels
- spend waterfall chart
The file opened perfectly formatted and linked.
I’ve built budget models for years, this one took 1/10th the time.
Case study #3, executive KPI dashboard
I needed a CEO-facing dashboard with:
- revenue trends
- gross margin
- cash runway
- headcount
- ARR
- pipeline coverage
ChatGPT built all the visuals, metrics, and formatting automatically.
I dropped in real data and Copilot redid the charts.
End to end?
Maybe 5 minutes.
Case study #4, board reporting pack
This one still cracks me up.
I prompted ChatGPT to build:
- cover page
- financial summary
- KPI trends
- variance waterfall
- departmental spend pages
- forecast update
- risks & opportunities
- a page for commentary prompts
It generated a 15-sheet board pack with consistent formatting across the entire file.
I’ve worked at companies where teams spent weeks building this.
AI did it in seconds.
Python in Excel 365: the secret weapon hiding in plain sight
If Copilot is Excel’s brain and =COPILOT is its superpower… Python in Excel is the part where Excel quietly puts on a cape and starts flying.
The first time I ran Python directly inside Excel, I had a small identity crisis. I’ve spent half my career teaching analysts how to clean data, automate reports, and build models with Python, but always outside Excel. Jupyter notebooks, VS Code, cloud pipelines… you know the drill.
Then Microsoft basically said:
“Hey, what if we let you run pandas inside Excel? Right next to your formulas. In the same workbook. With zero setup.”
And suddenly the ceiling moved.
Now I can:
- clean datasets
- automate month-end reports
- run real forecasting models
- build charts
- create formatted tables
- orchestrate workflows
- pull live data
- do multi-step transformations
- handle real automation inside the grid
All of this is now possible thanks to artificial intelligence and the integration of advanced ai tools directly within Excel.
And do it all without leaving Excel.
Let’s break down why this matters, and how to use Python in Excel on real finance workflows.
Why Python matters more than you think
You know how Excel gets cranky when you throw more than ~100k rows at it?
Python doesn’t flinch.
You know how nested IFs make spreadsheets unreadable?
Python turns the same logic into five clean lines.
You know how Power Query is great… until your transformations get complicated?
Python handles the gnarly parts without complaint.
While traditional Excel tools, Excel add-ins, and VBA scripts can automate repetitive tasks and extend Excel’s capabilities, they often hit limits with complex workflows or large datasets. Python, on the other hand, offers more flexibility and power for advanced automation and data processing.
When you add Python to Excel, you get:
- pandas for data cleaning
- numpy for calculations
- matplotlib for charts
- scikit-learn for forecasting (yes, really)
- statsmodels for regression
- openpyxl formatting commands (through Excel’s rendering)
- real automation logic that would normally require a script or ETL tool
Excel becomes not just a spreadsheet, but a programmable data-processing engine.
It’s the difference between “moving numbers around” and “building an actual workflow.”
Step-by-step, running your first Python cell
You don’t need to install anything. You don’t need drivers. You don’t need IT to give you a server.
All you need is a Microsoft 365 subscription and a working version of Excel.
Here’s how to get started.
Step 1, enable Python
In Excel, go to:
Formulas → Insert Python
If this is your first time, Excel will ask to turn on Python mode. Click yes.
Step 2, load your table into a DataFrame
Highlight your table and give it a name, for example: SalesData.
Then enter a Python cell:
import pandas as pd
df = pd.DataFrame(SalesData)
df.head()
Excel immediately displays the DataFrame inside the cell output area.
Your Excel table is now a Python object.
This is where the fun begins.
Step 3, clean, transform, and analyze
Let’s do a few common finance tasks.
Remove duplicates
df = df.drop_duplicates()
df.head()
Fix column names
df.columns = df.columns.str.strip().str.lower().str.replace(" ", "_")
df.head()
Group by month + product
summary = df.groupby(['month','product'])['revenue'].sum().reset_index()
summary
This would take three steps in Excel.
Python does it in one.
Step 4, push results back into Excel tables
When you want the result back in Excel, just reference the output:
summary
Then click “Insert Output” and Excel drops a real table into your sheet.
Not an image.
Not a view.
A real, editable table.
Step 5, add a chart with Python or Excel
Python version:
import matplotlib.pyplot as plt
summary.plot(kind='line', x='month', y='revenue')
plt.title("Revenue by Month")
plt.show()
Excel will render the chart automatically.
Or, if you love Excel charts (I do), just use the inserted table and build one normally.
Step-by-step, automating a repetitive reporting workflow
Here’s a common reporting pipeline I automate with Python in Excel:
“Take raw data → clean → summarize → calculate KPIs → format → output tables.”
Here’s the process in Python:
Step 1, clean data
df = df.dropna()
df['customer'] = df['customer'].str.title()
df['amount'] = df['amount'].astype(float)
Step 2, build KPIs
kpis = {
"revenue": df['amount'].sum(),
"customers": df['customer'].nunique(),
"avg_order": df['amount'].mean()
}
kpis
Step 3, build summary tables
by_product = df.groupby('product')['amount'].sum().reset_index()
by_region = df.groupby('region')['amount'].sum().reset_index()
Step 4, output everything back to Excel
Just return the objects in order:
kpis, by_product, by_region
Excel turns each into its own beautifully formatted table.
Step 5, add conditional formatting (optional)
If you want Python to do formatting, it can generate style instructions that Excel applies. I usually let Excel handle formatting, it’s faster and gives you more control.
Case study, automating a weekly KPI report
This is a real workflow I automated inside a client’s Excel workbook.
The problem
Weekly revenue KPIs from
- 8 regions
- 60+ reps
- messy exports
- inconsistent product names
- weird date formats
Before AI:
45–60 minutes every Monday.
What we did with Python in Excel
Step 1, load the table
df = pd.DataFrame(RawData)
Step 2, clean everything
df['date'] = pd.to_datetime(df['date'])
df['product'] = df['product'].str.strip().str.upper()
df = df[df['amount'] > 0]
Step 3, aggregate KPIs
weekly = df.groupby(pd.Grouper(key='date', freq='W'))['amount'].sum().reset_index()
by_region = df.groupby('region')['amount'].sum().reset_index()
by_product = df.groupby('product')['amount'].sum().reset_index()
Step 4, output all tables back to Excel
weekly, by_region, by_product
Step 5, chart it
Excel created:
- a weekly revenue line chart
- a product breakout bar chart
- a region heat map
Right from the inserted tables.
Total time to update the report each week
Under 10 seconds.
Just refresh and the Python cells re-run automatically.
Using ChatGPT to write Python for Excel
I do know Python… but these days I barely write any of it myself.
ChatGPT writes it faster, cleaner, and with fewer typos than I ever will after a long day of month-end.
The magic combo is this:
Python in Excel + ChatGPT = You can automate insanely complex workflows without ever opening a code editor.
ChatGPT can also help generate SQL queries for data analysis and reporting within Excel, making it even easier to automate data tasks.
All you have to do is describe what you want like you’re giving instructions to a junior analyst.
I talk to ChatGPT in business logic. ChatGPT talks back in Python.
Excel runs the code. Everybody wins.
Let me show you exactly how to do it, step-by-step, with real finance examples.
How to get ChatGPT to generate good Python
The trick to making ChatGPT write killer Python scripts is treating it like a contractor.
A smart contractor, but still a contractor.
It will also write the reshaping code for advanced data analytics and data modeling, which is the part of this job that eats an afternoon and teaches you nothing.
If you give vague instructions (“Clean this data”) you’ll get vague results.
If you give specific instructions (structure, columns, logic, and expected output) ChatGPT nails it every time.
Here’s what I always include:
The input schema (aka, what your data looks like)
Tell ChatGPT your columns, data types, and any quirks.
Example:
“My table is called SalesData. Columns: Date (text), Product (text), Region (text), Amount (float). Dates are in YYYYMMDD format.”
This one line saves ChatGPT from guessing wrong.
The business logic
Don’t say “calculate KPIs.”
Say exactly what KPIs you want.
Example:
“I need total revenue, average order value, top 5 customers, and revenue by region.”
The more specific you are, the more accurate the code.
The transformation steps
What do you want done to the data?
Example:
“Remove nulls, standardize product names to uppercase, convert dates to datetime, filter out refunds where Amount < 0.”
ChatGPT will translate this into clean, readable pandas code.
The output format
Tell ChatGPT what to return back to Excel.
Example:
“Return three objects: a KPI dictionary, a revenue-by-region DataFrame, and a revenue-by-product DataFrame.”
Excel then renders each output as its own table.
The tone
I always end with:
“Write clean, production-ready code with comments.”
ChatGPT delivers immaculate scripts that even non-technical teammates can follow.
Step-by-step prompt template
Here’s the exact prompt I use on 90% of my projects.
Try it once, you’ll never write Python manually again.
Prompt template
“I have a table in Excel called SalesData with these columns:
Clean and prepare the data by:
Then generate:
Return four objects back to Excel in this order:
Write clean, production-ready pandas code with comments.
Assume the DataFrame is loaded as: df = pd.DataFrame(SalesData).”
What ChatGPT will give you back
Something like this:
import pandas as pd
# Load data
df = pd.DataFrame(SalesData)
# Clean data
df['Date'] = pd.to_datetime(df['Date'], format='%Y%m%d')
df['Product'] = df['Product'].str.strip().str.upper()
df = df[df['Amount'] > 0]
# KPIs
kpis = {
"total_revenue": df['Amount'].sum()
}
# Revenue by product
revenue_by_product = df.groupby('Product')['Amount'].sum().reset_index()
# Revenue by region
revenue_by_region = df.groupby('Region')['Amount'].sum().reset_index()
# Weekly trend
weekly = df.groupby(pd.Grouper(key='Date', freq='W'))['Amount'].sum().reset_index()
kpis, revenue_by_product, revenue_by_region, weekly
You just drop that into a Python cell and Excel does the rest.
Case study, forecasting model script written entirely by AI
Let me give you a real “no way this should’ve worked that well” example.
The problem
A client needed a quick monthly revenue forecast based on:
- historical revenue
- seasonality patterns
- recent growth trends
- simple linear projection for the next 12 months
They didn’t want to learn Python.
They didn’t want a data scientist.
They didn’t want a whole machine learning pipeline.
They wanted something that lived in Excel…
but wasn’t Excel’s janky FORECAST.ETS guesswork.
What I sent to ChatGPT
Here’s the exact prompt I used:
“Write Python code for Excel that:
What ChatGPT gave me back
A full script:
- clean data
- engineer features
- run regression
- project forward
- output clean forecast tables
Excel rendered everything perfectly.
I tested the forecast against their original manual model…
ChatGPT’s version was more accurate.
Total time spent: maybe 45 seconds.
Agent Mode in Excel, full-blown AI automation inside your workbook
Agent Mode is the moment Excel stops acting like a tool… and starts acting like a coworker.
Agent Mode is one of several ai powered tools and excel tools available today, acting as an advanced ai tool for automating complex workflows in Excel.
Not the annoying coworker who schedules meetings at 4:30 p.m. on a Friday. I mean the dream coworker, the one who understands your entire workbook, follows instructions, builds things, updates things, cleans things, and never asks for PTO.
The first time I used Agent Mode, I asked it to “build a dashboard showing revenue by month, region, and product, plus a YoY summary table.”
Excel paused for a moment (like it was cracking its knuckles) and then:
- created new sheets
- built tables
- wrote formulas
- inserted charts
- formatted everything
- summarized the trends
- and asked if I wanted commentary, too
I sat there in silence, genuinely unsure whether to be thrilled or mildly terrified.
Here is what Agent Mode does, how to use it, and how it can wipe out 60–80% of your reporting workload.
What Agent Mode is, and why it is the best AI for Excel right now
Agent Mode is Excel’s built-in workflow executor.
Think of it as a mini AI agent that can:
- read your entire workbook at once
- understand relationships between sheets
- write formulas
- build pivots
- create models
- manage multiple steps
- generate new tabs
- build dashboards
- format dynamically
- update reports end-to-end
- take instructions like “Automate my month-end revenue report”
It doesn’t just answer questions. It does the work.
This is the leap from “AI assistance” to AI automation.
Here’s what separates Agent Mode from every other Excel AI feature:
It understands the workbook as a whole
Copilot Chat and =COPILOT are great, but they’re scoped. Agent Mode sees everything.
It can execute multi-step workflows
“Clean this, then summarize that, then chart this, then build a dashboard.” Agent Mode handles the sequence.
It creates new content
New sheets, tables, visuals, formulas, all generated on the fly.
It adapts
If something doesn’t look right, Agent Mode revises its own work.
It takes real instructions, not just prompts
You describe a process. Agent Mode becomes the process.
This is where Excel starts turning into a reporting robot.
Step-by-step, building your first agent workflow
Let me show you exactly how to use it.
Step 1, open Agent Mode
You’ll see it under the Copilot panel:
“Try Agent Mode” or “Launch AI Agent.”
Click it.
Excel opens a dedicated workspace where the agent lives.
Step 2, describe the process
This is the key.
You want to give it a workflow, not a one-liner.
For example:
“Clean the GL dump on Sheet1, categorize expenses using my mapping table on Sheet2, summarize spend by department and account, then build a dashboard with a YoY trend, MoM waterfall, and variance commentary.”
Or:
“Create a forecasting model using monthly revenue on Sheet3, project it 12 months forward, and generate a forecast dashboard.”
Agent Mode turns this into a multi-step plan.
Step 3, let the agent write its plan
Before doing anything, the agent writes a proposal:
- steps
- assumptions
- required sheets
- transformations
- outputs
You can accept as-is or ask it to revise steps.
This is like reviewing your analyst’s plan before they start.
Step 4, let it run
When you hit Run, Agent Mode executes everything:
- creates new tabs
- builds tables
- adds formulas
- generates visuals
- formats the workbook
- runs calculations
- cleans data
- inserts commentary
You can watch it work step by step, it’s wild.
Step 5, refine and iterate
Once Agent Mode is done, I usually give follow-ups like:
- “Format the dashboard more cleanly.”
- “Add a YoY line next to MoM bars.”
- “Add commentary below each KPI.”
- “Highlight negative variances in red.”
- “Add a comparison to budget.”
Agent Mode re-runs only what’s needed.
This is where Excel feels less like software and more like a teammate.
Finance case studies
Agent Mode isn’t just cool, it’s dangerously useful for real finance workflows.
Here are the ones I have used it for.
Case study #1, month-end report automation
Before AI
3–6 hours of pivots, formulas, charts, formatting, cleanup.
With Agent Mode
I told Excel:
“Build a month-end revenue report that includes MoM, YoY, product-level trends, top customers, variance drivers, and a formatted dashboard.”
Agent Mode:
- cleaned the GL dump
- built MoM & YoY summaries
- created a trend dashboard
- added a variance table
- wrote first-pass commentary
Time: 90 seconds.
Case study #2, dashboard build in seconds
I once fed it a table with:
- Month
- Product
- Region
- Revenue
- Units
And said:
“Create a multi-page dashboard showing revenue, unit trends, regional performance, and top product slices.”
It built:
- separate pages
- slicers
- charts
- summaries
- conditional formatting
Time saved: at least 2–3 hours.
Case study #3, reforecasting workflow
Input:
- actuals through last month
- budget for the rest of year
- simple driver assumptions
Instruction:
“Build a rolling reforecast through year-end with commentary, update formulas, and add a waterfall.”
Agent Mode responded like a seasoned FP&A analyst.
It:
- updated the forecast
- created a new tab
- built a waterfall
- wrote summary commentary
That one still gets me.
Case study #4, consolidations across multiple files
You know the pain:
- multiple department trackers
- inconsistent columns
- weird formatting
- different reporting periods
Agent Mode:
- standardized formats
- consolidated into one table
- aligned headers
- created a master pivot
- built a summary dashboard
This used to be a half-day task.
It’s now five minutes.
Case study #5, variance analysis + commentary bundle
This is the killer combo.
Instruction:
“Analyze budget vs actuals, find the top 5 variances, identify drivers, and produce a clean commentary section.”
Agent Mode:
- built the variance calculations
- ranked the drivers
- generated a formatted table
- wrote executive-ready commentary
It lands 80–90% of the way there, and that’s all you need.
The workflow, written out
The AI library for finance teams
Every prompt on this page in one file, the Power Query steps that replace the retired function, and the review checklist. Free, and it lands in your inbox in about a minute.
How to build your first AI-driven Excel workflow (start to finish)
If you’ve made it this far, you’re probably thinking one of two things:
- “Holy hell, Excel can do all of THAT now?”
- “Okay Mike, just tell me how to pull this off without burning down my file.”
Fair.
This is the section where everything snaps together.
Because knowing about Copilot Chat, Analyze Data, Python, ChatGPT templates and Agent Mode is great… but the real magic hits when you chain them into an actual workflow you can use for:
- month-end close
- dashboard updates
- KPI reporting
- forecasting
- variance analysis
- consolidations
- ad-hoc reporting
I’ll walk you through a complete, repeatable, modern AI-powered Excel workflow, the same way I build real client automations.
Let’s do this.
The three-step framework
Every AI-powered Excel workflow I build follows the same pattern:
Step 1, clean
Get your data into a shape Excel (and AI) can work with.
Step 2, analyze
Generate insights, summaries, KPIs, and key drivers.
Step 3, automate
Use templates, Python, or Agent Mode to turn the workflow into something repeatable.
Simple. But stupidly effective.
Now let’s build one together.
Example, month-end close report (start to finish)
This is the workflow I use with FP&A teams who are sick of spending two days cleaning dumps and building the same pivots every month.
THE INPUTS
You’ve got:
- Sheet 1: GL Dump
- Sheet 2: Mapping table
- Sheet 3: Budget
- Sheet 4: Prior-month actuals
- Sheet 5: Commentary prompts (optional)
Let’s automate the whole thing.
STEP 1, CLEAN (5–10 minutes → 30 seconds)
Clean the raw GL dump
Ask the side pane for the transformation rather than a value, then run it in Power Query so it repeats next month:
Normalize vendor names
Write me a Power Query step that standardizes the vendor names in
column A: trim whitespace, fix inconsistent capitalization, and collapse
the obvious duplicates. Show me the M code and list any name it merged.
Categorize each transaction
Write the Power Query merge that categorizes each row against the
department mapping table on Sheet2. Flag any row that finds no match
rather than defaulting it to Other.
Clean up descriptions
Give me the M code to clean the descriptions in column B: strip the
reference numbers, fix the obvious typos, leave anything ambiguous alone
and list what you left.
Boom, your dataset is now clean, standardized, and mapped.
Use Python to do the heavy lifting
In a Python cell:
import pandas as pd
df = pd.DataFrame(GLDump)
# Clean and prep
df['Amount'] = df['Amount'].astype(float)
df['Month'] = pd.to_datetime(df['Date']).dt.to_period('M').astype(str)
# Summary tables
by_dept = df.groupby(['Department','Month'])['Amount'].sum().reset_index()
variance = df.groupby('Department')['Amount'].sum().reset_index()
df.head(), by_dept, variance
Insert the outputs back into Excel as proper tables.
Now your core dataset is ready for actual reporting.
STEP 2, ANALYZE (usually 1–2 hours → 2–3 minutes)
Use Analyze Data for instant insights
Click Analyze Data and pull in:
- biggest spend increases
- MoM or YoY shifts
- top contributors
- outliers
- trend charts
Drop the visual suggestions directly into your workbook.
Use Copilot Chat to explain what’s happening
Highlight the summary table and ask:
“Explain the key drivers of the variance vs last month in one paragraph.”
Copilot spits out commentary that’s 80% usable.
Follow-ups:
- “Add more detail by department.”
- “Summarize this for an executive audience.”
- “Highlight anomalies and one-time items.”
You now have the insights and the language.
Build the helper labels
For dashboards or variance tables:
Generate a short KPI label summarizing each variance in D2:D20 for an
executive audience. Give me the list, and I will paste it as values.
Executive-friendly commentary in seconds.
STEP 3, AUTOMATE (5 hours → 30 seconds)
This is where your workflow becomes “set it and forget it.”
Use ChatGPT to generate a clean reporting template
Before automation, ask ChatGPT to build:
- Summary tab
- Trend tab
- Variance tab
- Dashboard
- Commentary section
- KPIs panel
Download the .xlsx file.
Drop your clean tables into the template.
Use Agent Mode to run the entire workflow
Tell Agent Mode:
“Using the GL data on Sheet1 and the mapping on Sheet2, update the month-end report by building:
Agent Mode will:
- clean the data
- generate new sheets
- build pivots
- add charts
- write commentary
- format everything uniformly
After that, you can refine:
- “Fix the chart formatting.”
- “Add a section comparing to budget.”
- “Highlight favorable variances in green.”
You’re no longer “building the report.”
You’re supervising the agent who builds it for you.
THE RESULT
A month-end report that used to take:
- 3–6 hours of manual work
- multiple review cycles
- at least one coffee refill
- occasional anxiety
Now takes:
- 1–3 minutes to generate
- 5 minutes to review
- 0 minutes to cry about
You’ve gone from spreadsheet janitor
→
workflow designer who manages AI analysts.
Example, forecast update workflow
Forecast updates are another place AI wipes the floor with manual steps.
STEP 1, clean
Use Python:
df = pd.DataFrame(Actuals)
df['Date'] = pd.to_datetime(df['Date'])
df = df.groupby(pd.Grouper(key='Date', freq='M')).sum().reset_index()
STEP 2, analyze
Use Copilot Chat:
- “Build a MoM/YoY summary.”
- “Explain what changed.”
- “Show leading indicators.”
STEP 3, automate
Use Agent Mode:
“Using the actuals on Sheet1 and the assumptions on Sheet2, update the forecast for the next 12 months, create a waterfall, update the dashboard, and generate commentary.”
Forecast done.
Charts updated.
Narrative written.






