Solved

How can I split a cell that contains text split by the characters <CR> into seperate cells.

Posted on 2014-01-24
4
303 Views
Last Modified: 2014-01-24
Hi,

I have 4500 address lines where the data is in the following format:

Accounts Department<CR>University of Nowhere<CR>Nowhere Lane<CR>London

That data is in cell A1.  I would like to split it out so that the data would read:

B1                                            C1                                   D2                   E2
Accounts Department     University of Nowhere  Nowhere Lane  London

The <CR> is actual text and not a system character

Many thanks,
Glenn
0
Comment
Question by:glennturner1
4 Comments
 
LVL 39

Expert Comment

by:als315
ID: 39807211
Can you upload sample and show expected result?
0
 
LVL 23

Accepted Solution

by:
NBVC earned 300 total points
ID: 39807223
Try this:

Select the column and go to Data|Text to columns.

Select Delimited, then Next.

Select the Other checkbox and type a < character

Click Finish.

Now go to Home|Find & Replace|Replace (or CTRL+H)

FIND WHAT: CR>

REPLACE WITH: (nothing)  don't enter anything.

Click REPLACE ALL
0
 
LVL 21

Expert Comment

by:Ejgil Hedegaard
ID: 39807234
Use replace Ctrl+H
Replace <CR> with | or another character that is not used in the text.
Perhaps character 255, Alt+255 on the numeric keypad.
Mark column A.
On the Data tab select 'Text to column' and insert | as the delimiter.
Then the result will be in columns A to D
0
 

Author Closing Comment

by:glennturner1
ID: 39807251
Hi  NBVC,

That is exactly what I was after.

Thank you to others for your replies.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Macro 6 49
macro for filtering the criteria and sending mail to all the data 8 27
ActiveX Listbox Multi Select in Excel 2010 8 16
Sum iF  based on a null cell 11 29
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now