Power Query: Clean Data 10x Faster
Power Query is Excel's built-in data transformation tool. It automates tedious cleaning tasks and remembers your steps for reuse.
How to Access Power Query
Excel: Data tab โ Get Data โ From File/Table โ Transform Data
Or: Data tab โ Get & Transform Data section
Common Tasks Made Easy
1. Remove Duplicates
Instead of manually filtering:
- Right-click column โ Remove Duplicates
- Done in one click, repeatable on refresh
2. Split Columns
Data: "John Smith" โ Split into "First Name" and "Last Name"
Power Query:
- Select column
- Transform โ Split Column โ By Delimiter
- Choose space as delimiter
- Automatic split!
3. Change Data Types
Automatically detect and convert:
- Text to numbers
- Text to dates
- Number formatting
4. Unpivot Data
Convert wide data to long format (great for analysis):
Before:
Product | Jan | Feb | Mar
Apple | 100 | 120 | 130
After unpivot:
Product | Month | Sales
Apple | Jan | 100
Apple | Feb | 120
Apple | Mar | 130
Power Query: Select columns โ Transform โ Unpivot Columns
5. Merge Multiple Files
Combine all CSV/Excel files in a folder:
- Data โ Get Data โ From File โ From Folder
- Select folder
- Combine & Transform
- All files merged automatically!
Why Power Query Beats Manual Cleaning
| Task | Manual | Power Query |
|---|---|---|
| Reusability | Repeat every time | Click "Refresh" |
| Documentation | None | Every step recorded |
| Errors | Easy to make | Consistent results |
| Speed | Minutes/hours | Seconds |
Best Use Cases
- โ Cleaning messy CSV exports
- โ Monthly report automation
- โ Combining data from multiple sources
- โ Reshaping data (pivot/unpivot)
- โ Removing/filtering rows based on rules
Quick Start Workflow
- Data tab โ Get Data โ From Table/Range
- Make your transformations (each step is recorded)
- Close & Load to bring cleaned data into Excel
- When new data arrives โ Right-click table โ Refresh
Pro Tip: Every transformation in Power Query is recorded as a "step" you can see, edit, or delete. Think of it as recording a macro, but much easier to understand and modify.
โ Back to Excel Tips