Page 1
Page 1
Started By
Message

Conditional drop down in Excel with only 2 column datasource

Posted on 6/30/16 at 10:45 am
Posted by MyNameIsInigoMontoya
Woodlands
Member since Oct 2012
585 posts
Posted on 6/30/16 at 10:45 am
I need to create a spreadsheet that will allow my coworkers to map records (basically selecting the source table.column and mapping it to a destination table.column).

My source recordset looks like this in two columns:
Table1 Field1
Table1 Field2
Table1 Field3
Table2 Field1
etc

I want to create two dropdowns. One for the table name and one for the field name. The thing I can't figure out is how to make the available selections in the "field" dropdown dependent on what is selected in the "table" dropdown. Essentially, if they select Table1 from the first dropdown, I only want the fields associated with that table to be available in the second dropdown.
Posted by LSU_Richoux
Houma
Member since Mar 2005
637 posts
Posted on 6/30/16 at 11:19 am to
You may have to use the INDIRECT function for the second dropdown and define the ranges for each scenario. Here is a simple example of what I think you are trying to achieve.

Dependent Drop-Down
Posted by MyNameIsInigoMontoya
Woodlands
Member since Oct 2012
585 posts
Posted on 6/30/16 at 11:53 am to
My issue with that is that I can't define all of the named ranges. It's literally a dump of over 1000 tables and 7000 fields.
Posted by LSU_Richoux
Houma
Member since Mar 2005
637 posts
Posted on 6/30/16 at 12:08 pm to
Yep that certainly complicates things a bit. I might have to think about this. I'm sure it is possible just don't know how yet LOL
Posted by MyNameIsInigoMontoya
Woodlands
Member since Oct 2012
585 posts
Posted on 6/30/16 at 12:28 pm to
I appreciate the help.
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3789 posts
Posted on 6/30/16 at 1:35 pm to
Can you use a macro with On_Change that updated the 2nd field based on the selection in the first?

Not sure if you want to incorporate a macro worksheet, but it would make it possible.
Posted by CubsFanBudMan
Member since Jul 2008
5060 posts
Posted on 6/30/16 at 4:20 pm to
My first thought would be a 1 solution answer, so it wouldn't work for multiple entries. How about a three dimensional lookup? Use a vlookup with match formula. If you need to go deeper than that, then you create a vlookup/match table on one tab the the result goes to another vlookup to another tab. You could use data verification to help. Some examples would help.
Posted by lynxcat
Member since Jan 2008
24121 posts
Posted on 6/30/16 at 11:15 pm to
I was thinking if something similar.

I think you need the second drop down to be dynamic based on the selection of the first. This is tricky though... Will have to think about it some more.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram