Solved

Formatting and aligning a text file into an Excel or Access file

Posted on 2013-10-31
2
318 Views
Last Modified: 2013-11-01
Hi Guys, I recieve a Daily text file. Can someone show me how to export it to Excel or Access with the data columns in line? I enclose an attachment
GBO-Dashboard-Report.txt
0
Comment
Question by:Justincut
2 Comments
 
LVL 10

Accepted Solution

by:
mark_harris231 earned 500 total points
ID: 39614030
In Excel, you can import a text file:

- Select Data tab > From Text
- Select text file to import from saved location
- Select Delimited
- Select Tab and Comma as the delimiters
- Click Finish

This appears to work fairly well in terms of preserving column alignment, at least until the bottom sections (i.e., Bond Events for Reprocessing and New Branch/Instrument Type Combo).  Unless you have some control over the output format, these would require some manual manipulation.  If you can add commas to the end of the headers and values in each column of the original file, this method will do a better job of aligning the columns in Excel.

Note that this method does result in a significant number of cells with leading spaces.  You can use the TRIM() function to clean these up, or you could try this free utility to do this en masse:

Trim Worksheet
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39614139
Your text files seems to contain data from different "tables"
(all with different fields and datatypes.)
- N  O  N     V  A  L  I  D  A  T  E  D      T  R  A  D  E  S / E  V  E  N  T  S  - [D E T A I L S]
- T  R  A  D  E  S    W  I  T  H     N  O     M   T   M
-  C  A  S  H  F  L  O  W      S   T   A   T   U   S
-  R   E   Q   U   E   S    T            S   T   A   T   U   S
...etc
(There is also Header info for each of the "Tables")

Therefore there will be no simple way to import this one file (into Excel or Access) and create all the needed "tables"

What you need to do is go back to the creator of this textfile, and ask that you be given instead, one file for each 'table' (data structure)

From there it looks this the data is comma delimited and can be imported into Access or Excel fairly easily

JeffCoachman
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
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.

832 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