Microsoft Excel 2007 - How to Import CSV Files

Written by:  • Edited by: Michele McDonough
Updated Mar 10, 2011
• Related Guides: Microsoft | Excel

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.

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 Import
click to enlarge
To 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:

References

Author's own experience

Image credit: Screenshot from author's PC


Comments

Showing all 33 comments
 
Phil4v19 Dec 12, 2011 12:19 AM
RE: Microsoft Excel 2007 - How to Import CSV Files
I presume you have done as explained above ?...<br><br>In the first step, make sure you have Delimited set <br>as the first option. <br> In the second step, make sure you check the box next to Comma.
Douglas Dec 11, 2011 8:07 PM
RE: Microsoft Excel 2007 - How to Import CSV Files
My csv files is one long continuous string of data with the fields separated by commas. There are six sets of data, so I want the data to be stored in six columns on the spreadsheet - after the sixth comma I want the seventh piece of data to go into column 1. I remember being able to do this with one long csv file in the days when I used to write programs to create the csv files, but I cannot now see how Excel can define the number of columns to use. When I try it, it just puts the data into one very long row.
Mabansagmark Nov 24, 2011 8:15 PM
RE: Microsoft Excel 2007 - How to Import CSV Files
i love you ;)
ali Aug 2, 2011 7:03 AM
Thanks
Thanks! very good and excellent
phil Jul 18, 2011 1:56 PM
RE: Microsoft Excel 2007 - How to Import CSV Files
that works fine until you have a text string that is over 255 chars then it appears to be truncated. Any ideas??
Socorro F Apr 22, 2011 11:42 PM
Cool! It helps
That was cool! It helps me identifying it for a while. Now, you are great!
sijpie Feb 9, 2011 12:21 PM
2007, what a joke!
What was Microsoft ever thinking in developing 2007? The simplest things become complicated. The amazing thing is that a .csv gets a nice Excel icon, but excel doesn't even recognise it as a csv. I hope this was fixed in 2010.
Developer Feb 9, 2011 12:11 AM
thank you very much team
you saved me.. thank you
Maria Jan 21, 2011 2:32 PM
THANKS!!!!
You just saved my life!!! Thanks a lot, this How-to is great :D
vijayareddy Jan 20, 2011 2:24 PM
Dependent drop down list in CSV file.
Hi .. how to do dependent drop down list in CSV file. In CSV file the list should not be stored bcz the external system will consider the list rows as imported records.
So, Is ther any solution like putting the list in an another csv file and giving ref in dependent CSV file?
Mohan Jan 19, 2011 3:09 AM
error to save csv file
problem is not save the csv file in office 2007
how to save csv file in office 2007
niranjan Nov 24, 2010 7:41 AM
make one file separated sheet of many file
We have many Excel file but my requirement is make make one file separated sheet how can do please suggest me
Sanjay Kumar Nov 9, 2010 7:08 AM
Formatting numbers in CSV
@ John,

Select all the column (highlight all) and choose text in the dialog box before finish. The numbers will be converted into text and will appear in the same form as they are in orginal file.
Lyle Nov 7, 2010 2:55 PM
RE: Microsoft Excel 2007 - How to Import CSV Files
THANKS! Been wondering how to do that, and as usual the Help function was not any help.
Long Oct 16, 2010 3:04 PM
T H A N K S
very helpful!
Anonymous Oct 5, 2010 8:56 AM
Thanks
Nice
Thanks.Easy and fast
Arnaud Sep 23, 2010 6:05 AM
Congrats!!!
The other versions of excel was so simple! The new one is very complicated...

Thank you for the trick, it will give the smile to my boss!

Thank you!
John Sep 8, 2010 4:19 PM
Formatting numbers in CSV
I have a problem with numbers in CSV, I have to send a monthly report that the receiver has to have in CSV. When I convert it from Excel it distorts the numbers. For example I will have a 16 digit account number like this 1234567890123456 but when convert to CSV it appears as 1234567890123450. Every Account number changes the last digit to 0. Even if I go back in and change the number it reverts back to a zero. Anybody have any solutions?
Jules Aug 24, 2010 6:58 PM
RE: Microsoft Excel 2007 - How to Import CSV Files
I want to know the answer to this, too as I have the same problem with excel 2007. "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."
Dickson Aug 19, 2010 9:31 PM
RE: Microsoft Excel 2007 - How to Import CSV Files
thanks man :)
Ed May 26, 2010 2:36 PM
I spent an hour yesterday...
This saved me a lot of time. I knew I had done this in the past, I just couldn't remember to start with Data not file > Open.

Thanks!

Ed...
Jitendra Joshi May 24, 2010 5:15 AM
Thanks!!
Great Stuf!!...
Keep up the Good work...
Ashutosh Shah Apr 24, 2010 8:37 AM
How to Import CSV files
Thanks a ton for the article. Was extermely useful for me as a beginner and saved a lot of time in trying to understand how to import CSV data in Excel in a meaningful way.

Keep up the good work.

Best Regards
Alex Feb 11, 2010 8:45 AM
THANK YOU
Thank you so much, you just saved me countless hours of work!!!
Etch Jan 20, 2010 4:35 PM
Thank you
that was really helpful.
Rich Jan 16, 2010 11:40 AM
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.
Ed Jan 13, 2010 6:50 PM
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?
Bill Dec 30, 2009 7:28 PM
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.
Rich Dec 23, 2009 12:44 PM
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
Mahdi Oct 27, 2009 10:34 PM
Great
I've been searching anywhere and no such a clear solution. Even some don't get the point
Deejay Marrulla Oct 26, 2009 12:05 AM
Hey, Super Cool Info
I've be waiting so long searching for a way to convert scv files into excel.
Preda Ioana Sep 21, 2009 4:07 PM
Inchirieri
great post man rent a car
Alex Jul 22, 2009 9:35 AM
Thank you.
Thank you for article.
 
blog comments powered by Disqus
Email to a friend