Solved

import TXT to EXCEL

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tags from access to excel 3 32
Automating Excel Weekly Report 13 64
ActiveX Listbox Multi Select in Excel 2010 8 20
Excel 2016 loop through 6 0
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now