Clean an Imported Report
Premiumintermediate 15 min4 tasks0/60 pts
Exports from CRMs and other systems are messy: extra spaces, random capitals and the same customer typed several ways. Power Query cleans this in steps (Trim, Capitalize Each Word, Remove Duplicates). You can follow the same steps with formulas: TRIM removes extra spaces, PROPER fixes the capitals, and UNIQUE lists each customer once. Once the text is clean, SUMIF finally adds up the right rows.
Syntax
PROPER(TRIM(text)) · UNIQUE(range) · SUMIF(clean_range, "North", sum_range)
Example: =PROPER(TRIM(" ana LOPEZ")) returns Ana Lopez.
Common mistakes
- Summing on the raw column: "north " with a trailing space is not "North".
- Cleaning names but not the region column you filter on.
- Running UNIQUE on the raw names, so "ana lopez " and " ana LOPEZ" count as two customers.
Read the lesson, then try it yourself in a live spreadsheet.