Replace ";" with CTRL+OPT+ENTER to enter notes on a new line in the same cell

lawi227

Board Regular
Joined
Mar 17, 2016
Messages
123
I don't believe this can be done with the "Replace All" feature of Excel.

Example:
I want to take the text in this cell below:
the dog ran; the cat slept; I have two dogs - they're both poodles

<tbody>
</tbody>
And run a VBA code (unless there is an easier way) to space the sentences on separate lines within a cell
the dog ran
the cat slept
I have two dogs - they're both poodles

<tbody>
</tbody>

The cells are I2:I133. Note: There are some cells that are blank. I am using Excel for Mac.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi,

I think you can still use the Replace functionality.

However, you need to have completed the Excel ninja, supergeek, 7th dan, hacker course first. :)

Enter the semi-colon in the "Find what" box then insert Ctrl + J in the "Replace with" box. It won't look as if anything has been inserted into the "Find what" box but it will replace the semi-colon with an ASCII char 10 when you hit the Replace button. I think the fact that J is the tenth letter may be more than coincidence but that is pure guess work on my part.


Regards,
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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