+ Reply to Thread
Results 1 to 4 of 4

data validation & creating sub set choices based on the adjacent column choice

  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    46

    data validation & creating sub set choices based on the adjacent column choice

    Hi, I am limiting choices in a certain cell to a list via data validation (using data validation, allow - list and pointing to the source). I want to limit the next set of choices in the next column (in this example in Column C) for the user based on the choice made in the adjoining cell. For example to keep it simple I will use the following: if the user selected "Fruit" in B1, then the options in C1 would only show "Oranges","Apples", "Pears". If however the user selected "Veg" it would only show "Cucumber", "Lettuce", "Spinach", "Radishes" in the drop down in column C. I can put a prefix in front of the column C data validation list if that is needed to narrow down e.g. FR-oranges, FR-apples etc.

    A B C
    1 Fruit Oranges
    2 Veg Lettuce
    3


    Data Validation source for Column B (H2:H4)
    Fruit
    Veg
    Nuts



    Data Validation for Column C: (I2:I10)
    Oranges
    Apples
    Pears
    Cucumber
    Lettuce
    Spinach
    Radishes
    Almonds
    Peanuts


    Thanks for the input.
    Last edited by maymano; 10-27-2013 at 10:56 PM.

  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: data validation & creating sub set choices based on the adjacent column choice

    These are called DEPENDENT DROP DOWNs, and can be accomplished several ways. The simplest with hardcoded named ranges.

    1) Highlight I2:I4 (the fruits in the list, all adjacent the way you've shown)
    2) Click in the NAME BOX (to the left of the formula, it probably says "I2" currently)
    3) Replace the contents of the box with the word FRUITS

    You have just created a a named range called fruits that means "I2:I4"

    4) Highlight I5:I7 and name those cells VEG
    5) Highlight I8:I10 and name those cells NUTS

    Now you can use those named ranges as the Data Validation List source.

    6) Highlight C1:C100 (or whatever) and open the Data Validation window, enter these setttings:

    Allow: List
    Source: =INDIRECT(B1)
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    06-03-2011
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    46

    Re: data validation & creating sub set choices based on the adjacent column choice

    Thanks. This works really well!

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

    Re: data validation & creating sub set choices based on the adjacent column choice

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Update Slot column with unique bid choice from row of choices
    By RlHamor in forum Excel General
    Replies: 5
    Last Post: 10-23-2013, 04:58 PM
  2. [SOLVED] Data validation - limit based on previous choice
    By Ricardo Mass in forum Excel General
    Replies: 8
    Last Post: 09-25-2013, 08:56 AM
  3. Replies: 0
    Last Post: 04-15-2013, 09:22 AM
  4. Pulling data based on two data validation choices
    By jennjennbrokaw in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 02-11-2013, 02:06 AM
  5. Replies: 2
    Last Post: 02-09-2012, 01:14 AM

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