Power Query: Clean Bank and Sales Data Automatically
Power Query is the tool inside Excel (Data, Get Data) that imports data, cleans it with recorded steps and reloads it in one click. Instead of fixing a bank export by hand every month, you build the clean-up once and press Refresh. It is built into Microsoft 365 and recent versions of Excel, and it also powers Power BI.
What problem does Power Query solve?
Finance data arrives untidy. A bank export has header lines at the top, dates stored as text, amounts with the euro sign, debits and credits in separate columns and a new file every month. Cleaning that by hand takes an hour, then you do it again next month and make a different mistake.
Power Query records each step you take (remove top rows, change type, split column) as a list called Applied Steps. When a new file arrives you refresh and every step runs again in the same order. The original files are never altered. This is the biggest time saving in a bookkeeping or finance routine, and it makes your process repeatable and checkable, which matters if Revenue or an auditor asks how you prepared a schedule. Keep your source files; Irish tax records must be kept for six years.
How do you combine monthly bank files?
- Save all the monthly CSV exports in one folder, for example Bank 2026.
- In Excel choose Data, Get Data, From File, From Folder, and select the folder.
- Choose Combine and Transform Data. Excel uses the first file as the sample and builds a query that stacks every file.
- In the Power Query window, remove any rows that are not data (use Remove Rows, Remove Top Rows).
- Use Use First Row as Headers.
- Click Close and Load. You get one table with all months.
When February's file arrives, drop it in the folder and press Data, Refresh All. The table now includes it.
How do you fix dates, amounts and columns?
Dates
Irish banks write dates as day/month/year. If Power Query reads 03/04/2026 as 4 March, you have a locale problem. Right-click the date column, choose Change Type, Using Locale, pick Date and English (Ireland). Always check a date such as 25/03/2026 that cannot be read as a month, to confirm the rule was applied.
Amounts
If the file has Debit and Credit columns, add a column: Add Column, Custom Column, with the formula [Credit] - [Debit]. Replace nulls with 0 first (Transform, Replace Values). Set the type to Fixed decimal number so cents are kept.
Text
Use Transform, Format, Trim to remove extra spaces and Capitalize Each Word to make supplier names consistent. Use Split Column by delimiter to separate a reference from a description.
Rows you do not want
Filter out blank rows and opening-balance lines, and use Remove Duplicates only on a column you are sure is unique, such as a transaction ID.
Worked example: a Limerick bookkeeping practice
Dermot's practice in Limerick receives a bank CSV from 14 clients a month. Each file has three lines of header text, then transactions. Before Power Query, each file took about 20 minutes to tidy, which was 14 x 20 = 280 minutes, or about 4.7 hours, every month. He built one query that removes the top rows, fixes the date locale, merges Debit and Credit, trims descriptions and adds a Client column taken from the file name. Now the monthly job is: copy each client's file into that client's folder and refresh. It takes about five minutes a client, so 14 x 5 = 70 minutes. He saves 210 minutes, or 3.5 hours, a month, and the transformation is the same every time.
He keeps a note listing the Applied Steps in the practice manual, and he never edits the output sheet by hand; changes go in the query. For the wider picture of automating routine work see how to automate bookkeeping.
Common mistakes with Power Query
- Editing the loaded table by hand. The next refresh overwrites it.
- Moving or renaming the source folder. The query breaks; update the path under Data Source Settings.
- Changing a column name in the source. The step that refers to it fails, so keep a standard export format.
- Using real client data in a shared file. Bank data is personal data; keep it in access-controlled folders, as our guide to GDPR for small business explains.
- Skipping a reconciliation. After a refresh, check that the row count and total equal the bank statement totals.
Key points
- Power Query records your clean-up as steps and replays it on every refresh.
- Combine a folder of files into one table with From Folder.
- Set the date locale to English (Ireland) and check a day above 12.
- Never edit the output by hand and always reconcile totals.
Our Strategic Management programme shows you how to build repeatable reporting like this for your own business, so you do it yourself every month.
Questions people ask
- What is Power Query used for?
- Power Query imports data from files, folders, databases and websites, cleans it with recorded steps, and loads it into Excel or Power BI. When the source changes you refresh and the same steps run again, which saves repeating manual clean-up.
- Is Power Query built into Excel?
- Yes. In Microsoft 365 and recent versions of Excel it sits under the Data tab as Get Data and Transform Data. It is also the data preparation engine inside Power BI.
- How do I fix Irish dates in Power Query?
- Right-click the date column, choose Change Type, Using Locale, select Date and the English (Ireland) locale. Then test a date with a day above 12, such as 25/03/2026, to confirm days and months are not swapped.