ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Import txt file (https://www.excelbanter.com/excel-programming/322443-import-txt-file.html)

Greg[_16_]

Import txt file
 
Can you please assist.

I have a file that has tabs, CR, and LF, so I have delimeted the Txt
file by using a ^. eg a field can be any combination of ^text
.....CR....TAB....^

I wish to import the txt without the tabs, CR and LF. The file
contains about 24 columns, by about 200 rows.

What are my bext options?

Jim Thomlinson[_3_]

Import txt file
 
I'll start wiht the obvious just to find out if this requires something more
inticate. Copy the data into Excel and use Data - Text To Columns...

HTH

"Greg" wrote:

Can you please assist.

I have a file that has tabs, CR, and LF, so I have delimeted the Txt
file by using a ^. eg a field can be any combination of ^text
.....CR....TAB....^

I wish to import the txt without the tabs, CR and LF. The file
contains about 24 columns, by about 200 rows.

What are my bext options?


Jim Thomlinson[_3_]

Import txt file
 
To avoid that whole pesky exercise you can also use data - getdata - Text
File

HTH

"Greg" wrote:

Can you please assist.

I have a file that has tabs, CR, and LF, so I have delimeted the Txt
file by using a ^. eg a field can be any combination of ^text
.....CR....TAB....^

I wish to import the txt without the tabs, CR and LF. The file
contains about 24 columns, by about 200 rows.

What are my bext options?


Greg[_16_]

Import txt file
 
"?B?SmltIFRob21saW5zb24=?=" wrote in message ...
To avoid that whole pesky exercise you can also use data - getdata - Text
File

HTH

"Greg" wrote:

Can you please assist.

I have a file that has tabs, CR, and LF, so I have delimeted the Txt
file by using a ^. eg a field can be any combination of ^text
.....CR....TAB....^

I wish to import the txt without the tabs, CR and LF. The file
contains about 24 columns, by about 200 rows.

What are my bext options?


Thank you HTH

The issue is I wish to prevent the CR LF TAB being imported from
fields of text - sentences. It may be easier to clean the file in
word to remove, or replace all the non text characters, or to catch
the non text at the time of import, rather than cleaning up after the
importation.

I tried to find data - getdata - Text using xl 2002 however, I found
data - Import External Data - Import Data. All the data is placed
in one column and I used Text to columns to delimeter the column.

This works, is this still my best option?

If it is, during the Text to Columns process, is there a way to make
all the columns string rather than general?


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com