Connecting to multiple named ranges in a single workbook

NickonPhil

New Member
Joined
Jul 30, 2018
Messages
2
Hi all,
I am trying to connect to 'named ranges' on separate worksheets in multiple workbooks (each workbook has the same content / layout / sheets / named ranges), and I am pointing 'get data' to the directory containing the workbooks, for example:

Get Data = C:\My Books\ in the My Books directory is a set of Excel workbooks named Jan 2018.xlsx, Feb 2018.xlsx, Mar 2018.xlsx etc.
Each workbook has 3 worksheets - call them Fruit, Veg, Meat, and each worksheet has a 'named range' (I'd like to convert them to tables in the worksheets but due to formatting in the worksheets outside of my control I can't do that). So let's say we have worksheet Fruit with a named range 'fruit_data', a worksheet Veg with a named range 'veg_data', and a worksheet Meat with a named range 'meat_data.

I would like to be able to load the 'named ranges' from each worksheet, in each workbook into it's own table, appending the corresponding named ranges from the other worksheets, but also add the filename as a column in each table created like the below example for the fruit_data named range:

Table = fruit_data
Source.NameProductQtyPrice
Jan 2018Apples1005.00
Jan 2018Oranges50011.00
Feb 2018Apples30012.00
Mar 2018banana's12015.00

<tbody>
</tbody>

A similar table for the meat_data named range:
Table = meat_data
Source.nameProductWeight (kg)Price
Jan 2018Beef3.0024.00
Feb 2018Lamb8.0046.00
Feb 2018Chicken18.00102.00
Mar 2018Beef7.0044.00

<tbody>
</tbody>

Is this possible? Can anybody provide instructions to accomplish the above?

Thanks
Phil
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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