?
Solved

import TXT to EXCEL

Posted on 2011-03-18
5
Medium Priority
?
333 Views
Last Modified: 2012-05-11
Hi,

We received a TXT file from our client.  It is a ; delimmited file.  But, based on their instructions, we should not be using delimited to import the file into Excel.  We should use Fixed width, they ask us to put lines before and after ;.  When the process is done, each ; has it own column, my question is, how can I remove those columns?  thx
0
Comment
Question by:mcrmg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 24

Expert Comment

by:broomee9
ID: 35166702
If there's a semicolon for each break, then you should use delimited, instead of fixed with.  Use delimited and choose semicolon as the delimiter.  When the data is split, the delimiters are not shown.
0
 

Author Comment

by:mcrmg
ID: 35166727
okay, is there a way to forace all columns are txt instead of general? and save the step?thx
0
 
LVL 24

Accepted Solution

by:
broomee9 earned 1000 total points
ID: 35166756
Yes, follow these steps.

- Open your text file with excel
- Select column A and then click Data --> Text to columns
- Select Delimited and click Next
- Select Semicolon and click Next
- Then for each of your columns in the Data Preview section, select the column, then click Text.  Then select the next column and click Text again, etc. until the last column.
- Then click Finish
0
 

Author Comment

by:mcrmg
ID: 35166787
cool...

is there a way to save the steps?  thanks
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 35166869
Do as broomee9 indicates above whilst using the macro recorder, and then post the code the recorder renders here for clean up.

No points, please :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question