XL AI Automation
Home › Guides › How to fix CSV files that open wrongly in Excel

How to fix CSV files that open wrongly in Excel

6 min read · Updated 4 December 2026

A CSV is a simple text file, but double-clicking it lets Excel guess how to read it, and Excel often guesses wrong. Here are the usual problems and their fixes.

Everything is in one column

The file uses a different separator from the one your computer expects. Files from Europe and some software use a semicolon. Fix: Data → From Text/CSV, choose the file, and pick the right Delimiter in the preview.

Leading zeros disappear (00123 becomes 123)

Excel turns anything that looks like a number into a number, so codes like PIN codes, employee IDs and account numbers lose their zeros. Fix: in From Text/CSV, click Transform Data, set those columns to Text, then load.

Long numbers become 1.23E+15

Excel keeps only 15 digits of precision, so a 16-digit card or reference number is changed for good if it is read as a number. Import the column as Text, as above.

₹, Hindi or accented characters look broken

The file is UTF-8 but Excel opened it with an older encoding. Fix: in From Text/CSV, set File Origin to 65001: Unicode (UTF-8). When you create CSVs for others, save as CSV UTF-8 in Excel's Save As list.

Day and month are swapped

The CSV uses DD-MM-YYYY but your computer expects MM-DD-YYYY. Import the column as Text, then convert it as shown in converting text to dates.