Forum Discussion
How to access directly the sheet from excel file?
- 5 years ago
Hello stenford23
I can tell you that power query is only reading the data it needs. So in your case it's reading only this single sheet. What it could cause this is the used range in Excel. So maybe you filled only little data, but the used range is really big. So go to this sheet and press CTRL + end. Probably you will see that the used range is way bigger than your really data. Delete al not needed cells and make a save as. Retry to load the data to power query
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
This is the code to load the multiple sheet from different file inside a folder:
//list every file under path folder
data_file_listed= Folder.Files(path),
//Extract every table
add_table = Table.AddColumn(
data_file_listed, "table",
each
Excel.Workbook([Content], true, true){[Item="Sheet 1", Kind="Sheet"]}[Data],
type table
),
keep_table = Table.SelectColumns(add_table,{"table"}),
//expand table
expanded_table = Table.ExpandTableColumn(
keep_table, "table",
{... (Column name) ...}
),
Hello stenford23
I can't reproduce your scenario even though I'm using your code. When I read from 2 files with a size of 10 Mbyte, but I'm only reading the sheets with on cell it loads in an instant.
BR
Jimmy