Power query Combine workbook by selecting worksheet name

12Rev79

Board Regular
Joined
Mar 2, 2021
Messages
57
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Dear Expert,

Sorry to bother you, I try searching in the internet and tutorials but no luck.
I have a number of Workbook in my folder "01 prodn" I want to combine workbook with the sheetname like "WeldingReport", "Welding", "WeldingProduction"

Please any help.

Thanks in advance.
12Rev79
 
Hi,
Try

Power Query:
= Table.Combine(List.Transform(Folder.Files("C:\PQ")[Content], each Table.Combine(Table.SelectRows(Excel.Workbook(_,true), each [Kind] = "Sheet" and Text.Contains([Item], "Welding"))[Data])))

Regards,
 
Upvote 0
Solution
Hi,
Try

Power Query:
= Table.Combine(List.Transform(Folder.Files("C:\PQ")[Content], each Table.Combine(Table.SelectRows(Excel.Workbook(_,true), each [Kind] = "Sheet" and Text.Contains([Item], "Welding"))[Data])))

Regards,
Thanks so much Alex78, this is exactly I am looking for. Thanks again
 
Upvote 0

Forum statistics

Threads
1,226,798
Messages
6,193,062
Members
453,773
Latest member
bclever07

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top