|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
let
源 = Excel.CurrentWorkbook(){[Name="表2"]}[Content],
自定义1 = Table.Group(源,"编号",{"n",each Text.Combine({Text.Combine([日期],"/"),Text.Combine([结果],"/")} ,";") } ),
按分隔符拆分列 = Table.SplitColumn(自定义1, "n", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), {"日期", "结果"}),
按分隔符拆分列1 = Table.SplitColumn(按分隔符拆分列, "日期", Splitter.SplitTextByDelimiter("/", QuoteStyle.Csv), {"日期.1", "日期.2", "日期.3"}),
A = Table.SplitColumn(按分隔符拆分列1, "结果", Splitter.SplitTextByDelimiter("/", QuoteStyle.Csv), {"结果.1", "结果.2", "结果.3"}),
自定义2 = Table.PromoteHeaders(Table.FromRows({List.Transform(Table.ColumnNames(A) ,(x)=>Text.Replace(x,".",""))}&Table.ToRows(A)))
in
自定义2
|
|