Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Byron
 
Posts: n/a
Default Importing Comma Seperated Text Please Help ?

Hi There,

I have a device which pumps out text in a "serial stream" the data is in a
format like below:

1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0

Using the text import wizard the data must be arranged into columns or a
table like:

1,2,3,4,5,6,7,8,9,0
1,2,3,4,5,6,7,8,9,0

for it to import into cells, is ther any way I can get the data to format
into cells correctly ?

Anyy help greatly appreciated.

Cheers!

Byron

  #2   Report Post  
Bryan Hessey
 
Posts: n/a
Default


Byron,

Your main problem is that you appear to have no line seperator
character, though your example shows 10 columns for a line. (10 is thus
the number of Find statements used)

Hopefully someone has a better idea, but for a small amount of data you
could use:

Assuming the data is in cell A15 (insert a few rows will do that)

put in cell B16 the formula:


=FIND(",",A15,1+FIND(",",A15,1+FIND(",",A15,1+FIND (",",A15,1+FIND(",",A15,1+FIND(",",A15,1+FIND(",", A15,1)))))))

and in cell A16 the formula:

=MID(A15,1+FIND(",",A15,1+FIND(",",A15,1+FIND(",", A15,1+B16))),32768)

and formula-drag these down to cover enough data.

then hilight A16:A9999 down the column (to the end of your data) and do
CTRL/C (Copy) and Paste Special, Values to cell A1 on a new sheet

On this new sheet,
Select column A and do 'Data' - Text-to-Columns, using comma as a
delimeter

After this remove columns K:IV

also, check out the last couple of rows.

Limits are, of course, 32768 characters in a cell, so your original
data cannot exceed 32k.

Let me know how you go



Byron Wrote:
Hi There,

I have a device which pumps out text in a "serial stream" the data is
in a
format like below:

1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0

Using the text import wizard the data must be arranged into columns or
a
table like:

1,2,3,4,5,6,7,8,9,0
1,2,3,4,5,6,7,8,9,0

for it to import into cells, is ther any way I can get the data to
format
into cells correctly ?

Anyy help greatly appreciated.

Cheers!

Byron



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

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
Import comma delimited text Lin Excel Discussion (Misc queries) 3 July 28th 06 04:07 PM
Paste comma delimited text into a spread sheet Dave Plyer Excel Discussion (Misc queries) 5 June 21st 05 01:39 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
importing multiple text files URGENT!!! HELP tasha Excel Worksheet Functions 0 December 19th 04 04:26 PM
importing multiple text files??? tashayu Excel Discussion (Misc queries) 0 December 19th 04 02:43 PM


All times are GMT +1. The time now is 10:35 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"