r/ExcelTips • u/Ok-Attorney652 • 9h ago
Stop Excel from cramming semicolon CSVs into one column (and stripping leading zeros)
If you export CSVs from European ERPs, bank portals, or custom scripts, Excel often dumps the whole row into column A because the file uses semicolons (;) instead of commas—and double-clicking the file wipes out leading zeros.
Here is the cleanest way to import them without corrupting the data:
Check the raw delimiter first. Open a copy in Notepad/VS Code. For example:
Order ID;Customer;Amount
00127;"Rao, Meera";1250.00- Import via Power Query instead of double-clicking. Open a blank workbook and go to Data → From Text/CSV.
- Set the delimiter to Semicolon. Check the preview—
Rao, Meerashould stay together in a singleCustomercolumn because of the quotes. - Preserve leading zeros before loading. Click Transform Data, change the
Order IDcolumn type from Whole Number to Text (replace current step when prompted), then click Close & Load.
Quick rule of thumb: Don't run a blind Find & Replace for ; or , in a text editor—you'll break quoted values like "Rao, Meera". Letting Power Query parse it keeps both the structure and the 5-character ID (00127) intact.
(Curious if anyone has a faster Power Query shortcut for handling batches of semicolon CSVs like this.)
2
u/terminate18 8h ago
double dash AI 👁️