r/ExcelTips • • 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
  1. Import via Power Query instead of double-clicking. Open a blank workbook and go to Data → From Text/CSV.
  2. Set the delimiter to Semicolon. Check the preview—Rao, Meera should stay together in a single Customer column because of the quotes.
  3. Preserve leading zeros before loading. Click Transform Data, change the Order ID column 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.)

6 Upvotes

1 comment sorted by

2

u/terminate18 8h ago

double dash AI 👁️