How-to

How to Open a CSV in Excel Without Formatting Issues

Stop Excel from dropping leading zeros, mangling long numbers, and reformatting dates when you open a CSV.

Double-clicking a CSV to open it in Excel is where data quietly breaks. Excel guesses a type for every column on open: ZIP code 02134 becomes 2134, a 16-digit account number turns into scientific notation, and 03/04 might be read as a date in the wrong order. The file on disk is fine, Excel's import is the problem.

The fix is to import the CSV instead of opening it, telling Excel to treat the risky columns as text. That preserves leading zeros, long IDs, and ambiguous dates exactly as written.

  1. 1

    Don't double-click, import instead

    Open a blank workbook and use Data, then From Text/CSV (or Get Data). This gives you control over how each column is typed.

  2. 2

    Set problem columns to Text

    In the import preview, change ID, ZIP, phone, and account-number columns to Text so Excel preserves them verbatim instead of converting to numbers.

  3. 3

    Confirm the delimiter and encoding

    Make sure Excel detected the right delimiter (comma vs semicolon) and encoding (UTF-8). A wrong guess garbles characters or splits columns incorrectly.

  4. 4

    Load and verify

    Load the data and spot-check the columns that usually break, leading zeros, long numbers, and dates, before you save.

Frequently asked questions

Why does Excel drop my leading zeros?

It infers the column is a number, and numbers have no leading zeros. Importing the column as Text keeps 02134 as 02134.

Why do long numbers turn into 1.23E+15?

Excel treats digit strings longer than 15 digits as numbers and switches to scientific notation, losing precision. Import those columns as Text.

My CSV opens as one column, why?

The delimiter doesn't match. Many European CSVs use semicolons; tell Excel the correct delimiter during import, or convert the file first.

Is there a way to avoid this entirely?

Convert the CSV to a real .xlsx with the types set correctly, then Excel opens it without guessing. Our CSV to Excel converter does exactly that.

Compare two spreadsheets

Drop two files into SheetCompare and see every changed cell. Free, private, and runs in your browser.