Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 118
Default 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

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
how do I remove line breaks from several cells? JR Excel Discussion (Misc queries) 3 May 15th 09 03:20 AM
Line Breaks in cells - Mac OS X Leopard plunkettphoto Excel Discussion (Misc queries) 1 August 7th 08 08:34 PM
Line breaks in my cells... AkelA Excel Discussion (Misc queries) 3 October 3rd 07 07:18 PM
Parsing a text string into separate cells Bobalew Excel Worksheet Functions 1 June 6th 07 09:16 PM
Inserting line breaks into merged text cells. MrSafetyNeedshelp Excel Discussion (Misc queries) 1 August 11th 05 10:12 PM


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