ROOKIE here with (hopefully) simple request

DriveAnywhere

New Member
Joined
Mar 8, 2022
Messages
1
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. Windows
First off I apologize for the lack of detail, this is for work so I cant give exact info on variables etc. Also I am new to PowerQuery.

I have established my ODBC connection (=Odbc.Query("dsn=private", "Select#(lf)variable1, ...")

so: (Select x, y From z Where x in ('')) and I would like to merge with a named range of x to return y values from the ODBC connection.
So ultimately what I hope to achieve is (Select x, y From z Where x in (Named Range))

My named range is a list of over 12,000 (x) items. They have all been appropriately formatted with 'x', so that they can be used in a SQL query, the last x has had its comma removed as you would in a typical SQL query.
The name I have given this list is literally LIST... I tried using {[Name="LIST"]} within the parentheses and that didnt work, so I tried the fuller =Source{[Name="LIST"]}[Content] and that also didn't work.

Can anyone tell me where I'm going wrong here? I spent the last few days trying to achieve this in VBA which was a nightmare...hoping I'm on the right track here.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,885
Messages
6,175,182
Members
452,615
Latest member
bogeys2birdies

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