Solved

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

Posted on 2014-01-24
4
302 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

744 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

12 Experts available now in Live!

Get 1:1 Help Now