How to Create a CSV File: 12 Steps (with Images)

Table of contents:

How to Create a CSV File: 12 Steps (with Images)
How to Create a CSV File: 12 Steps (with Images)
Anonim

CSV files (acronym meaning "comma separated values") allow you to save data in tabular format, which is particularly useful when it comes to managing a large database. You can use Microsoft Excel, OpenOffice Calc, Google Sheets and Notepad to create them.

Steps

Method 1 of 2: Microsoft Excel, OpenOffice Calc, and Google Sheets

Create a CSV File Step 1
Create a CSV File Step 1

Step 1. Create a new worksheet with Microsoft Excel, OpenOffice Calc or Google Sheets

If you just need to convert an existing spreadsheet to CSV format, go directly to step # 4

Create a CSV File Step 2
Create a CSV File Step 2

Step 2. Type the field names (or headings) in the individual cells of the first row, at the top of the spreadsheet

For example, if you want to enter data about the items you sell, type "Name" in cell A1, "Price" in cell B1, "Description" in cell C1, and so on.

Create a CSV File Step 3
Create a CSV File Step 3

Step 3. Enter the data in the spreadsheet under the corresponding column

Always referring to the example presented in step # 2, write the name of the first item in cell A2, the price in cell B2 and the description in cell C2.

Create a CSV File Step 4
Create a CSV File Step 4

Step 4. After entering the data of all the articles, click on "File" and select "Save as"

If you use Google Sheets, the same command appears in this form: "File> Download As".

Create a CSV File Step 5
Create a CSV File Step 5

Step 5. Choose the "Download as" option and select the "Comma Separated Values (.csv)" format from the drop-down menu

Create a CSV File Step 6
Create a CSV File Step 6

Step 6. Name your CSV file, then select "Save"

You just created a CSV file, where commas are automatically added to separate each field.

Method 2 of 2: Notepad

Create a CSV File Step 7
Create a CSV File Step 7

Step 1. Open Notepad and type the field names in the first line, separated by commas

If you want to enter the data of the items you sell, write the names of the fields in the first line: "name, price, description". There can be no spaces between one article and another.

Create a CSV File Step 8
Create a CSV File Step 8

Step 2. Now enter the data starting from the second row, using the same format adopted for the field names

Based on the example presented in step # 1, write the name of the first item, followed by the price and description. For example, if you sell sporting goods, write: "tracksuit, 30, sport".

Create a CSV File Step 9
Create a CSV File Step 9

Step 3. Continue to enter the data of each single item in the following lines

If you leave any fields blank, remember to insert the comma, otherwise the cells will be misaligned.

Create a CSV File Step 10
Create a CSV File Step 10

Step 4. Click on "File" and select "Save"

Create a CSV File Step 11
Create a CSV File Step 11

Step 5. Enter the file name and select ".csv" from the drop-down menu containing the extensions

Create a CSV File Step 12
Create a CSV File Step 12

Step 6. Click on "Save"

You just created a CSV file with Notepad.

Recommended: