Tech skills · Guide 4 of 5 · 9 min read

Automate month-end work: Power Query, Power Automate and Python compared

মাস শেষের কাজ অটোমেশন: পাওয়ার কোয়েরি, পাওয়ার অটোমেট ও পাইথন

Which tool fits which accounting task, combining monthly files with Power Query, free Power Automate for desktop on Windows, and controls auditors expect.

Automation in accounting is rarely a robot. Usually it is a query that cleans next month’s file the same way as this month’s, a macro that formats the report pack, or a small flow that files fifty bank statements into the right folders. The skill is choosing the simplest tool that does the job, and keeping it under control.

Pick the right tool

ToolBest forCostSkill needed
Excel Tables and formulasCalculations inside one workbookYou have itLow
Power Query (in Excel and Power BI)Cleaning, combining and reshaping data that arrives every monthBuilt into Excel for WindowsLow to medium
VBA macrosButton-press steps inside a workbook: layouts, formats, printingBuilt into desktop ExcelMedium
Power Automate for desktopRepeated clicks across apps and folders: rename, move, copy, downloadFree on Windows for your own attended flowsMedium
PythonLarge, messy or rule-heavy jobs, and audit testsFreeMedium to high

The order matters. Most accountants get the biggest gain from Power Query alone, and never need the rest for routine work.

Power Query: combine monthly files in one refresh

  1. Put every monthly file in one folder, all with the same layout.
  2. In Excel: Data › Get Data › From File › From Folder, pick the folder, then Combine › Combine & Transform Data.
  3. Choose a sample file. Power Query builds the cleaning steps from it and applies them to every file.
  4. In the editor: filter out total and blank rows, set the Date and Amount types, trim text. Each step is recorded on the right.
  5. Close & Load to a table or a PivotTable.
  6. Next month: drop the new file in the folder, then Data › Refresh All.

Power Automate for desktop: free on Windows

Power Automate for desktop records and replays work across apps: open a file, copy cells, rename, move, click through a screen. On Windows 11 it is in the Start menu; on Windows 10 it is a free download. Microsoft’s licensing pages say you can build and run your own attended desktop flows at no extra cost; sharing flows, cloud flows and unattended runs need other licences.

Good first flows for a finance team:

  • Rename fifty downloaded bank statements as “Bank-Branch-Month” and move each into its folder.
  • Open each branch’s workbook, copy the summary block, and paste it into a consolidation sheet.
  • Save the month-end report pack as PDFs with the right names.

Automate only systems and websites you are allowed to automate, and test on copies first.

What to automate first

Score each monthly task on four things: how often it runs, how long it takes, whether it follows fixed rules, and whether the input arrives in the same format each time. Start with the task that scores high on all four. Typical candidates:

  • Bank reconciliation preparation: loading statements and matching the easy items.
  • Intercompany balance matching.
  • Accrual and prepayment schedules.
  • VAT and TDS working papers built from sales and payment registers.
  • Refreshing the management pack.

Controls your auditor will accept

  • Document it: purpose, inputs, steps, outputs and owner, on one page.
  • Run it in parallel with the manual method for at least one month, and agree the results.
  • A control total on every run: rows in, rows out, and the amount, agreed to the source.
  • Version it: keep each change with a date and a reason; protect the final file.
  • Two people know it. An automation only one person understands is a risk, not a saving.

AI can write the query, the macro or the script

Describe the steps and the columns, and AI will draft Power Query M, a VBA macro or a Python script. Our tests show why the checks above matter: see the bank reconciliation in one sentence and invoices to Excel results before you trust an AI with a month-end job.

Practise on this site

Sources

  1. Import data from a folder with multiple files (Power Query) (opens in a new tab) Microsoft Support
  2. Combine files overview (opens in a new tab) Microsoft Learn
  3. Introduction to desktop flows (opens in a new tab) Microsoft Learn
  4. Power Automate licensing FAQ (opens in a new tab) Microsoft Learn

More tech skills guides

The roadmap

Educational content only. Software plans and prices change: check the maker’s own pages before you rely on a feature or licence, and check every AI answer before you use it.