Table of Contents
Excel's CSV Delimiter
Changing the Separator When Saving as CSV
Changing the Delimiter When Importing CSV
Specifying the Separator Directly in the CSV File
Using the Text Import Wizard (Legacy)
Using Power Query
Globally Changing the Default CSV Separator
Understanding List Separator Changes
Home Topics excel How to change Excel CSV delimiter to comma or semicolon

How to change Excel CSV delimiter to comma or semicolon

Mar 27, 2025 pm 12:22 PM

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 of this Website
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

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1246
24
MEDIAN formula in Excel - practical examples MEDIAN formula in Excel - practical examples Apr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Excel shared workbook: How to share Excel file for multiple users Excel shared workbook: How to share Excel file for multiple users Apr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

Google Spreadsheet COUNTIF function with formula examples Google Spreadsheet COUNTIF function with formula examples Apr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

How to convert Excel to JPG - save .xls or .xlsx as image file How to convert Excel to JPG - save .xls or .xlsx as image file Apr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Google sheets chart tutorial: how to create charts in google sheets Google sheets chart tutorial: how to create charts in google sheets Apr 11, 2025 am 09:06 AM

This tutorial shows you how to create various charts in Google Sheets, choosing the right chart type for different data scenarios. You'll also learn how to create 3D and Gantt charts, and how to edit, copy, and delete charts. Visualizing data is cru

Excel dynamic named range: how to create and use Excel dynamic named range: how to create and use Apr 11, 2025 am 10:19 AM

This tutorial shows you how to create and use dynamic named ranges in Excel, automatically updating calculations as your data changes. Unlike static named ranges, dynamic ranges adjust to include new data without manual intervention. Last week's tut

How to flip data in Excel columns and rows (vertically and horizontally) How to flip data in Excel columns and rows (vertically and horizontally) Apr 11, 2025 am 09:05 AM

This tutorial demonstrates several efficient methods for vertically and horizontally flipping tables in Excel, preserving original formatting and formulas. While Excel lacks a direct "flip" function, several workarounds exist. Flipping Dat

How to do calculations in Excel How to do calculations in Excel Apr 11, 2025 am 10:20 AM

This tutorial demonstrates how to perform arithmetic calculations within Microsoft Excel and modify the order of operations in your formulas. Excel's capabilities extend far beyond simple addition; it can handle complex calculations, thanks to its h

See all articles