Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Gordo T
 
Posts: n/a
Default Excel import txt file carriage return as delimiters

I need to import a text file of data where the delimiter between fields is a
carriage return.
--
Gordo T
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think you have trouble.

What's the delimiter for end of line? Carriage Return & Line feed?

I think I'd try to open the file in a text editor program and change that field
delimiter to something else.

(I like UltraEdit (http://www.ultraedit.com) for this kind of thing.)

Gordo T wrote:

I need to import a text file of data where the delimiter between fields is a
carriage return.
--
Gordo T


--

Dave Peterson
  #3   Report Post  
Bryan Hessey
 
Posts: n/a
Default


If you have less than 65536 items, AND, if the items represented equal
numbers of items per row, you could import them into column A, and then
spread them across the required number of columns

Assuming that there are 5 items per required row:

In B1 put
=INDIRECT("$a"&((ROW()*5)-4))

In C1 put
=INDIRECT("$a"&((ROW()*5)-3))

In D1 put
=INDIRECT("$a"&((ROW()*5)-2))

In E1 put
=INDIRECT("$a"&((ROW()*5)-1))

In F1 put
=INDIRECT("$a"&((ROW()*5)))

and formula-copy these cells (B1 to F1) down to about one-fifth of your
data items (ie, enough to cover the last line input)

Then select columns B through F and Copy, then Paste Special = Values

Then delete column A

Hope this helps.


Gordo T Wrote:
I need to import a text file of data where the delimiter between fields
is a
carriage return.
--
Gordo T



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=471598

  #4   Report Post  
Posted to microsoft.public.excel.misc
hozey
 
Posts: n/a
Default Excel import txt file carriage return as delimiters


When getting a pdf file with a list of contacts in vertical fields with
a hard return between fields, is there a way to convert the vertical
fields into horizontal fields short of cut and paste?


--
hozey
------------------------------------------------------------------------
hozey's Profile: http://www.excelforum.com/member.php...o&userid=32720
View this thread: http://www.excelforum.com/showthread...hreadid=471598

  #5   Report Post  
Posted to microsoft.public.excel.misc
tkwriter
 
Posts: n/a
Default Excel import txt file with line break as delimiter

Did you ever get a satisfactory answer to this? I have the same question: I
want to import a txt file to an excel spreadsheet. What character can I use
to specify that the delimiter is a line break (hard return)? Is it even
possible to do this?


"Gordo T" wrote:

I need to import a text file of data where the delimiter between fields is a
carriage return.
--
Gordo T



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel import txt file with line break as delimiter

I'm by no means an Excel guru, more of a scrappy Excel user. All I did is
copied the cells with hard returns in them into "Notepad" and then copied
them back into Excel, then used the text to column feature to get rid of the
"quote" marks that Notepad added. No complex code, and no purchase of Ultra
Edit, and you can do it in 2 minutes. Sometimes just messing around gets you
an answer

"tkwriter" wrote:

Did you ever get a satisfactory answer to this? I have the same question: I
want to import a txt file to an excel spreadsheet. What character can I use
to specify that the delimiter is a line break (hard return)? Is it even
possible to do this?


"Gordo T" wrote:

I need to import a text file of data where the delimiter between fields is a
carriage return.
--
Gordo T

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
Can u Import Macintosh 2.1 Excel file into Windows Office 2000? Gail Excel Discussion (Misc queries) 0 September 2nd 05 02:26 PM
Is there a way to import a pdf file in to Excel jrandall Excel Worksheet Functions 7 April 26th 05 11:10 AM
How do I import a WORD file into EXCEL? MauiMama Excel Discussion (Misc queries) 1 March 1st 05 03:36 AM
Locating a file in excel with a partial file name. Audra Excel Discussion (Misc queries) 1 February 19th 05 08:51 PM
Locating a file in excel with a partial file name. Audra Excel Discussion (Misc queries) 0 February 19th 05 02:01 PM


All times are GMT +1. The time now is 09:12 AM.

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

About Us

"It's about Microsoft Excel"