Getting value of named range from multiple workbooks

DaveyD

New Member
Joined
May 20, 2015
Messages
31
I used the following code in a custom column to get the workbook info:
Code:
Excel.Workbook([Content])
Then I used the double arrow button to expand the workbook dataI am using Power Query to import data from multiple workbooks
I have no problem getting data from tables in the workbook (by just clicking on the expand column button)
However, I am not able to get the values of named ranges.
This is what my query looks like at this point: screenshot
open

These are all Defined Name ranges (all being one cell) and I need to get the value of them
The column "TableName" is the name of the defined range, and the "Data" column has the value
This is what is displayed when I click on one of the rows in the Data column: screenshot
open

How can I accomplish this?
(afterwards I will want to pivot that column with those range names as column headers )

P.S. These are the steps I took to get to that point:
  • I imported multiple workbooks using the import from "Folder" option
  • I used the following code in a custom column to get the workbook info:
    Code:
    Excel.Workbook([Content])
  • Then I used the double arrow button to expand the workbook data
  • Then I expanded the newly created column to extract all the excel data
  • Then filtered the columns to get just the named ranges that I wanted.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I figured this out.
Power Query was considering the named range as a table without any rows, which in turn means that the values were considered the column names.
Therefore, I was able to use either of the following to get the values:
Code:
Table.ColumnNames([Data]){0}
Table.DemoteHeaders([Data])[Column1]{0}
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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