Excel数据整理,最高效的工具无疑是她!
▲ 来源网络(已脱敏)
List.Split(列表,长度)
[Key=Value]
Text.Split(文本,分隔符)
Text.Replace(文本,需要替换的值,替换成什么)
源 = Excel.CurrentWorkbook(){[Name="表3"]}[Content][列1],
step01 = List.Split(源,6),
step02 = Table.FromRecords(List.Transform(step01,each
[
名称=Text.Split(_{0},":"){1},
法人=Text.Split(_{1},":"){1},
电话=Text.Replace(Text.Split(_{2},":"){1},"邮箱",""),
邮箱=Text.Split(_{2},":"){2}? ??null,
地址=Text.Split(_{3},":"){1},
注册资金=Text.Replace(Text.Split(Text.Split(_{5},"人民币"){0},":"){1},"万","")
]
)
)
in
step02
赞 (0)