Excel Masters

Combine a whole folder of files in one click

By Mike van Niekerk · Excel Masters

The monthly copy-paste trap

Twelve exports, twelve rounds of copy, paste and tidy-up. Power Query lets you do the cleanup once and repeat it automatically.

Steps

  1. Put all the files with the same layout into one folder.
  2. In Excel go to Data > Get Data > From File > From Folder.
  3. Choose the folder, then Combine & Transform Data.
  4. Clean the data once in the Power Query Editor: remove columns, fix types, filter rows.
  5. Close & Load.

Next month, drop the new file into the folder and click Refresh All.

Why Mike?

Training since 1990, around 70,000 people trained, and author of VBA Automation for Excel 2019 Cookbook (Packt, 2020). Based in Pretoria and travels countrywide.

Plan my team's training