Finance

Automating Excel spreadsheet tasks, VBA macros, and financial data preparation with AI

Use AI agent features in Excel and related assistants to perform spreadsheet-heavy finance work such as cleaning exports, preparing tables, generating formulas, writing VBA macros, hardening recurring automations with dynamic error handling, refreshing monthly close and reporting workbooks, and generating outputs faster.

Why the human is still essential here

Finance leaders still define the intent and recurring workflow, validate assumptions and formulas, verify data transformations, test automations and macros, and review results for accuracy before using them in decisions or reporting.

How people use this

Monthly close variance analysis build

An AI agent cleans and standardizes the GL export, creates pivots by account/cost center, and drafts a variance commentary table for controller review.

Microsoft 365 Copilot for Excel (Agent Mode)

Cash flow forecast refresh and reconciliation

An AI agent updates the weekly cash forecast by ingesting the latest AR/AP downloads, mapping them into forecast buckets, and regenerating summary charts for review.

Microsoft 365 Copilot for Excel (Agent Mode) / Power Query

GL extract cleanup to Pivot-ready tables

Agent Mode applies repeatable cleaning steps (split/trim/map accounts, remove duplicates, standardize dates) to turn ERP exports into a Pivot-ready dataset for monthly reporting.

Microsoft Excel (Copilot Agent Mode) / Power Query

Need Help Implementing AI in Your Organization?

I help companies navigate AI adoption -- from strategy to production. Whether you are building your first LLM-powered feature or scaling an agentic system, I can help you get it right.

LLM Orchestration

Design and build LLM-powered products and agentic systems

AI Strategy

Go from idea to production with a clear implementation roadmap

Compliance & Safety

Build AI with human-in-the-loop in regulated environments

Related Prompts (2)

Latest community stories (4)

Personal Story
Reddit

How I use AI as a staff accountant

Hi all, I wanted to give my view on ai and its utility in my job as a staff accountant. My role is Excel-heavy, I enter many journal entries, and reconcile balance sheets for reference. Edit: I work for a private company.

The biggest use has been using ai to build TOOLS to automate workflows. I don’t drop in a workbook and ask it to do work for me (I think it’s starting to get closer to being able to accomplish this, but it uses expensive computation to get the job done). I use ai primarily to create Vba scripts / macros which are deterministic code to automate all sorts of work. I didn’t know how to code before using ChatGPT, so don’t be afraid of it. ChatGPT does all the technical writing while you describe what you need it to do in plain English. The secret here is that Vba is a powerful coding language that lives in all Microsoft applications. It’s not new, it’s not fancy, but the average person can now utilize its magic because of ai.


Some things Vba can do that blew my mind:


It can open, move, rename, or copy any file on your computer.


You can have a reconciliation open and have the macro open your latest downloaded excel workbook with a certain prefix (all my queries I download start with the same thing) filter for the data I need, and append the data to my reconciliation. Then automatically update pivot table ranges / refresh them. The macro can close the query workbook once it’s done with it too. There’s a secret to hidden-open the query workbooks so it saves on processing time since it doesn’t need to render images. Also, asking it to turn calculations off can speed things up but occasionally you might need calculations to occur before you can move on to the next step so keep that in mind.


Use the file name to roll forward reconciliations from month to month. I have the month and year in my filename, so when I copy a reconciliation to the next month, I open my workbook and dates are already rolled forward. This sounds simple but it’s helped me avoid having my recs sent back to me for silly fixes.


Error handling: most people who know about macros from a few years ago don’t want to touch them because they are prone to breaking. One link changes, one column shifts and your macro will either break or do the wrong thing. ChatGPT has good error handling for general coding failsafes. It will put in the script to include error messages that describe what is needed for the macro to start or where something failed and will cleanly exit the macro. The other thing is fixing macros is much easier. Copy the entire macro, paste into ChatGPT, and then ask it to update based off a different layout. The real game changer is asking it to write the macro dynamically. Instead of calling out stale columns or rows, use dynamic language to describe how to find things like the header row or what column it should look for. For example, instead of saying that headers are always in the first row, and copy column F into the workbook, ask it to find the row that starts with a certain header name that is consistent, and then look by column until it finds the header named ā€œAmountā€ and then copy the data below that. If you can describe situations dynamically, you will drastically reduce the chance of your macros ā€œbreakingā€.


Besides Vba, I’ve been diving into codex (now ChatGPT desktop app). Using it to build custom python scripts for more general computer workflows, as well as adhoc database files for one off research. Building custom databases and querying off of those are going to be way more consistent than just asking ChatGPT to look at data and give an answer. I’m still working on more ā€œagenticā€ workflows, but honestly in the world of accounting powerful Vba macros gets you 85% of the way there. The idea is to use ai to build deterministic scripts to automate tasks.


Anyways, I hope this helps inspire some staff accountants out there looking to utilize ai in a meaningful way. Feel free to ask questions!

B
Broseidon132Staff accountant
Jul 19, 2026
News
Blog

Copilot in Excel:Ā Built for the era ofĀ FrontierĀ Finance

