Cleaning data and Power Query
Excel · 15 questions
Short notes
Key idea
Clean data before you analyse it. Small jobs can be done by hand with built-in tools; repeatable cleaning belongs in Power Query, which records each step and replays it on next month's file with one Refresh.
Syntax
- Quick fixes: Remove Duplicates, Text to Columns, Find & Replace, Flash Fill (Ctrl + E), TRIM / CLEAN.
- Power Query: Data → Get Data → From File, then in the editor: change type, split column, trim, replace values, remove rows, unpivot, merge queries, append queries. Close & Load.
- Each step appears under Applied Steps and can be edited or deleted.
Example
Every month a sales file arrives with a header row of junk, extra spaces and a date column as text. Build the query once: remove top rows, promote headers, trim text, change the date type. Next month, replace the file and click Refresh.
Traps
- Manual cleaning isn't repeatable, and nobody can see what you changed.
- Changing type too early in Power Query can turn bad values into errors; check the errors count.
- Remove Duplicates keeps the first row; sort first if you want the latest.
- Unpivot wide month columns into rows before pivoting or charting.
Want the full lesson with step-by-step examples, a project and a certificate? Excel course, ₹120 →
Questions
5 free questions- Question 1easy
Every Monday you get the same messy export and spend an hour cleaning it. What's the best fix?
- Question 2medium
A table has columns Product, Jan, Feb, Mar. You need columns Product, Month, Sales. Which Power Query step?
- Question 3medium
A customer list has customer_id, name, and city. Two different people are both "Arun Kumar". Which columns should Remove Duplicates check?
- Question 4medium
You have January sales and February sales in two tables with the same columns. Which step combines them into one long table?
- Question 5easy
How do you select every empty cell in the customer data at once?
Cleaning data and Power Query
Cleaning data and Power Query
Cleaning data and Power Query
Cleaning data and Power Query
Cleaning data and Power Query
10 more questions on this topic, with hints, and tests
Sign up free for 21 days of every question and test.