All guides

> guide csv-excel

Excel opens a CSV wrong (characters, columns)

The file is fine. Excel only guesses wrong when you open it with a double click. Three typical mistakes and how to get rid of them.

Last updated: · 4 min read

In short

What causes it

You seeCauseStep
CaféThe file is UTF-8, Excel reads it as Windows-1252.1
One columnThe file separates with commas, Excel set to a European language expects semicolons, or the other way round.1
1067 instead of 01067Excel takes zip codes and account numbers for numbers.2

How to do it

  1. View and save again for Excel

    Load the CSV. Delimiter and character set are detected and shown above the table. If something is off, switch it until characters and columns are right. For saving, choose the delimiter your Excel expects: “Semicolon ;” if your Excel is set to German or another European language, “Comma ,” for English. As the character set, take “UTF-8 with BOM (Excel)”. The BOM is a marker at the start of the file by which Excel on Windows recognizes UTF-8. The new file opens with a double click with the right characters and clean columns. The tool does not change what is in the cells.

    View and clean up a CSV
  2. Rescue leading zeros and long numbers

    No CSV helps against Excel's urge to see numbers, because a CSV cannot say what is text. Choose the direction “CSV → Excel”. The page writes a real .xlsx: numbers and dates become real numbers and dates, so that you can calculate with them. Whatever starts with a zero (01067), has more than 15 digits (account numbers, long article numbers) or looks like a formula stays text on purpose. The header row becomes bold and frozen and gets an autofilter. Set “Read numbers as” to German or English, depending on whether the file says 1.234,56 or 1,234.56.

    Convert CSV to Excel
  3. Repair garbled characters in the text

    Sometimes the damage is already done: someone opened the file wrongly and saved it again, and now “Café” is really in it. Paste the text into the tab “Repair” or open the file there. Every broken spot is marked and converted back, even if it broke twice. With “Save as UTF-8 file” and the option “Save with BOM” you get a file that Excel reads correctly.

    Fix garbled characters

And the other way round?

A portal asks for a CSV and you have an Excel file: the direction “Excel → CSV” reads .xlsx and .xlsm, lets you pick the sheet and set the delimiter, character encoding, decimal separator and date format. Ask the portal what it expects. Many programs want commas, a period as the decimal sign and UTF-8 without BOM.

Good to know

Tools used in this guide

Related guides

All guides