Different CSV Formats

Written by Allen Wyatt (last updated January 22, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


2

Bruce often has to save his Excel worksheets in CSV format for use with other programs. When performing the Save As operation, he noted that there are several different CSV formats listed as possibilities. Bruce is curious about the differences between these CSV formats.

For those unfamiliar with the acronym, CSV is short for "comma-separated values" and refers to a way that data can be saved in a non-Excel format. When you click the down-arrow next to the Save As Type drop-down list in the Save As dialog box, what you see depends on the version of Excel you are using. The version of Excel provided with Office 365 has the largest number of format options, including the largest number of CSV options. (See Figure 1.)

Figure 1. Excel lets you save workbook data in a plethora of formats.

You'll note that you have four CSV-related formats available, as follows:

  • CSV UTF-8 (Comma delimited)
  • CSV (Comma delimited)
  • CSV (Macintosh)
  • CSV (MS-DOS)

There are different CSV formats available because there are different ways of creating CSV files. (Makes sense, huh?) Actually, there are many, many ways of creating CSV files, but Excel supports only these four.

Each format affects character encoding in slightly different ways. For example, the Macintosh format uses a CR (carriage return) as the terminating character for a record or a line, while Windows based formats—in essence, the other three—use CR/LF (carriage return/line feed). So, each format is slightly different.

The difference between the three formats is based on which code page is used with each format. Code pages have to do with the way in which individual characters are encoded, and it typically comes into play if you use extended characters—such as foreign characters or accented characters—in your data. The code pages used by each format can vary, depending on (1) the version of Excel you are using, (2) which language version of Excel you are using, and (3) how your regional settings are configured. In other words, there is no fast-and-hard rule about what code pages will be used with which CSV format you choose for your export.

Rather than get into the technical weeds about the differences about how the code pages are used, you might want to take a look at this web page which I found quite helpful. (Warning: The web page gets quite technical in places, and you'll see programmer frustration with Excel on full display.)

https://donatstudios.com/CSV-An-Encoding-Nightmare

The bottom line is that different formats are provided by Microsoft for different ways of communicating with other, non-Excel programs. If you want to communicate with a different program, you'll need to have a firm understanding of what that other program expects in the way of CSV formatting, and then choose the format in Excel that best matches what is expected. You may also need to do some testing—making sure your workbook contains a wide variety of data, both regular and extended—to ensure your data export and import works as expected.

There is also one other tidbit that I've found helpful—don't store your workbook ONLY in CSV format. Instead, save your "master copy" in Excel's native format, and only use Save As to put it into your desired CSV format as you are preparing the file for the non-Excel program.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13672) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Filling A Drawing Object

Creating a drawing object can be just the first step in putting together your masterpiece drawing. This tip explains how ...

Discover More

Finding the Sum of a Sequential Integer Range

In mathematics, the sum of a range of sequential integers, starting with 1, is known as a triangular number or Gaussian ...

Discover More

Saving Search and Replace Information in a Macro

You may want to save a user's existing Find and Replace settings before changing them in your macro. This tip examines ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Avoiding Scientific Notation on File Imports

When importing information from a CSV file, you may get unintended results from time to time. Here's how to force Excel ...

Discover More

MRU Files Won't Display

Excel provides a quick way to access the workbooks you've most recently worked on. This tip addresses how to display a ...

Discover More

Determining the Length of a Text File

When processing plain text files in a macro, it is often helpful to know how much data the file contains. The normal way ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine minus 5?

2020-09-17 22:50:37

Rhonda

Thanks Allen. Your explanations are always so clear.


2020-08-19 14:28:20

Laura

Very helpful. Thank you.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.