Solved

import TXT to EXCEL

Posted on 2011-03-18
5
331 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 250 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 92

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

737 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