+ Reply to Thread
Results 1 to 13 of 13

Combo Box populate column

  1. #1
    Registered User
    Join Date
    08-21-2007
    Posts
    8

    Combo Box populate column

    Hi Everyone,

    I have a quick question regarding combo boxes...and I may have to use VBA.

    I want to have users select a value i.e. Fish from a down box. Once the user selects fish all instances for fish populate i.e. Trout, Salmon, Tuna, etc. in the adjacent column.

    The list of fish can be in the same workbook or a different workbook as well as the value.

    Thanks in advance for all of your help!!!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Combo Box populate column

    See Debra Dalgleish's coverage of Dependent Lists at her Contextures website:
    http://www.contextures.com/xlDataVal02.html

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-21-2007
    Posts
    8

    Thanks still need help

    Hi I've been to the contextures website before but I still need help with figuring out how to return a series of values that are not in a drop down list once a value is selected.

    If I selected fish from the drop down...I would like to see a list of names/values populated to the side...I don't want to be able to select what type of fish I just want a completed list that looks like text in each cell.

    I have attached a file to show what I need.

    Thanks,

  4. #4
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    I don't think you attached a file as you indicated... here's what I have for you given the information you did give though. See attachment. It may not be the prettiest code, but it works. Let me know if you need any modifications.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-21-2007
    Posts
    8

    Works but I need unique values

    Hi Ikabod that works sort of but now I need the list to have unique values in your example under Fish you had Guppy, Flounder, etc. but what if I have 2 guppies and 14 salmon in my list how do I have that only represented once with your code?

    Thanks so much!!

  6. #6
    Registered User
    Join Date
    08-21-2007
    Posts
    8

    Question for Ikaabod

    Also in the Fish column I would like the information to run down the column in the drop down so if someone selected salmon they could see all the expamles in the examples column like Sockeye, Chinook, etc.

    Thanks!!

  7. #7
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    Didn't know you would have duplicates. This should fix that issue. Let me know if there's anything else. Attached revised spreadsheet.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    Also in the Fish column I would like the information to run down the column in the drop down so if someone selected salmon they could see all the expamles in the examples column like Sockeye, Chinook, etc.
    This sounds a bit more complicated than your original request. Could upload your existing spreadsheet or a good test sample? Remember to zip the file since these forums don't accept straight .xls files.

  9. #9
    Registered User
    Join Date
    08-21-2007
    Posts
    8

    Ikaabod we're almost there

    Hi Ikaabod,

    We're almost there I want to be able to select Salmon in column A and have the species of salmon in Column B populate.

    I have attached a updated workbook.

    Thanks again,
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    I see what you're trying to do.

    Is there always ONLY going to be those two columns? If so, I could really simplify the code.

    Expect an update by tomorrow! Til then, have a good one.

  11. #11
    Registered User
    Join Date
    08-18-2007
    Posts
    54

    Populating cells on selection from a list

    If you have a cell that has a list of all your fish say "A1"

    When a user selects their fish in A1 populate all fields below with information about that fish.:

    Create a table with all the information. Column 1 Being Fish Name and further columns being the information.

    Please Login or Register  to view this content.
    So say if you want the colour of the fish in A2. Insert the above code into that cell. That will then search the Fish table depending on what the user selects in A1, and display the information found in column 2 in cell A2.

    Hope this helps

  12. #12
    Registered User
    Join Date
    08-21-2007
    Posts
    8

    Thanks Sam

    Can you send a workbook example?

  13. #13
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    The more I'm looking at this the more it seems like all you need is a pivot table. I've not spent a lot of time working with pivot tables, but I'm able to come up with a really simple one that gets the job done in a slightly unorthodox way. If someone knows a better way using a pivot feel free to chime in.
    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