Skip to content

Wiresoft · Wiresoft Canada Inc.

Reading display

Your display preferences are saved on this device. Resetting removes the saved selection.

Office

How to use CSV files properly – explained simply!

Using CSV files has many advantages and makes it possible to work with other interfaces. We’ll show you how!

By Wiresoft Editorial Team

Published
Content reviewed

Listen to this article

Start reading aloud with a voice from your device. Changing the voice, speed or section stops playback; you can then start again.

Read-aloud settings

Checking available voices.

Overview

Analysing exchanged data can sometimes be frustrating – because not everyone uses Excel for their work. And even if they do, it isn’t always straightforward to integrate data from one document into another without having to recalculate everything from scratch. Fortunately, however, you don’t have to type out endless data series by hand to be able to work with them in your Excel spreadsheet – because, thankfully, CSV files are available for this purpose.

With Excel 2016, Microsoft has added a new feature to this programme in the successful Office suite that simplifies such tasks. Using the ‘Import Data’ feature, you can now import data into Excel more effectively, add your own calculations and analyse it.

What is a CSV file?

A CSV (comma-separated values) file is a simplified text or database file which is generally used to exchange simply structured data. You can store tables or lists of any length in such CSV files. Most text or database programmes, such as Excel, can export and import CSV files, making them a practical means of exchanging universally readable data sets.

CSV files are particularly common in the field of accountancy, as they make it easy to exchange large volumes of data relating to customers, products and invoices. For this reason, many accounting programmes can export CSV files, enabling the company’s accounting or financial control departments to work with the data without needing access to the actual accounting programme or having to transcribe the data manually.

Import a CSV file into Excel

In the ‘File’ tab, go to the ‘Data’ tab, where you’ll find the ‘New Query’ option in the ‘Get and Transform’ group. From the drop-down menu, select the ‘From file’ option and then ‘From CSV’. A new window will open where you can browse for the file. Click ‘Import’ to confirm your selection.

Once you have imported the file into Excel, a preview window will open. Here, you can check whether Excel has correctly recognised the data and its structure. If this has not happened automatically, you can correct the source file version.

By clicking on ‘Transform Data’, you first load the data into Excel’s ‘Query Editor’. Here, you can correct any individual errors that may have occurred during the data transformation. However, Excel’s import function is generally very reliable, so you usually won’t need to make any corrections here.

In the Query Editor, under the ‘Home’ tab, you can remove one or more columns and/or rows, split columns and create groups. Under the ‘Add Column’ tab, you’ll find various options for adding columns, merging columns, etc. These also include useful tools such as automatically adding a date or time to an entry. In the ‘Transform’ tab, you can edit the imported data by defining headings, reversing rows, etc.

Edit imported data

Once you have checked the data display in the Query Editor and confirmed it by clicking ‘Close & Load’, Excel will add the data to the currently selected worksheet.

You can now use the data as if you had created it yourself. If categories, groups and sort orders already exist, Excel will apply these to the imported data as well.

If these aren’t available yet, you can still use Excel to organise large amounts of data without using formulas.

Export an Excel spreadsheet as a CSV file

Conversely, if you want to save your Excel spreadsheet as a CSV file, go to the ‘File’ tab and click on the ‘Export’ menu option on the left.

Under ‘Export’, you’ll find various options for exporting your spreadsheet. To create a CSV file, select the bottom-most option, ‘Change file type’, and then double-click to select the ‘CSV (comma-separated)’ (csv) option.

Quick guide: Importing CSV files into Excel

  1. Switch to the ‘Data’ tab and click on ‘New query’ here
  2. Select ‘From file’ and ‘From CSV’, then open a CSV file
  3. Edit the CSV file as you wish in the Query Editor
  4. Confirm your data selection in the Query Editor by clicking ‘Close and Load’

About the authors

Wiresoft Editorial Team

The Wiresoft editorial team explains software, licences and how to use Windows, Office and servers in a clear and practical way. The articles are based on the questions that customers ask Wiresoft in their day-to-day lives.

Sources and further reading

Matching productsOffice

More on this topic

KEEP THE CONVERSATION GOING

Comments on this article

Reviewed comments and replies from the editorial team.

Comment on this article

There are no currently approved comments on this page yet.

YOUR SELECTION

Your basket