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

Posted on 2014-01-24
Last Modified: 2014-01-24

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,
Question by:glennturner1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 40

Expert Comment

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

Accepted Solution

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)


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

LVL 22

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

Author Closing Comment

ID: 39807251

That is exactly what I was after.

Thank you to others for your replies.

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel formula that pulls back the id 4 42
Tricky shapes formula part 2 4 21
PBI - need to format a new column with formula 6 14
exchange, office 365 13 37
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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