Unwind Alt Enter format in cell

SimonHughes

Well-known Member
Joined
Sep 16, 2009
Messages
507
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a spreadsheet where the originator has used the Alt+Enter key to have two lines of text in a cell - they are all in column A and there are 355 entries like this. Is there a way to unwind this format so it all appears as one line (from which I can performa text to column action). Many thanks

Main Building - Ground Floor - Above Entrance To Meeting Room 9
Hilton hotel - Heathrow - Ground Floor - Outside meeting room 7
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
@SimonHughes
Using CLEAN() should do it. Eg column C
Maybe you can use the idea in column E ?

AutoTraining.xlsm
ABCDEFG
1abc - bfgr - shetdgabc - bfgr - shetdgabc bfgr shetdg
Sheet7
Cell Formulas
RangeFormula
C1C1=CLEAN(A1)
E1:G1E1=TEXTSPLIT(TRIM(CLEAN(A1)),"-")
Dynamic array formulas.

HTH
 
Last edited:
Upvote 0
Solution
E1 formula better to be -
Excel Formula:
=TRIM(TEXTSPLIT(CLEAN(A1),"-"))
 
Upvote 0
@SimonHughes
Using CLEAN() should do it. Eg column C
Maybe you can use the idea in column E ?

AutoTraining.xlsm
ABCDEFG
1abc - bfgr - shetdgabc - bfgr - shetdgabc bfgr shetdg
Sheet7
Cell Formulas
RangeFormula
C1C1=CLEAN(A1)
E1:G1E1=TEXTSPLIT(TRIM(CLEAN(A1)),"-")
Dynamic array formulas.

HTH
This works - both work and textsplit works best for this application, many thanks indeed indded
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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