Filtering Data from Query

ssabc1

New Member
Joined
Mar 26, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello:

I have a spreadsheet with combo boxes that are mapped to data from a power query. Imagine two columns called PartNo and PartDesc. I want to be able to select from either column, and have it lookup the value of the other. So if I select the PartNo, the corresponding description is entered automatically, or if I select PartDesc, the corresponding part number is entered automatically. I have one query defined with Power Query, defining only these two rows. This information is looking at a SQL Server data source.

I have played around a little with merge queries, and perhaps this is the answer. The difficulty is that I do not see a way to so a "SELECT PartDesc FROM Query WHERE PartNo = '123456'. It would be so nice to be able to do this without VBA coding. But even if that is required, how would it be done on a worksheet with 70 combo boxes? Basically I have all the cells defined as combo boxes looking at this query, so users can either type in or select the values (only values from the list as defined in the query are of course valid).

One additional question, when I open my workbook, is the query information updated fro SQL Server, or do I have to somehow do a refresh of this information?

Thank you.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,796
Messages
6,174,658
Members
452,575
Latest member
Fstick546

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