How To Split This Tables into Rows

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
The output table is exactly the same as the input table (only right justified).

It does not match your thread description of "Split this table into rows"

Check the file you've posted.
 
Upvote 0
The output table is exactly the same as the input table (only right justified).

It does not match your thread description of "Split this table into rows"

Check the file you've posted.

The input table is not the output table

In the input Table, Data is stocked in one cell "A2", I want to split it to make table for every value in a distinct row
 
Upvote 0
in G2

=TRIM(MID(SUBSTITUTE(A$2,CHAR(10),REPT(" ",LEN(A$2))),((ROW()-1)*(LEN(A$2))-LEN(A$2))+1,LEN(A$2)))

copy across and down as far as K11
 
Upvote 0
This would be a Power Query solution:
Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],

    // 2 intermediate steps to store column names and (new) column tyoes:
    Columns = Table.ColumnNames(Source),
    ColumnTypes = List.Transform(Columns, each {_, Int64.Type}),

    LinesToText = Table.TransformColumns(Source,{},Lines.FromText),
    TableFromColumns = Table.AddColumn(LinesToText, "Custom", each Table.FromColumns(Record.FieldValues(_),Columns)),
    RemovedColumns = Table.RemoveColumns(TableFromColumns,Columns),
    ExpandedTables = Table.ExpandTableColumn(RemovedColumns, "Custom", Columns),
    Typed = Table.TransformColumnTypes(ExpandedTables,ColumnTypes)
in
    Typed
 
Last edited:
Upvote 0
OK MarcelBeug, of course you can use any step name, but "LinesToText" is not very appropriate for a "Lines.FromText" operation... :rolleyes:
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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