Guide · Excel finance automation

Power Query, VBA macros or Python: which to use for finance automation

Short answer

Start with formulas and Power Query because your team can open and inspect them. Use VBA or Office Scripts for steps Power Query cannot do, such as writing into a formatted template. Use Python when volume or logic outgrows Excel and someone on the team can maintain it.

The question is who maintains it

Most comparisons of these tools focus on capability. For finance automation, capability is rarely the constraint. The constraint is whether the person who runs the process next year can understand it, change it and explain it to a reviewer. A clever macro nobody can read is a liability the day its author goes on holiday.

The options at a glance

ToolBest atWatch out for
Formulas and tablesCalculations people need to see, such as variances and tie-outsLong nested formulas that nobody can read
Power QueryCombining, cleaning and matching recurring exportsRow by row decisions with many conditions
VBA macrosDesktop tasks across workbooks, formatting, generating filesSecurity policies that block macros, and code that only one person understands
Office ScriptsRepeatable steps in Excel for the web, scheduled with Power AutomateAvailability depends on your Microsoft 365 plan and admin settings
PythonLarge volumes, complex matching, logic that needs proper testingNeeds an environment and a person who can maintain it

Formulas and Power Query: the default

For most monthly finance work, formulas and Power Query cover the job. They live inside the workbook, anyone with Excel can open them, and every Power Query step is listed in order. That transparency matters more than speed. A reviewer can follow what happened without reading code.

Modern functions such as XLOOKUP, LET and FILTER also make formulas far more readable than the nested lookups many close workbooks still use.

VBA: useful, but check your policy first

VBA is still the most capable way to automate desktop Excel, for example looping through files, building a formatted report pack or saving PDFs. It has two practical problems in 2026. Many organisations block macros from files that came from the internet or email, and macro files must be saved as .xlsm. And VBA tends to accumulate in one person's workbook with no comments or change history.

If you use VBA, keep each macro small, comment what it does in plain language, and keep it out of the calculation logic, so the numbers can still be checked without running code.

Office Scripts: the cloud option

Office Scripts automate Excel for the web and can be triggered on a schedule or by an event through Power Automate. They suit teams already working in SharePoint and OneDrive. Check with your administrator that scripts are enabled before designing around them.

Python: when Excel is the wrong home

Python is the right choice when files reach hundreds of thousands of rows, when matching logic needs several passes with real testing, or when the process should run without anyone opening Excel. The trade-off is ownership. Someone has to maintain the environment and the code. If nobody on the team can, a Python build becomes the new key-person risk.

Python in Excel, which runs Python code inside a cell on Microsoft's cloud, sits between the two. It is useful for analysis but is not yet a natural home for a production reconciliation.

A simple decision rule

  1. Can formulas and Power Query do it? Use them.
  2. Is there one step they cannot do, such as filling a template? Add a small, documented macro or script for that step only.
  3. Has the process outgrown Excel in volume or logic? Consider Python, but only with a named owner.

Whatever the tool, the build should come with checks, a change log and a handover guide. See how to document an Excel workflow.

Published 18 October 2026

General educational information only. Not accounting, tax, audit or legal advice. MatchPass Labs provides workflow automation and is not an accounting firm.

Common questions

Common questions

Yes, VBA still runs in desktop Excel for Windows and Mac. Many organisations restrict macros for security reasons, so confirm your policy before building a process that depends on them.
It helps for large or complex work, but it is not required for most monthly processes. Formulas and Power Query cover the majority of recurring finance automation and are easier for a whole team to maintain.

Have a spreadsheet workflow like this?

Describe it in a few sentences. No files or preparation needed. If it is not worth automating, we will say so.