Automate recurring cleaning by recording the steps once, for example in Excel Power Query, and replaying them on each new file. Put the file path in one parameter, keep mappings in lookup tables, and add checks that flag unmapped values or unusual row counts. Then the routine is swap the file, refresh, check.
Every month the same export arrives, sales_2026_06.csv, then sales_2026_07.csv, and every month someone does the same eight things to it by hand: promote the header, delete the blank spacer rows, fix the text dates, remove duplicates on Order ID, map the region names, drop the test orders and reconcile the total. If that takes ninety minutes, a year of it is eighteen hours spent re-making decisions that were made last January. The cleaning itself is fine. Doing it by hand on a file whose structure never changes is the part worth fixing, and it is some of the easiest work in any team to automate.
Manual is right once and wrong twice
Cleaning a one-off file by hand is fine; you will never see it again. A recurring file has a fixed shape: the same columns, the same quirks and the same fixes, month after month. Doing that by hand is a cost you pay in time every month, and it grows with every new recurring report: the sales export, the ad spend sheet, the stock count, the timesheet summary. Build the cleaning once, as steps that can be replayed, and spend the recurring time on reading the numbers instead.
The example: eight manual steps become one refresh
Excel's Power Query is built for this, and it records every change as a reusable step. Point it at the file with Data → From Text/CSV, and each fix you make is saved in order:
Query: clean_sales 1. Promoted headers 2. Removed blank rows 3. Changed type: Order Date -> Date 4. Removed duplicates on Order ID 5. Merged Region with region_map -> clean region 6. Filtered out rows where Customer = "TEST" 7. Reordered / renamed columns (source = sales_2026_06.csv)
Next month you repeat none of it. Replace the source path, or better, point the query at a parameter so you change it in one box, and click Refresh. All seven steps re-run against sales_2026_07.csv in the same order with the same rules. The ninety-minute routine becomes: swap the file, click Refresh, check the reconciliation.
How to automate a recurring file's cleaning
- Record the steps once the next time you clean the file, in Power Query, a macro or a saved recipe, instead of doing them and closing the file.
- Parameterize the input. Put the file path in one parameter so next month is a single change, not a search through the steps.
- Move fixed decisions into lookup tables, such as region maps and product codes, so a new value is a table edit, not a rewrite of the logic.
- Build in the checks. Add a step that flags unmapped values or a row count outside the usual range, so the automation tells you when this month's file breaks the pattern.
- Document what it does in one line at the top, so a colleague, or you in six months, can trust the steps without reverse-engineering them.
One rule keeps automation safe: never let it run silently on a file it can't handle. A refresh that doesn't check anything is how last month's typo becomes this month's wrong dashboard. The flags in step four are what keep the speed honest.
Where the time goes instead
Cut the cleaning from ninety minutes to ten and the report comes out the same day the data arrives, with the same result every time, whoever runs it. The eighty minutes go to the questions the report raises: why returns rose in one region, which campaign brought in the new customers, what stock to reorder. Repetitive cleaning is the clearest sign that a task is ready to be built once and replayed, and every recurring report you automate frees time on every future run.
In Dotwave, once a dataset has a few cleaning steps you can save them as a recipe and apply it to next month's file. Columns are matched by name, including renamed ones you confirm, and any step whose column can't be found is skipped and listed instead of guessed.
Create your free account