Subscribe to How-To Geek

Import Text into Excel 2007

Nothing equals Excel for crunching of numbers, but what if your data isn’t already in an Excel spreadsheet? It’s as simple as using the Text Import Wizard.

Open a blank or existing Excel 2007 spreadsheet.  Click the Data tab on the Ribbon and choose “From Text”.

Choose the text file you want to import and double click. This will open the Text Import Wizard.  Choose your data type and which row you want to start the data at and click next.

 

Step 2 of the Wizard allows you to manage the break lines between your data. 

Step 3 of the Wizard allows you to choose column formats, provides data preview, and other advanced settings.  When everything is organized click on Finish.

A final window will be displayed asking where you wish to put the data into the sheet.  Here you can see I chose A6.  Click OK…

Your Text Data will now be input into the Excel sheet!

Mysticgeek is the resident IT expert at How-To Geek and a huge rock music fan. His daily articles can be found at Mysticgeek's Realm. This article was written on 05/28/07 and tagged with: Microsoft Excel, Microsoft Office

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:
Similar Articles Featured Wiki Articles
Latest Software Reviews Quick Linux Tips
Geek Arcade Popular Forum Threads

Comments (26)

  1. Tiago Maymone

    In step 3 of the Text Import Wizard in Excel 2007 (SP1 included), if you
    click the «Advanced» button and change the settings, and then click OK, IT
    SIMPLY IGNORES YOUR CHANGES. If you click again on the «Advanced» button,
    you’ll notice the settings are wholly unchanged.
    So it’s impossible to instruct Excel 2007 to consider dots as decimal
    separators, for instance. It will simply ignore it.
    Does anyone know if there’s a turnaround, or some fix Microsoft has issued,
    or anything?

    Thanks

    TM

  2. JonhyJack

    Exactly the same problem with Excel 2007 SP1. We have an ERP that exports data in txt files with (dot’s) for decimal and (colon’s) for numeric separator. Our regional settings for Portugal are exactly reversed, and when we try to import it in Excel 2007 SP1 it just simples ignores the Advance Text Import Settings, I tried with Excel 2003 SP3 no problem.

    Same question: Does anyone know if there’s a fix ou patch from Microsoft that could fix this?

    Thanks
    JJ

  3. mysticgeek

    Not that I know of off hand … but I will look into this for you guys!

  4. Hau

    Thanks for the tip! I couldn’t find this in the 2007 until now. Definately saves me a few hour’s worth of work.

  5. RK61

    The only work-around I ahve found is to change your number separators in Regional Setting sin Control Panel. Import the text file then change your Regional Settings back. this works but is a pain when it worked just fine in Office 2003

  6. Nicander Lauwaars

    Hi Guys, can anyone give me an update on this one? Is there already a bugfix available? Thanks, Nic.

  7. Lagrange

    How can it be that Microsoft does not provide a bugfix for this when we are already beyond SP1? It is a critical issue for multi-country corporate use. Very strange!

  8. Taniwha

    I have csv files that I want to open with Excel (2007). the data show in one column, I know how to change it to see each field in a column, but how do I make Excel do this permanently?? I don’t want to have to convert each csv file each time I open it with Excel

  9. Dennis Olsen

    I continually need to import files that have 87 fields with a total of 1667 characters. How can I import the same format every time without inserting the field breaks in the same places repeatedly?

  10. Paul Frederick

    I have basically the same question as Dennis Olsen, only with a bigger data set. I am importing approx 900 1 digit fields. If I can’t find a way to save the import, I will have to find another way.

  11. Chris

    Can you scan a document directly into Excel 2007? Is it possible to insert a Word document into Excel 2007?

  12. Dennis Olsen

    Paul – I found a way to solve my problem. I recorded a macro to do the import. It took me about 30 minutes to set up the macro and now takes me about 10 seconds to import the files versus 20 minutes to do it manually. First, I got the Developer tab to show up in Excel. I set up a standard directory and standard file name to import. Then I clicked on Record Macro and went through all of the steps. Now I copy the file I want to download into that standard directory, rename the file to the name the macro is expecting, and run the macro. I should have done this about 20 imports ago. :-)

  13. Deb

    I’ve been all over this MS website and can’t find it– All I want to know is how many text characters I can put in a cell! Excel 2007, Excel 2003, Excel 95. Thank you Anybody!

  14. kenny

    No updates on this bug?

  15. Peter

    How can i import from an external text file that contains more row than the excel work sheet?
    ihave import as much as the worksheet can contain but have problem in importing the remaining row

  16. Ted Martin

    Good example. What is the best way to import data from QIF files?

  17. kenny

    I don’t think this is a bug after all. Since I have found some computers to cope quite well with thext imports.
    I just extracted the office key under HKEY CURRENT USER from one of the working computers to those where it wasn’t and it works just fine now.

  18. Michael

    I have to do this for each and every one of my text files? I asked how to import multiple text docs. Are we saying here multiple, but one at a time? Is there no way to import all text documents in a folder into one excel sheet?

  19. Don

    How do I import files that contain specific text and append to a worksheet then move to the next group and append to another worksheet within the same workbook?

    Random TXT Example: xx_01.txt, xx_02.txt, xx_03.txt, xx_04.txt, xx_05.txt, ……. xx_99.txt
    using cmd | findstr ” Sample #1 test ” and group the same worksheet

    xx_01.txt : findstr=” Sample #1 test ”
    xx_14.txt : findstr=” Sample #1 test ”
    xx_39.txt : findstr=” Sample #1 test “

  20. Kelly

    EXCELLENT! That was so easy it wasn’t even funny! THANK YOU!

  21. IVAN

    How do I import an outlook address book to exel file. I want to use this for a mail merge application

  22. Greg

    When importing text, is there any way to retain spaces? Excel always strips them off.

  23. NB

    Is it possible to post up the VB code for your import?
    I’m trying to create a macro, creating a button, click, then import my *.txt file into Excel, then run these steps…

    1.) Open Excel, then open your log file. This should bring up the file import dialog.

    2.) Select “Delimited”, Start Import @ row 3, and “Windows (ANSI)” as the file origin.

    3.) For delimiters, add a check next to “Space” and keep the one next to “Tab”.

    4.) Click Finish and your data will be imported properly.

  24. Ed

    I have 240 text files (dxdiag reports) that I would like to put into an excel spreadsheet. I do not need all of it but would like to have about nine different lines from the file placed in cells with one row per file (computer). Is this possible or do I have to take it to access via macros or some type of script? Thanks for any suggestions.

  25. Greg

    Thanks NB, it is actually a text file with variable length fields and no delimiters. I am trying to make a macro to import the file with the correct column breaks so I don’t have to go through the text file format and click on the same line breaks each time, but I also want to retain spaces.
    Is their any way to retain spaces using the fixed length column breaks?
    i.e. file format has field 1 being 5 bytes and field two having 10 bytes, etc with no delimiter

  26. BROMCHIT

    how can i sink the imported signatures and rubber stamping to be behind the existing lines, what command to use as in WORDS we use BEHIND TEXT command. Will highly appreciate your help. Thanks and regards, Bromchit.


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Sponsored Links
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.