search
HomeTopicsexcelHow to change Excel CSV delimiter to comma or semicolon

This tutorial explains how to adjust CSV separators when importing or exporting data to/from Excel, allowing you to save files in comma-separated or semicolon-separated formats.

Excel's automatic settings can sometimes lead to unexpected results. For instance, you might intend to export data as a comma-separated CSV file, but instead receive a semicolon-delimited file. This tutorial will guide you through changing this setting.

  • Saving Excel files as CSV with custom delimiters
  • Opening or importing CSV files with custom delimiters
  • Globally changing the default CSV separator
  • Modifying the List separator: implications and considerations

Excel's CSV Delimiter

Microsoft Excel uses the List separator defined in Windows Regional settings to handle .csv files. In many regions, the default is a comma, creating comma-separated CSV files. However, in others (like many European countries), a semicolon is used as the list separator, resulting in semicolon-delimited CSV files. The methods below show how to override this.

Changing the Separator When Saving as CSV

Excel typically uses the default List separator when saving as .csv. To force a different delimiter:

  1. Go to File > Options > Advanced.
  2. Uncheck Use system separators under Editing options.
  3. Change the Decimal separator. To avoid confusion, also change the Thousands separator to a different character.

To create a semicolon-delimited CSV:

  • Set Decimal separator to a comma (,)
  • Set Thousands separator to a period (.) How to change Excel CSV delimiter to comma or semicolon

To create a comma-delimited CSV:

  • Set Decimal separator to a period (.)
  • Set Thousands separator to a comma (,) How to change Excel CSV delimiter to comma or semicolon

Remember: Changes made in Excel Options only affect Excel. Other applications will still use the system's default List separator.

Changing the Delimiter When Importing CSV

Several methods exist for importing CSV files. The delimiter adjustment method depends on your chosen import technique.

Specifying the Separator Directly in the CSV File

To ensure Excel correctly interprets a CSV file's delimiter, add a line at the beginning of the file specifying the separator:

  • Comma: sep=,
  • Semicolon: sep=;
  • Pipe: sep=|

You can use other characters as well. After adding this line, open the file in Excel.

Example for a semicolon-delimited CSV:

How to change Excel CSV delimiter to comma or semicolon

Using the Text Import Wizard (Legacy)

For older Excel versions or to access this functionality, you can use the Text Import Wizard:

  • Enable the "From Text (Legacy)" feature if necessary.
  • Change the file extension from .csv to .txt and open it in Excel. This will automatically launch the wizard.
  • In step 2, select your delimiter (tab, comma, semicolon, space, or custom).

How to change Excel CSV delimiter to comma or semicolon

Using Power Query

In Excel 2016 and later, Power Query offers another import method. During connection setup, you can specify the delimiter in the Preview dialog.

How to change Excel CSV delimiter to comma or semicolon

Globally Changing the Default CSV Separator

To change the default List separator system-wide (affecting all applications):

  1. Access Windows Region settings (Control Panel > Region or search for "Region").
  2. Click Additional date, time, and regional settings.
  3. Click Change date, time, or number formats.
  4. Click Additional settings….
  5. On the Numbers tab, change the List separator. Ensure it differs from the Decimal symbol.
  6. Click OK twice. Restart Excel for changes to take effect.

How to change Excel CSV delimiter to comma or semicolon How to change Excel CSV delimiter to comma or semicolon How to change Excel CSV delimiter to comma or semicolon How to change Excel CSV delimiter to comma or semicolon How to change Excel CSV delimiter to comma or semicolon

Caution: System-wide changes affect all applications. If problems arise, use the Reset button in the Customize Format dialog to restore defaults.

Understanding List Separator Changes

Different regions use different default separators (decimal, thousands, list). The List separator and Decimal symbol must be different. Changing the List separator also affects number display and formula argument separators in Excel. If unsure, modify the separator only for individual files.

US/UK: Decimal (.), Thousands (,), List (,)

EU: Decimal (, ), Thousands (.), List (;)

How to change Excel CSV delimiter to comma or semicolon How to change Excel CSV delimiter to comma or semicolon

This tutorial details how to manage CSV delimiters in Excel. Choose the method best suited to your needs.

The above is the detailed content of How to change Excel CSV delimiter to comma or semicolon. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
how to do a drop down in excelhow to do a drop down in excelMar 12, 2025 am 11:53 AM

This article explains how to create drop-down lists in Excel using data validation, including single and dependent lists. It details the process, offers solutions for common scenarios, and discusses limitations such as data entry restrictions and pe

How to create timeline in Excel to filter pivot tables and chartsHow to create timeline in Excel to filter pivot tables and chartsMar 22, 2025 am 11:20 AM

This article will guide you through the process of creating a timeline for Excel pivot tables and charts and demonstrate how you can use it to interact with your data in a dynamic and engaging way. You've got your data organized in a pivo

Can excel import xml filesCan excel import xml filesMar 07, 2025 pm 02:43 PM

Excel can import XML data using its built-in "From XML Data Import" function. Import success depends heavily on XML structure; well-structured files import easily, while complex ones may require manual mapping. Best practices include XML

how to sum a column in excelhow to sum a column in excelMar 14, 2025 pm 02:42 PM

The article discusses methods to sum columns in Excel using the SUM function, AutoSum feature, and how to sum specific cells.

how to make pie chart in excelhow to make pie chart in excelMar 14, 2025 pm 03:32 PM

The article details steps to create and customize pie charts in Excel, focusing on data preparation, chart insertion, and personalization options for enhanced visual analysis.

how to calculate mean in excelhow to calculate mean in excelMar 14, 2025 pm 03:33 PM

Article discusses calculating mean in Excel using AVERAGE function. Main issue is how to efficiently use this function for different data sets.(158 characters)

how to make a table in excelhow to make a table in excelMar 14, 2025 pm 02:53 PM

Article discusses creating, formatting, and customizing tables in Excel, and using functions like SUM, AVERAGE, and PivotTables for data analysis.

how to add drop down in excelhow to add drop down in excelMar 14, 2025 pm 02:51 PM

Article discusses creating, editing, and removing drop-down lists in Excel using data validation. Main issue: how to manage drop-down lists effectively.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),