Forum

Column with Table N...
 
Notifications
Clear all

Column with Table Names

3 Posts
2 Users
0 Reactions
69 Views
(@bk)
Posts: 7
Active Member
Topic starter
 

I am creating a query from an Excel spreadsheet that has multiple tables separated over multiple tabs. Is there any way to create a column in the query that displays the source table or worksheet name?

Thanks,

Brian

 
Posted : 01/12/2018 1:31 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Brian,

If you use the Excel.Workbook(File.Contents( approach as shown in lesson 3.02, then when you expand the content column it will retain the sheet names.

Likewise, if you want to get data in the current workbook as shown in lesson 3.01, then it will also keep the table name once you expand the data.

Mynda

 
Posted : 01/12/2018 11:52 pm
(@bk)
Posts: 7
Active Member
Topic starter
 

Thanks Mynda! That's exactly what I needed.

 
Posted : 05/12/2018 5:22 pm
Share: