Thread
:
Text to Columns Question
View Single Post
#
4
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
Posts: n/a
Text to Columns Question
On Thu, 29 Dec 2005 20:40:13 GMT,
rm the XX's (Dennis)
wrote:
Field 1 is 24-60 characters long. I would like field 2 to start 80 characters
from position 1 of field 1
Field 2 is 4- 11 characters long I would like field 3 to start 20 characters
from position 1 of field 2
Field 3 is 1-6 characters long I would like field 4 to start 20 characters
from position 1 of field 3
Field 4 is 1-6 characters long I would like field 5 to start 20 characters
from position 1 of field 4
Field 5 is 8 characters long I would like field 6 to start 20 characters from
position 1 of field 5
Field 6 is 8 characters long
Thanks for the help Ron, I hope this is the info needed.
Dennis
Since you have the starting point of each field, it should be trivial to use
the built-in text functions to parse it out.
Or you could use the Data/Text-to-Columns wizard and use a fixed width for each
field -- i.e. 79 characters for field 1 and so forth since each field, from
your description, will always start at a fixed point.
For formulas:
Field1: =trim(left(record,60))
Field2: =trim(mid(record,80,11))
Field3: =trim(mid(record,100,6))
and so forth.
--ron
Reply With Quote