Replace all semicolons with line breaks

mikec82

Board Regular
Joined
Jan 13, 2009
Messages
225
I have a spreadsheet that looks like this:

StudentCourse
John SmithEnglish;Math;Science;History
Jane SmithMath;History;Art

<tbody>
</tbody>

I would like to replace all semicolons with line breaks if possible, so that it would appear like this:

StudentCourse
John SmithEnglish
Math
Science
History
Jane SmithMath
History
Art

<tbody>
</tbody>


Is this possible?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi,

If you're looking for a formula solution:


Excel 2010
ABC
1StudentCourse
2John SmithEnglish;Math;Science;HistoryEnglish Math Science History
3Jane SmithMath;History;ArtMath History Art
Sheet18
Cell Formulas
RangeFormula
C2=SUBSTITUTE(B2,";",CHAR(10))


C2 formula copied down, don't forget to "Wrap Text"
 
Upvote 0
I have a spreadsheet that looks like this:

StudentCourse
John SmithEnglish;Math;Science;History
Jane SmithMath;History;Art

<tbody>
</tbody>

I would like to replace all semicolons with line breaks if possible, so that it would appear like this:

StudentCourse
John SmithEnglish
Math
Science
History
Jane SmithMath
History
Art

<tbody>
</tbody>

Is this possible?
Select the entire column with your semi-colons, press CTRL+H to bring up Excel's Replace dialog box, put a single semi-colon in the "Find what" field, select the "Replace with" field and key in CTRL+J (it will look like nothing happened but it did), then click the "Options>>" button and make sure none of the checkboxes are checked, then click the "Replace All" button.
 
Upvote 0

Forum statistics

Threads
1,216,484
Messages
6,130,936
Members
449,608
Latest member
jacobmudombe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top