Across Financial Planning and Analysis (FP&A), Accounting, Tax, Compliance, and Treasury, Microsoft Finance runs Copilot in Excel in real workflows, spending less time hunting for information and rebuilding analyses, and freeing teams to spend time applying judgement to decisions. They shape it as much as they use it, telling us where it falls short and pushing the product toward the standard their own work demands. By the time it reaches you, it has already been pressure-tested by a finance organization operating at the frontier.Ā 

Today, we’re introducing new features built for financial professionals to continue doing that withĀ skillsĀ for repeatable workflows,Ā new financial connectors for trusted data, and improved capabilities for traceability.

BJ
Brian JonesVP – Excel Product Group
Jun 25, 2026
LinkedIn

I invest in paid AI tools because the landscape is moving so fast.

I invest in paid AI tools because the landscape is moving so fast. I use all five almost daily and each brings something different to my workflow. Here's what's changed recently in the tools I depend on:

ChatGPT Pro: Extended thinking on GPT-5.2 restored to full strength, file uploads expanded from 10 to 20 per message, and the new ChatGPT Agent rolling out for unified agentic workflows.


Claude Pro: Claude Sonnet 4.6 launched with major upgrades to coding, computer use, long-context reasoning, and design work. One million token context window now in beta for Pro users.


Google Gemini Pro and Ultra: Gemini 3.1 Pro arriving with expanded limits for paid users. Lyria 3 music generation now creates custom 30-second tracks from text or images. Direct scientific citations now stpreamline research.


Microsoft Copilot Pro: Agent Mode now live in Excel for autonomous spreadsheet tasks. Expanded grounding means Copilot pulls from more of your Microsoft 365 data. Text selection in Word lets you highlight any passage and ask Copilot to rewrite, explain, or expand it.


Google NotebookLM Plus: Now powered by Gemini 3.1 Pro. Video overviews turn your sources into short explainer clips. Interactive data tables let you query your documents like a database. And Google Classroom integration makes it a serious tool for educators.


The pace of improvement is relentless. If you're not staying current, you're falling behind.


And the free plan users are around 12 months behind everyone else.


Which of these tools do you use, and what's been your biggest win with AI this year?

DW
Dan WellsFounder and CEO, GrowCFO
Mar 2, 2026
LinkedIn

Microsoft released Agent Mode in Excel.

Microsoft released Agent Mode in Excel.

Think Copilot, but instead of just suggesting, it acts inside your workbook.


It builds, edits, and reasons step by step.


I put together a full guide for CFOs, Finance, and FP&A teams on how to use this new AI capability for finance:


https://lnkd.in/eaFuD7vH


And a video guide: https://lnkd.in/eWjVxGrG


It also includes a step by step on how to "download" it.


This way you can see what has been tested and know if it can help you to automate reporting, forecasting, and even build valuation models!


If you want me to send the Excel file with the results just comment "AI Agent Mode" and I can send!


Here’s what Agent Mode can do live in your workbook:


āœ… Automate budget roll-forwards across tabs

āœ… Merge messy data into clean Pivot-ready tables

āœ… Generate full variance analysis with commentary

āœ… Build multi-tab models like DCFs & 3-statement forecasts

āœ… Iterate until the output matches CFO-level standards


Also remember before submitting a prompt, you can select which model you prefer to use, Agent Mode in Excel supports the latest Anthropic and Open AI models available to you.


To switch between models, use the model picker dropdown.


And the best part? Everything stays editable.


Some sample prompts you can try right now:


"Build a 5-year DCF model with revenue, OPEX, EBITDA, FCF, and terminal value. Format outputs in CFO-ready style."


"Consolidate actuals from multiple sheets into one clean variance-to-budget report with conditional formatting."


"Generate a revenue forecast with 3 growth scenarios (Base, Optimistic, Downside) and plot a chart of outcomes."


"Draft a month-end financial summary with key drivers, risks, and opportunities based on this dataset."


"Reshape this dataset into a management-ready P&L with standard financial formatting and subtotals."


Hope this guide helps!


Some notes from Microsoft's announcement:


How to try it


1. Use https://excel.new to quickly create new Excel workbooks.


2. Select Home > Copilot and open Copilot chat.


3. Select the Tools menu and choose Agent Mode.


4. Start with an outcome-based simple prompt, like ā€œBuild a loan calculator that computes monthly payments based on user inputs for loan amount, annual interest rate, and term in years. Generate a schedule showing month, payment, principal, interest, and remaining balance. Present the results in a clear, formatted table.ā€


Tell me in the comments if you have questions or what was your result! :)


Notes from Microsoft's website on Availability


Agent Mode in Excel requires either a Microsoft 365 Personal or Family subscription (with an AI credits plan), a Microsoft 365 Premium subscription, a commercial Microsoft 365 Copilot subscription, or a Copilot Chat-eligible Microsoft 365 or Office 365 business or enterprise subscription.

CM
Christian MartinezFinance Transformation Senior Manager
Feb 26, 2026