Thank you so much, I was able to use the excel sheet and modify the instructions as needed.
Just one question, for the invoked function part below, would there be a simpler way to do it if possible,
(tbl)=>
let
Source = tbl,//#"Table1 (2)",
#"Demoted Headers" = Table.DemoteHeaders(Source),
#"Transposed Table" = Table.Transpose(#"Demoted Headers"),
TblHdrs=List.Skip(Table.ColumnNames(#"Removed Top Rows"),1),
#"Removed Top Rows" = Table.Skip(#"Transposed Table",1),
#"Added Custom" = Table.CombineColumnsToRecord(#"Removed Top Rows","xxx",TblHdrs),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom", each List.RemoveNulls(Record.ToList([xxx]))),
rowCount= List.Max(List.Skip(#"Added Custom2"[Custom.1],1)),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom1",{"xxx"}),
#"Added Custom2" = Table.AddColumn(#"Removed Columns", "Custom.1", each List.Count([Custom])),
#"Removed Columns1" = Table.RemoveColumns(#"Added Custom2",{"Custom.1"}),
#"Extracted Values" = Table.TransformColumns(#"Removed Columns1", {"Custom", each Text.Combine(List.Transform(_, Text.From), "¬"), type text}),
#"Split Column by Delimiter" = Table.SplitColumn(#"Extracted Values", "Custom", Splitter.SplitTextByDelimiter("¬", QuoteStyle.Csv),rowCount),
#"Transposed Table1" = Table.Transpose(#"Split Column by Delimiter"),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table1", [PromoteAllScalars=true])
in
#"Promoted Headers"