Split a single cell into multiple rows

sharshra

Active Member
Joined
Mar 20, 2013
Messages
404
Office Version
  1. 365
I have a cell with many items listed one below the other. I would like to pull the cell content into separate rows so that it can be managed better. Can someone advise how to do this?

See the example below. Cell A1 has 4 items (refer 'single cell.png'). I want to pull each of these into 4 rows (refer 'cell content in separate rows.png').

I tried with Text to Columns option, but it is not giving the expected result. Tried to search in the internet, but couldn't find an appropriate solution.
 

Attachments

  • cell content in separate rows.png
    cell content in separate rows.png
    1.5 KB · Views: 15
  • single cell.png
    single cell.png
    1.5 KB · Views: 14

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
With Power Query
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Source, {{"Column1", Splitter.SplitTextByDelimiter("#(lf)", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Column1")
in
    #"Split Column by Delimiter"
Book2
AB
1Column1Column1
2abc def ghi jklabc
3def
4ghi
5jkl
Sheet1
 
Upvote 0
Thanks, Anonymous. It worked (y) I just added Transpose to get these into rows.

Excel Formula:
=TRANSPOSE(TEXTSPLIT(A1,CHAR(10)))

Thanks alansidman for your suggestion.
 
Upvote 0
The consecutive commas in the function was not a typographical error; it should eliminate the need for TRANSPOSE()
 
Upvote 0
Good point. I did omit double commas before ;) Now I added double commas in TestSplit & removed Transpose. Thanks for noticing (y):)
 
Upvote 0
I just need a small change. The source cell has special character (bullet). When it is split, I want to remove the special character & have only the text in separate rows. I would have done this using LEFT formula but not sure how to combine this with TEXTSPLIT.
 
Upvote 0
Can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
I don't know what unicode character this bullet refers to, but nesting a SUBSTITUTE() inside of the TEXTSPLIT() to get rid of it would probably suffice?
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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