Dynamic conditional filtering of data validation options in seperate sheet (mySql)

WoodyNaDobhar

New Member
Joined
Feb 27, 2009
Messages
7
Using excel 2007, I've created a workbook that, on the primary sheet, has a dropdown (data validation) whose contents are populated (=columnName) from a secondary sheet which is populated by an ODBC connection to a mySQL db. This dropdown updates a cell next to it with the ID of the selected item. The idea is to allow the user to select from a human-readable list to select a specific ID the receiving program will recognize.

This all works fine, fyi.

There are many of these items in the dropdown (waaay too many), and all of the items have attributes that would make them easy to sort and filter, so the dropdown would have far fewer items. Any time the sheet is opened, the user will only require a single type of the specific attribute.

My question is, what is the most efficient and effective way to accomplish the required filtering?

I've attempted simple filtering, and it's not an option. If you use the built in filtering functionality in excel, it removes the unwanted items from display, but the dropdown retains them.

The user suggests a splash sheet with which he could select specifics for two or three such attributes, and have them apply to all appropriate sheets and their relevant dropdowns...there are a good half dozen db sheets to service four dropdowns. This seems like the best approach, however, I've no idea how to make it work. I've considered having dropdowns that trigger macros to change the query (adding in the requisite 'WHERE' bits) and refreshing, but I figured before I get into making that happen, I would see where you guys would go with it.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,225,516
Messages
6,185,440
Members
453,289
Latest member
ALPOINT_AIG

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