Forum

Return Specified Ta...
 
Notifications
Clear all

Return Specified Table and Sheet when using Power Query Formula

4 Posts
2 Users
0 Reactions
182 Views
(@oswin)
Posts: 3
Active Member
Topic starter
 

Hi,

 

I've several XLSB file reports with same format (12 month's Sheet name, and many sales report's Table name) just different value.

From each file I must extract specified table, e.g: in Sheet "May21" extract Table "SellOut" regularly.

Could I do this simple with Power Query formula/ function?

 

Regards,

Oswin

 
Posted : 01/06/2021 1:29 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Oswin,

Yes you can use Power Query to get data from a specific sheet and table in each file in a folder. I recommend you change the file format to .xlsx because you're likely to find it very slow with .xlsb files.

Mynda

 
Posted : 01/06/2021 2:31 am
(@oswin)
Posts: 3
Active Member
Topic starter
 

Hi Mynda..

Very nice to meet you.

After I convert to .xlsx the problem still persists:

DataFormat.Error: The input couldn't be recognized as a valid Excel document.
Details:
Binary

How to solve this?

 

Just fyi,

"Step 3: Select Files" dialog box doesn't appear when I follow your steps:

https://www.myonlinetraininghub.com/power-query-get-files-from-a-folder

 

As far as I know, your solution in here:

https://www.myonlinetraininghub.com/excel-forum/power-query/import-data-from-excel-folder#p20762

is the best solution so far.. I just need more precision "Excel.Workbook" function, if any, to target specified "Table" and "Sheet"..

 
Posted : 12/06/2021 4:05 am
(@mynda)
Posts: 4761
Member Admin
 

Sounds like the Excel file might have been generated by an external system and it hasn't been created in a proper Excel workbook format that Power Query can recognise. Did you try opening the .xlsb file and then File > Save As > .xlsx?

Mynda

 
Posted : 12/06/2021 6:08 am
Share: