let
Source = Excel.CurrentWorkbook(),
#"Expanded Content" = Table.ExpandTableColumn(Source, "Content", {"Number", "Under Section", "Qty", "Man Power", "Machinery", "Section"}, {"Number", "Under Section", "Qty", "Man Power", "Machinery", "Section"}),
#"Reordered Columns" = Table.ReorderColumns(#"Expanded Content",{"Name", "Number", "Under Section", "Qty", "Man Power", "Machinery", "Section"}),
#"Filtered Rows" = Table.SelectRows(#"Reordered Columns", each ([Number] <> null)),
#"Reordered Columns1" = Table.ReorderColumns(#"Filtered Rows",{"Name", "Section", "Number", "Under Section", "Qty", "Man Power", "Machinery"}),
#"Changed Type" = Table.TransformColumnTypes(#"Reordered Columns1",{{"Section", type text}, {"Number", Int64.Type}, {"Under Section", type text}, {"Qty", type number}, {"Man Power", type number}, {"Machinery", type number}})
in
#"Changed Type"
Note that the above code will find all of the tables in the workbook.
Bookmarks