-
合并数据
表1:
image.png
表2:

步骤1:操作表1, 选择从表格,点击关闭并上载

步骤2: 同样,操作表2
步骤3:启动powerquery
步骤4:选择合并查询



步骤5:展开字段


-
填充
image.png
-
透视列
image.png
image.png
image.png
-
逆透视列
image.png
-
添加自定义列
image.png
-
M函数
image.png
let
源 = Excel.CurrentWorkbook(){[Name="表1"]}[Content],
更改的类型 = Table.TransformColumnTypes(源,{{"身份证号码", type text}}),
已添加索引 = Table.AddIndexColumn(更改的类型, "索引", 1, 1),
重排序的列 = Table.ReorderColumns(已添加索引,{"索引", "身份证号码"}),
已插入文本范围 = Table.AddColumn(重排序的列, "文本范围", each Text.Middle([身份证号码], 16, 1), type text)
in
已插入文本范围
网友评论