Solved

Excel find and replace that contains carriage returns

Posted on 2013-10-24
14
228 Views
Last Modified: 2013-10-24
Hi guys,

In my cells I have the following data:

Key Features:
 - Setting 1
 - Setting 2
 - Setting 3
 - Setting 4

I need each cell to just contain:

<br />Setting 1
<br />Setting 2
<br />Setting 3
<br />Setting 4


There are carriage returns between the lines.

Cheers,
Dean
0
Comment
Question by:deanlee17
  • 7
  • 7
14 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39596980
I am not sure I understand the request.

Are all of these in one cell?

 - Setting 1
 - Setting 2
 - Setting 3
 - Setting 4

are you just looking to replace the - with <br/>?
0
 

Author Comment

by:deanlee17
ID: 39596994
Sorry, Yes its all in the same cell.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39596997
So you tried replacing the dash with <br/>?
0
 

Author Comment

by:deanlee17
ID: 39597012
Some of the settings contain a dash..

- this is the settting 32 - 31
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39597020
Maybe then replace this:

- S

with

<br/>S

ie. include the S
0
 

Author Comment

by:deanlee17
ID: 39597053
Ok sorry I realise I wasn't clear, here is a real copy of the data:

Key Features
- Heat Settings - Variable
- Control - Manual control
- Flame Control Options - Can be used independent of heat
- Thermostat - Yes
- Spacer Frame - Included allowing fire to be fitted flat to wall
- Flame Effect - Glowing log bed
- Colour Finish - Available in chrome and black
- Fuel Bed - Log
- Max Output - 2.0 kw

So I kinda need to search for '<carriage return> - '
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39597090
Ok,    In the FIND What field:  hold down the ALT key, then type the carriage return code (e.g. 010) using the number pad on your keyboard.
0
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.

 

Author Comment

by:deanlee17
ID: 39597155
Ok I press tab and cursor stops flashing, type '0' and I get the error tone, then it types '10'
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39597171
You need to hold the ALT key down and while holding it down type 010.  You should see what appears to be a space.
0
 

Author Comment

by:deanlee17
ID: 39597184
Nope, doesn't work for me. Using office 2010 professional plus, if that helps.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39597200
Can you post a workbook showing a sampling with the carriage returns in place.
0
 

Author Comment

by:deanlee17
ID: 39597250
Yes sure, see attached
sheet.xlsx
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39597277
Ok, maybe it's easier to do it this way....

in B2 add formula:

=SUBSTITUTE(A2,CHAR(10),"<br/>")

copied down.

then you can copy this column and paste special >> values over the original column.  Then delete the formula column.
0
 

Author Comment

by:deanlee17
ID: 39597336
Perfect, thanks.
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
Hiding column macro 10 28
Excel macro runs twice 13 52
I don't want to use Fn or Fn lock for F1 to F11 key on a Lenovo t460p laptop 13 41
excel help 4 20
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
My experience with Windows 10 over a one year period and suggestions for smooth operation
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

861 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

25 Experts available now in Live!

Get 1:1 Help Now