+ Reply to Thread
Results 1 to 2 of 2

Filtered Validation List based on other variables

  1. #1
    Registered User
    Join Date
    02-17-2009
    Location
    Canberra
    MS-Off Ver
    Excel 2007
    Posts
    5

    Unhappy Filtered Validation List based on other variables

    I have been wasting my time on this for way too long and just cant work out the solution... so its time to ask the pros.

    I have the following table on a worksheet:

    representativeTable


    . | ..A.. | ....B.... |
    --+-------+-----------+
    1 | NAME. | COMPANY.. |
    2 | John. | Google... |
    3 | Bill. | Adobe.... |
    4 | Bob.. | Adobe.... |
    5 | Tim.. | Microsoft |
    6 | Jerry | Google... |
    7 | Anne. | Microsoft |


    Then on a separate worksheet I have listed a set of awards categories:


    . | ......A...... | ....B.... | ...........C........... |
    --+---------------+-----------+-------------------------+
    1 | AWARD........ | COMPANY.. | PERSON ACCEPTING AWARD. |
    2 | First Place.. | Adobe.... | ....................... |
    3 | Second Place. | Google... | ....................... |
    4 | Third Place.. | Microsoft | ....................... |


    For the column called "PERSON ACCEPTING AWARD" I would like to be able to get the Data Validation tool to see the company who won the award for that row and by referencing the representativeTable work out who works for that company and only display the names of that companies representatives.

    Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Filtered Validation List based on other variables

    That's called Dependent Drop Boxes. Normally Drop Boxes are created via Validation "lists" and the use of "Name Ranges" makes that a snap. The trick is to create more name ranges based on the strings IN the first list.

    So, you'll have a list of cells named Clients, and under that will be Google, Microsoft, Adobe, etc.

    Then you'll have a list named Google, and under that will be John and Jerry. A list named Microsoft would have the entries Tim and Anne. And so on...

    Then, in the validation cell C2 in your sample above, you will open the validation, select CUSTOM, and enter =INDIRECT(B2)

    So, if you select Google in B2, that will trigger the Named Range "Google" in C2 and those are the names you will see.

    Here's a sample sheet I've posted showing how it's done. The sheet "CHOICES" has the dependent drop lists (and shows one of the dangers of using them) and the sheet "LISTS" shows the lists and named ranges in use.

    Have a look.

    http://www.excelforum.com/attachment...ndentlists.xls

    (further reading)

    Additional
    http://www.excelforum.com/attachment...dentlists2.xls 2 levels
    http://www.excelforum.com/attachment...ndentlists.xls 3 levels
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1