- let
- Source = Folder.Files("你的文件位置"),
- Custom1 = List.Transform({0..Table.RowCount(Source)-1},each Excel.Workbook(File.Contents(Source[Folder Path]{_}&Source[Name]{_}))[Data]{0}),
- Custom2 = Table.Combine(List.Transform(Custom1,each Table.PromoteHeaders(_))),
- Custom3 = Table.SelectColumns(Custom2,{"部门名称","职员代码","职员姓名","身份证号码","人员类型","职位","基本工资","岗位津贴","保密费","交通补贴","通讯补贴","公关补贴","招待补贴","考勤扣款","加班费","实际发生课时费","独生子女奖励费","津贴","绩效奖金","福利","其他应发","补发工资","离职补偿金","年终奖金","其它扣款","个人养老保险费(个税申报)","个人医疗保险费(个税申报)","个人失业保险费(个税申报)","个人住房公积金(个税申报)","社保个人部分","补扣社保个人部分","应发合计","累计应发合计","累计社保个人部分","补扣公积金个人部分","累计公积金个人部分","社保企业部分","公积金企业部分","累计税延养老保险","累计子女教育专项附加扣除","累计赡养老人专项附加扣除","累计住房贷款利息专项附加扣除","累计住房租金专项扣除","累计继续教育专项附加扣除","税延养老保险费","累计个税专项扣除合计","累计代扣税","代扣税","实发合计","年终奖税金"},2)
- in
- Custom3
复制代码 源文件单独放在一个文件夹 |