Split List in Cell, Data input via [Alt-RET]-Delimiter Fails.

Roj47

Board Regular
Joined
May 4, 2011
Messages
73
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of data (up to 10 lines) in a single cell and I am trying to split this list so they appear in unique cells.

Normally I would use the Text to Column BUT..., having used [ALT-RET] to drop down to enter the next data, the Test to Column only returns the first item in the list and deleted the remaining.

Is there a way round this?

I have also pasted the cell so it loses the [ALT-RET] part so the data is in a continuous string but still only returns the first line.

Data in the cell:

Apples-Red,
Apples-Green,
Peppers-Red,
Peppers-Green,
Peppers-Yellow.

Thanks.
 
How about
Fluff.xlsm
ABCDEF
1
2Apples-Red, Apples-Green, Peppers-Red, Peppers-Green, Peppers-Yellow.Apples-Red,Apples-Green,Peppers-Red,Peppers-Green,Peppers-Yellow.
Data
Cell Formulas
RangeFormula
B2:F2B2=TEXTSPLIT(A2,CHAR(10))
Dynamic array formulas.
 
Upvote 0
Solution
Thank you.

Works perfectly - No more [Alt-RET] use for me from here.

I'll drop a thumbs up/ close; I am curious what the CHAR(10) means please? I thought perhaps it sought the symbol ',' but I have '.' in there also.

Apologies if expanding explanations isn;t good etiquette.
 
Upvote 0
The Char(10) is the newline character (ie Alt enter)
 
Upvote 0
Book1.xlsm
ABCDEF
1
2aaa bbb fffaaabbbfff
3aaa bbb fff pppaaabbbfffppp
4aaa bbb fffaaabbbfff
5aaa bbbaaabbb
6aaa bbb fffaaabbbfff
7
Sheet1

Data A2:A6.
Formula in B2
Excel Formula:
=LET(a,A2:A6,b,BYROW(a,LAMBDA(r,SUBSTITUTE(r,CHAR(10),"_"))),c,TEXTSPLIT(TEXTJOIN(",",FALSE,b),"_",",",0,1,""),c)
 
Upvote 0

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