+ Reply to Thread
Results 1 to 8 of 8

Data Validation - Indirect function

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    Data Validation - Indirect function

    Hi,

    i know it is possible for a selection in a drop down box to determine another field using the INDIRECT function in validation

    eg - 1st drop down box - Football, Rugby, Cricket
    2nd drop down box (if chosen football) - displays list of football teams
    2nd drop down box (if chosen rugby) - displays list of rugbyteams
    2nd drop down box (if chosen cricket) - displays list of cricket teams

    but is it possible for the 1st drop down box to determine what is available in a range of other drop downs?

    eg - 1st drop down box - Football, Rugby, Cricket
    2nd drop down box (if chosen football) - displays list of football teams
    3rd drop down box (if chosen Man Utd) - displays list of Man Utd players

    thanks in advance
    Rich
    Last edited by Newport Count; 06-09-2009 at 05:11 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data Validation - Indirect function

    Just continue on the same way and make lists of team players and name those lists as per the selections you can make in the 2nd drop down.. using INDIRECT() to get proper list.

    http://www.contextures.com/xldataval02.html
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    Re: Data Validation - Indirect function

    Thanks!

    but what if the first drop down is eg types of industry

    the second drop down is a long list of different companies for each industry

    then the third drop down relates to anyone of these companies (basically the third drop down will give the same options no matter which company is chosen)

    does that make sense?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data Validation - Indirect function

    So let's say Microsoft is one of those companies in list 2...

    You would have a list of employees of Microsoft somewhere in your workbook and that list would be named Microsoft...

    Then in the Data Validation for the 3rd list would be =Indirect(A2) where A2 contains your second list where you chose Microsoft....

    Does that make sense?

    If not, please post an actual sample workbook explaining the dilemma.

  5. #5
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    Re: Data Validation - Indirect function

    ok

    so list 1 contains different types of industry

    list 2 contains actual company names relating to the choice made in list 1

    list 3 needs to contain the same options for any of the companies selected in list 2...the selections here would only be different depending on the type of industry chosen in list 1..... they would be the same no matter what company was chosen...so it relates more to list 1 really

    eg
    list 1 - building, roofing, joinery
    list 2 - building - altd bltd cltd.....roofing - dltd eltd fltd.....joinery - gltd hltd iltd
    list 3 - for all building companies (altd, bltd, cltd) choices are x,y,z
    for all roofing companies (dltd, eltd, fltd) choices are u,v,w
    for all joinery companies (gltd, hltd, iltd) choices are r,s,t


    make more sense?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data Validation - Indirect function

    Attached is a workbook with a couple of options...

    Option 1 in Sheet1:

    Name only the Industry types as before..

    ...then for 3rd drop down use formula : =OFFSET(INDIRECT(A1),0,1,,)

    This assumes you have the same amount of choices as company names or you will have blanks at the bottom of the dropdown lists.

    Option 2 in Sheet2:

    Name Industry types as before.. and then name the options similarly but add a suffix, for example, Building_Choices, Roofery_Choices, Joinery_Choices

    And then use data validation formula: =INDIRECT(A1&"_Choices")
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    Thumbs up Re: Data Validation - Indirect function

    Thats great - much appreciated!

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data Validation - Indirect function

    Please remember to mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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