Microsoft Excel 2007 - How to Import CSV Files

Article by Bill Fulks (21,967 pts )
Edited & published by Michele McDonough (85,328 pts ) on Feb 2, 2010

CSV stands for Comma Separated Values, and this simple text file format is excellent for moving data between programs that can't read each other's native format. Here, we'll look at how to import CSV files into a Microsoft Excel 2007 spreadsheet.

Microsoft Office 2007
List Price: $149.95
Sale Price: $75.95
Product Details

CSV Files Explained

In Windows, a file with a .CSV extension denotes a Comma Separated Values file. It’s a very simple text file format where the data is separated with commas, hence the name of the file. CSV files are most commonly used for transferring data between programs, such as exporting your Outlook Contacts into a .CSV file so that it can be imported into Excel or Access. Because .CSV files are just text, they can also be transferred between operating systems.

Working With CSV

The .CSV file extension has been around since the earliest days of computing, and it is still supported by many programs today. If you’ve ever been given the tedious task of transferring data between two different programs, then comma separated values will save you lots of headache. Microsoft Excel is great for importing this data and automated wizards built within the program help expedite the process.

Suppose you wanted to export an address book from one program into Excel. Let’s assume that program lets you export to CSV, as many do. When finished, your data will look something like this in the .CSV file:

Name,Address,City

Bill,124 Here,Biloxi

Christy,243 There,Biloxi

Mike,256 Alpha,Gulfport

Lucy,674 Beta,Gulfport

David,127 Horse,Biloxi

In the above example, you see the first line contains the label for each column, then underneath are five different data entries. Each piece of information is separated by a comma. Also notice the space between the street number and name.

Import to Microsoft Excel

CSV ImportTo import this back into Microsoft Excel 2007, click on Data, then click the From Text button in the Get External Data menu. This will bring up the Text Import Wizard.

In the first step, make sure you have Delimited set as the first option. You can also select which row you would like to start from. In this example, I’m doing the whole thing starting with the first row.

In the second step, make sure you check the box next to Comma. (See screenshot for an example.) This will then show your data in columns at the bottom. If you click the check next to Space, it will divide the address column into two lines, in this example. Sometimes this can be helpful when you are trying to break down data during the import, as some programs tend to lump data together.

The third step simply lets you choose the format of the data, such as numbers, text, or dates. After you’ve done that, just click Finish and the data will be imported into your spreadsheet. Depending on how big the .CSV file is, the import process could be instantaneous or take several minutes. I’ve seen giant database exports pulled into Excel that took a while to load, but they still worked just fine.

Additional Resources

That wasn't so bad, was it? Comma Separated Value values are very easy to work with, which is why they are still around today. They are mainly used for importing and exporting data between other programs, but they still function as a viable file format even though they are not very secure. With all the complications that get piled into every new version of some software out there, it’s good to know that the basics like .CSV files are still available.

For more tips and tricks, be sure to check out the other Microsoft Excel user guides and tutorials available here at Bright Hub:

10 Comments

Feb 11, 2010 8:45 AM
Alex
THANK YOU
Thank you so much, you just saved me countless hours of work!!!
Jan 20, 2010 4:35 PM
Etch
Thank you
that was really helpful.
Jan 16, 2010 11:40 AM
Rich
Saving...
Ed -- Sounds like you're saving the file back as a CSV file and losing the formatting. To save the formatting you'll need to change the file type to "Excel Workbook" in the "Save As" dialog box.
Jan 13, 2010 6:50 PM
Ed
coverting excell to csv
I'm working on a spreadsheet that needs to have special formatting (column widths, Cell formatting) etc. When I complete the spreadsheet and save to a CSV file it saves proper. When I leave the speadsheet and come back in the Colums and data revert back to an original workbook format (columns 8.43 Cell format general). Any ideas how to get the spreadsheet to open up as it was saved?
Dec 30, 2009 7:28 PM
Bill
cannot find dialog box or import text wizard
This topic looked like it had all the answers I've spent all day trying to solve. I am trying to import a CSV data table into Excel 2007. Unlike the example given, I do not get either a dialog box nor see a text import wizard when I select Import data. It simply takes me to "My documents" which then simply imports the file still in CSV format. Any suggestions appreciated.
Dec 23, 2009 12:44 PM
Rich
CSV File
Why do I get a differerent result if I simple click File-Open and select a CSV file versus going through the data import wizard. When I "open" the file I don't get the option to use the wizard. What defaults is Excel using here?

FYI, using Excel 2002
Oct 27, 2009 10:34 PM
Mahdi
Great
I've been searching anywhere and no such a clear solution. Even some don't get the point
Oct 26, 2009 12:05 AM
Deejay Marrulla
Hey, Super Cool Info
I've be waiting so long searching for a way to convert scv files into excel.
Sep 21, 2009 4:07 PM
Preda Ioana
Inchirieri
great post man rent a car
Jul 22, 2009 9:35 AM
Alex
Thank you.
Thank you for article.
 
Sponsors
 
Camtasia: record, save, share!
Record onscreen activity, your voice, and webcam video. See how great your presentation videos can look with Camtasia screen recording software!
Subscribe to Windows
RSS
Get free weekly updates, directly to your inbox.
Subscribe
Browse Windows Platform