Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text importing problem. Please Help!

I have a text file that has information in rows. For Example

FieldA XXXX
FieldB XXXX
FieldC XXXX
FieldD XXXX

FieldA XXXX
FieldB XXXX
FieldC XXXX
FieldD XXXX

FieldA XXXX
FieldB XXXX
FieldC XXXX
FieldD XXXX

So I import the text file and I get exactly that. Every line on a ne
row. What I woul like to do is get something more like this:

FieldA FieldB FieldC FieldD
XXXX XXXX XXXX XXXX
XXXX XXXX XXXX XXXX
XXXX XXXX XXXX XXXX

There has to be a way to do this, but I am racking my brain!!!! Help
Any suggestions?

Thank you,
Mar

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Text importing problem. Please Help!

The need you describe is not unusual.

A 6 step process is required.

(1) import the file into a word processor, perhaps MS-Word.

(2) Do a global substitution for the repeating end of record command, by
substituting a very unique character string, [perhaps !@#$%^&*()] for
the repeating end of record command [^p^p in MS word]. This step makes
sure the double end of record commands are not buried by step 3.

(3) Do a global substitution for the single end of record command,
substituting a tab. In MS Word find ^p and replace with ^t .

(4) Do a global substitution for the unique character string, [perhaps
!@#$%^&*()] substituting one end of record command [ ^p in MS Word]

(5) Save the file as a simple unformatted text file.

(6) Import file into Excel, and use Data / text to column to parse the
data based on a tab delimited records.

Buczacz - - - - - - - - - - - - - -



websrfr wrote:
I have a text file that has information in rows. For Example

FieldA XXXX
FieldB XXXX
FieldC XXXX
FieldD XXXX

FieldA XXXX
FieldB XXXX
FieldC XXXX
FieldD XXXX

FieldA XXXX
FieldB XXXX
FieldC XXXX
FieldD XXXX

So I import the text file and I get exactly that. Every line on a new
row. What I woul like to do is get something more like this:

FieldA FieldB FieldC FieldD
XXXX XXXX XXXX XXXX
XXXX XXXX XXXX XXXX
XXXX XXXX XXXX XXXX

There has to be a way to do this, but I am racking my brain!!!! Help!
Any suggestions?

Thank you,
Mark


---
Message posted from http://www.ExcelForum.com/


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem importing text into excel 2007 PivotMan Excel Discussion (Misc queries) 2 April 30th 09 09:16 PM
problem in importing text file! via135 Excel Discussion (Misc queries) 2 May 4th 07 06:37 AM
Importing Problem workerboy Excel Worksheet Functions 0 May 15th 06 01:45 PM
importing a text file - problem with dates "Americanising" strippier Excel Discussion (Misc queries) 3 February 21st 06 05:42 PM
Problem importing using MS Query Don Guillett[_4_] Excel Programming 2 July 11th 03 05:31 PM


All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"