How To Split This Tables into Rows

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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