HOW DO I CONVERT A .TXT FILE TO EXCEL

T

Todd

I'm using Excel 2003. I have a basic text file (.txt) that I need to convert
to a spreadsheet in Excel. Visually the text file appears to be in columns.

Normally I would copy the text file to Word and then go through the steps to
replace the spaces with tabs, then converting text to table, then copy to
Excel. However, the text file I'm working with doesn't have a uniform number
of spaces separating each column (e.g. 1-8 spaces before tems). So unless I
want to go through the entire text file line by line and insert the tabs, I
can't figure out how to do it.

Is there an easy way to convert this file?
 
D

Dave Peterson

If you open the text file in NotePad, does it look like it's in columns?

If yes, then drop the MSWord stuff and just use:
File|Open
to open the text file.

You'll be prompted with a text import wizard and you can choose that your data
is in a fixed width format.
 
G

Gord Dibben

Or if not fixed width...........use delimited by>space and in second step of
wizard checkmark "treat consecutive delimiters as one"

This will treat the 8 spaces as one space.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top