let
let
Source = Excel.CurrentWorkbook(){[Name="split_column"]}[Content],
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"A"}, "Attribute", "Value"),
#"Added Custom" = Table.AddColumn(#"Unpivoted Other Columns", "Temp", each List.Count(Text.Split([Value],","))),
#"Calculated Maximum" = List.Max(#"Added Custom"[Temp]),
ColumnVals = List.Transform({1..#"Calculated Maximum"},each "Value." & Number.ToText(_)),
#"Split Column by Delimiter" = Table.SplitColumn(#"Added Custom", "Value", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), List.Transform({1..List.Max(Table.AddColumn(#"Added Custom", "Temp1", each List.Count(Text.Split([Value],",")))[Temp])},each "Value." & Number.ToText(_))),
#"Removed Columns" = Table.RemoveColumns(#"Split Column by Delimiter",{"Temp"}),
ColumnNames = Table.ColumnNames(Table.RemoveColumns(#"Removed Columns",{"Attribute"})),
ColumnNamesToTable = Table.FromList(ColumnNames, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Duplicated Column" = Table.DuplicateColumn(ColumnNamesToTable, "Column1", "Column1 - Copy"),
#"Replaced Value" = Table.ReplaceValue(#"Duplicated Column","Value.","",Replacer.ReplaceText,{"Column1 - Copy"}),
CreateList = Table.ToColumns(Table.Transpose(#"Replaced Value")),
MainTable = #"Removed Columns",
#"Renamed Columns" = Table.RenameColumns(MainTable,CreateList)
in
#"Renamed Columns"