Advertisement
zilexa

EXCEL - merge files with Powerquery

Mar 21st, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Powerquery HOW TO merge excel files
  2.  
  3. http://www.excelguru.ca/blog/2015/02/25/combine-multiple-excel-workbooks-in-power-query/
  4.  
  5. Advanced editor:
  6. (filepath)=>
  7. let
  8. Source = Excel.Workbook(File.Contents(filepath), null, true),
  9. Inventory_Sheet = Source{0}[Data],
  10. #"Promoted Headers" = Table.PromoteHeaders(Inventory_Sheet)
  11. in
  12. #"Promoted Headers"
  13.  
  14. Rename:
  15. fnGetContents
  16.  
  17. Folder:
  18. M:\Resolution Accuen\Publishers\_Programmatic\Pubdocs
  19.  
  20. Add Custom Column:
  21. fnGetContents([Folder Path]&[Name])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement