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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ak8598
Frequent Visitor

How to import data from several excel sheets without unwanted rows/columns?

Hi All,

 

I'm analysing data in Excel from multiple sheets that contain the same type of questionnaire data that I need to put together and analyse together. Each individual sheet has the required data in the same columns so I'm trying to use Power Query to Combine & Transform data to bring all this data into one sheet. However, when I use Combine & Transform, Power Query is pulling in 200 or so extra rows and columns from each sheet that are unwanted and blank.

 

How can I load my data in so that only the relevant fields from each sheet are brought together for my analysis? 

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@ak8598 When you use a Folder query you should get the opportunity to edit the sample file that it uses for the rest of the files as well. You just need to edit this sample query to make sure it performs all of the operations necessary. You may want to pick a different file for this than the default.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ak8598 ,

 

When you select the table in the navigator, select the tables with the following instead of selecting the sheets.

vstephenmsft_1-1663055820777.png

vstephenmsft_2-1663055859744.png

Or use the methods from the below link to remove blanks.

How to delete blank rows in Excel using Power Query to clean up your tables (spreadsheetweb.com)

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Greg_Deckler
Community Champion
Community Champion

@ak8598 When you use a Folder query you should get the opportunity to edit the sample file that it uses for the rest of the files as well. You just need to edit this sample query to make sure it performs all of the operations necessary. You may want to pick a different file for this than the default.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.