Solved

import TXT to EXCEL

Posted on 2011-03-18
5
330 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
  • 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

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
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…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

828 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