import data from hidden sheet

yxz152830

Active Member
Joined
Oct 6, 2021
Messages
395
Office Version
  1. 365
Platform
  1. Windows
Gurus,
is there a way for power query to load data from hidden sheets in another workbook? thanks!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Power Query loads data from hidden sheets just as they were visible sheets. There's no difference whatsoever. The only difference is the user interface:

When you use the Get Data / From File / From Workbook -dialog the dialog only show the visible sheets. However, if you select one of the visible sheets and take a look at the Applied Steps, the Source step is showing all the sheets there are. Just change the Navigation step to get data from the sheet(s) you're interested in.
 
Upvote 0
hello when i load in the transform interface, there are typically three steps and none shows me all the sheets.
Source step shows the file path and below is navigation step showing the sheet for table extraction.

= Source{[Item="FLT OTP",Kind="Sheet"]}[Data]
Power Query loads data from hidden sheets just as they were visible sheets. There's no difference whatsoever. The only difference is the user interface:

When you use the Get Data / From File / From Workbook -dialog the dialog only show the visible sheets. However, if you select one of the visible sheets and take a look at the Applied Steps, the Source step is showing all the sheets there are. Just change the Navigation step to get data from the sheet(s) you're interested in.
,
 
Upvote 0
I turned the Source step into a function:
Power Query:
(MyFilePath as text)=>
let
    Source = Excel.Workbook(File.Contents(MyFilePath), null, true)
in 
Source
If you're loading data from all the files in a folder then MyFilePath = [Folder Path] & [Name] (i.e. full file path + the workbook name).
 
Upvote 0
I turned the Source step into a function:
Power Query:
(MyFilePath as text)=>
let
    Source = Excel.Workbook(File.Contents(MyFilePath), null, true)
in
Source
If you're loading data from all the files in a folder then MyFilePath = [Folder Path] & [Name] (i.e. full file path + the workbook name).
I was just wondering if during the loading data phase, the power query can show me all the tabs including hidden tabs in an excel workbook. Right now all I'm seeing are the visible tabs. If I wanna use your method I think I need to know the names of different tabs in the first place, which means I have to open one of the workbooks and find out the names myself
 
Upvote 0

Forum statistics

Threads
1,223,691
Messages
6,173,851
Members
452,535
Latest member
berdex

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