+ Reply to Thread
Results 1 to 7 of 7

Way to produce a list of text, after selecting from validate list

  1. #1
    Registered User
    Join Date
    06-05-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    11

    Way to produce a list of text, after selecting from validate list

    Hi, i am wonder what is the best way to approach this.

    What i want to do is, have a list that picks from a color and then beside it, it will show the possible fruit that is that color for example

    Red
    apple
    cherry
    strawberry

    OR

    Green
    watermelon
    grapes

    The number of fruit will differ by the color so i know i need a counter there, but i am not sure how to list the fruit after i've picked the color

    Thanks
    Last edited by d0n; 06-05-2009 at 02:54 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: What do use?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Way to produce a list of text, after selecting from validate list

    I am presuming your new title is acceptable as it demonstrates your question accurately.

    These are called Dependent Drop Down lists and they use named ranges and INDIRECT() references in the proceeding drop boxes.

    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.

    For your uses, you would create a first list of "colors", then list the proper fruits in the lists named for each color.

    Have a look.

    Sample Files
    http://www.excelforum.com/attachment...ndentlists.xls 3 levels
    http://www.excelforum.com/attachment...dentlists2.xls 2 levels
    http://www.excelforum.com/attachment...elfsorting.xls Self-Sorting

    More reading:
    http://www.contextures.com/xlDataval02.html
    http://www.contextures.com/xlDataVal13.html
    Last edited by JBeaucaire; 06-05-2009 at 11:53 AM.
    _________________
    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!)

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

    Re: Way to produce a list of text, after selecting from validate list

    Thanks for taking the time to read and comply with the rule .

    See attached...

    I created the lists in the sheet in I to J columns..

    I created a drop down list in A1 (Data|Validation >> List) to pick the colour.

    Formula in A2:

    Please Login or Register  to view this content.
    copied down...

    adjust ranges to suit your tables
    Attached Files Attached Files
    Last edited by NBVC; 06-05-2009 at 11:54 AM.

  5. #5
    Registered User
    Join Date
    06-05-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Way to produce a list of text, after selecting from validate list

    i tried your code NBVC but it only returns the 1st text on the list for me (NVM, i got it thanks for the help)
    Last edited by d0n; 06-05-2009 at 11:58 AM.

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

    Re: Way to produce a list of text, after selecting from validate list

    Quote Originally Posted by d0n View Post
    what i was looking for is a way to list them all out, not by dropbox but just in a list after i pick the 1st dependent.
    See attachment in my posting.

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

    Re: Way to produce a list of text, after selecting from validate list

    Here's the self-sorting one adapted for fruits....though you could easily adapt any of the other sheets as well for lists you maintain yourself.
    Attached Files Attached Files

+ 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