Step by step
- In Excel for Windows, choose Data → Get Data → From File → From Text/CSV. Select your export and choose Transform Data.
- In Power Query, select the name column and apply Trim. Set identifier columns that need leading zeros to Text, and amount columns to a numeric type.
- Inspect errors before loading. Choose Close & Load to return the cleaned table to Excel.
- Replace the source file with the next export using the same filename and layout. Use Data → Refresh All to repeat the saved transformations. Connectors and refresh options vary by Excel platform.
Clean CSV Data in Excel with Power Query (No More Copy-Paste)
Practice workspace
Remove the spaces around customer names, preserve leading zeros in customer IDs and convert amounts to numbers. Apply the same steps to the next export.
Lesson quiz
Answer three questions to see your level in this lesson.
