Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sica
Frequent Visitor

How to import several Excel files based on another Excel file?

I have an Excel file which contains the name and location of several other Excel files (which have the same format, but are located in different places).

 

Is there a way to read through my Excel file (the one containing the file names and paths), and append all files from this list into a new query?!?

 

Thanks.

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You could load your list of file paths into Power Query and then add a custom column like this:

Excel.Workbook(File.Contents([Column1]), null, true){[Item="Sheet1",Kind="Sheet"]}[Data]

Then expand that column.

 

This is just an example. If you want specific tables instead of loading Sheet1 or you need to promote headers or whatever you'll need to adjust accordingly.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

You could load your list of file paths into Power Query and then add a custom column like this:

Excel.Workbook(File.Contents([Column1]), null, true){[Item="Sheet1",Kind="Sheet"]}[Data]

Then expand that column.

 

This is just an example. If you want specific tables instead of loading Sheet1 or you need to promote headers or whatever you'll need to adjust accordingly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.