ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Parsing line breaks into separate cells (https://www.excelbanter.com/excel-discussion-misc-queries/246658-parsing-line-breaks-into-separate-cells.html)

JaneA28206

Parsing line breaks into separate cells
 
I have exported Outlook Contacts to Excel. The data in the "BusinessStreet"
field contains 'carriage returns'. I would like to non-manually split the
data into columns. I other words, I'd like a Suite number that appears on the
second line of the Outlook address to be in a separate column (cell). For
example, what exports into a single cell is "123 Front St||Suite A". I'd like
"123 Front St" to appear in one cell and "Suite A" to appear in a separate
cell. I've tried using Text to Columns, but to no avail. HELP! Thanks!!!
--
JaneA

Jacob Skaria

Parsing line breaks into separate cells
 
A small trick using DataText to Columns....

--By default the selection is 'Delimited'. Keep the selection and hit 'Next'.
--From the Step2 of the Wizard from the options select 'Other'
--In other hit the key combination Ctrl+j (Control key + j)
--Hit Finish

If this post helps click Yes
---------------
Jacob Skaria


"JaneA28206" wrote:

I have exported Outlook Contacts to Excel. The data in the "BusinessStreet"
field contains 'carriage returns'. I would like to non-manually split the
data into columns. I other words, I'd like a Suite number that appears on the
second line of the Outlook address to be in a separate column (cell). For
example, what exports into a single cell is "123 Front St||Suite A". I'd like
"123 Front St" to appear in one cell and "Suite A" to appear in a separate
cell. I've tried using Text to Columns, but to no avail. HELP! Thanks!!!
--
JaneA


BSc Chem Eng Rick

Parsing line breaks into separate cells
 
Data--Data Tools, click "Text to Columns". Select delimited--Next then try
using the "Space" as the delimiter. If that doesn't work, click other and
then Ctrl+j (I think that is the carriage return code.

If this helps, please click "Yes"
<<<<<<<<<<<


"JaneA28206" wrote:

I have exported Outlook Contacts to Excel. The data in the "BusinessStreet"
field contains 'carriage returns'. I would like to non-manually split the
data into columns. I other words, I'd like a Suite number that appears on the
second line of the Outlook address to be in a separate column (cell). For
example, what exports into a single cell is "123 Front St||Suite A". I'd like
"123 Front St" to appear in one cell and "Suite A" to appear in a separate
cell. I've tried using Text to Columns, but to no avail. HELP! Thanks!!!
--
JaneA


Jacob Skaria

Parsing line breaks into separate cells
 
Using formula:
With data in cell A1 copy the below formula to cell B1 and copy across as
required

=TRIM(MID(SUBSTITUTE(CHAR(10) & $A$1&
REPT(CHAR(10),6),CHAR(10),REPT(CHAR(32),255)),COLU MNS($B$1:B$1)*255,255))

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

A small trick using DataText to Columns....

--By default the selection is 'Delimited'. Keep the selection and hit 'Next'.
--From the Step2 of the Wizard from the options select 'Other'
--In other hit the key combination Ctrl+j (Control key + j)
--Hit Finish

If this post helps click Yes
---------------
Jacob Skaria


"JaneA28206" wrote:

I have exported Outlook Contacts to Excel. The data in the "BusinessStreet"
field contains 'carriage returns'. I would like to non-manually split the
data into columns. I other words, I'd like a Suite number that appears on the
second line of the Outlook address to be in a separate column (cell). For
example, what exports into a single cell is "123 Front St||Suite A". I'd like
"123 Front St" to appear in one cell and "Suite A" to appear in a separate
cell. I've tried using Text to Columns, but to no avail. HELP! Thanks!!!
--
JaneA



All times are GMT +1. The time now is 05:51 PM.

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