Pricing
Contact
Log in Book a demo
← All resources

Experience Intelligence

Opening a CSV in Excel: separators and data formatting

Learn how to import a CSV file into Excel and check delimiters, dates, encoding, and numbers. Preserve identifiers and leading zeros when analyzing data.

In this article
Person reviewing documents next to a tablet and a screen with graphics.

Key idea

A CSV file stores tabular data as text separated by a delimiter. To import it into Excel, check the separator, encoding, and data type of each column before loading the data. Identifiers and phone numbers should be treated as text when you need to preserve leading zeros or the country code.

Importing a CSV file in current versions of Excel

In Excel for Microsoft 365 and later versions, use Data → From text/CSV, select the file and review the preview. Choose the correct delimiter and check the encoding. Before uploading, preserve the identifiers as text and check the regional date and decimal formatting. The steps for the old interface below may vary depending on your version.

A CSV file is a very efficient way to translate a table of data into a text string. This is achieved by using a symbol to separate the values of each cell; that is, using a specific character to indicate that a cell in the table ends and we move on to the next. Usually, this symbol is a comma, hence the name: Comma Separated Values.

Using a simple example, if we have this table:

The separators
The character used to indicate that one cell ends and the next begins is called a separator.

The most common separator is the comma, but you can find CSV files that use other characters as separators.

In Europe, the semicolon (;) is very common, and the tab and the vertical bar (|) (also called a "pipe" or "pipeline") are also quite frequently used. Don't worry, we'll see why they're used and how to open CSV files with almost any separator.

Why is it used so much?

The use of CSV files is widespread in environments where tables or lists of information are generated that can be transmitted to other systems. They are also commonly used to perform the reverse process, that is, to include information from tables created externally or with another system that is not directly compatible.

Examples of environments where CSV files are commonly used include major database managers (such as MySQL or MS SQL Server…), ERPs (such as SAP or MS Dynamics or SAGE…), e-commerce management systems (such as Magento or Prestashop…) or content management systems (such as WordPress…).

Using CSV files allows you to share table information from any system in a nearly standardized way, using a text format with cell separators that virtually all systems "understand." Furthermore, reducing table information to a virtually plain text file makes it much easier to transmit that information over online channels or make it available for easy download without using large, heavy, or complexly structured files.

If you want to learn how to do it, we invite you to follow this guide using a CSV file.

1 – Open Excel and create a new workbook.

2 – Go to the Data tab and click on “Get external data”.

3 – Then click on “Text File Data”.

4 – A file explorer window will appear to locate and select the CSV file you want to open. After selecting it, click “open”.

Immediately afterwards, a wizard will pop up to guide us through the process of importing and converting the data to our Excel workbook.

5 – Most likely our CSV file is comma delimited, so we select the “Delimited” option.

If the file includes headers or titles for the fields, don't forget to select the "My data has headers" option. Once you've done this, click Next.

6 – We've reached the most important step:

Here we choose the delimiter, which is usually a comma, or in some cases, a semicolon. Selecting it will show us an example of how our data will be selected, and we can finally see the columns as they should be.

7 – We have reached the step where we can indicate what type each column is.

Select each column in the preview and indicate its data type. If you leave it on "General," it will be treated as a numeric value. You can also select the date format, where DMA stands for day, month, and year. Before clicking "Finish," it's important to click on "Advanced" and go to step 8 of this trick.

8 – We accept the advanced settings window and click on finish.

9 – Once this is done, a final window will appear asking if we want the data to be imported into the current document or into a new document.

If you've already opened a new document before starting this, the behavior is exactly the same. Additionally, we have several other options to explore before clicking OK.

Now we should have the data correctly imported into Excel, the columns are as they should be, and we can finally start working with them.

 

Resources to continue

How to connect this topic with experience management

WIT is an Experience Intelligence platform that connects feedback, AI-powered analytics, and improvement tracking. NPS is one of its metrics, along with CSAT and CES; management also includes open feedback, reputation, customer retention, and comparisons between teams or branches.

Methodological reference