+ Reply to Thread
Results 1 to 4 of 4

Getting "like named" products to populate from drop down list

  1. #1
    Registered User
    Join Date
    10-03-2008
    Location
    Springfield
    Posts
    6

    Getting "like named" products to populate from drop down list

    If I have products with the same name in a drop down menu, how can I get their corresponding values to auto populate. If I choose a product that has the same name within the drop down list, it will only return the values of the first listed.

    Example: If the first "copper necklace" is chosen from the drop down list it will return, 5 and 2. If the second "copper necklace" is chosen it returns the same values even though the second copper necklace has values of 7,5,7?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Solution

    Your problem is that you are using 2 incompatible concepts.

    You have an in-cell list to select your objects. This simply returns text, not "which text". So if you have 2 items exactly the same (which you do), there is no way of telling "which text" you selected.

    You are then using a vlookup on the text you have selected, and vlookup simply stops at the first occurance of the text it is looking for.

    so bottom line, this will never work.

    So you need a way to work out "which text" you have selected.

    The solution is to use the more advanced "forms combo box" rather than in line text.

    Open the forms tool bar and select the combo box. Draw a combo box on the page. If you hold down Alt when drawing, you can restrict the box so that it fits exactly in a cell border.

    Double click the combo box and fill in the detail.

    This will return a reference to "which text" you select into a cell. From here you can use Index to find the values.

    See my attached sample.

    Regards

    Mallycat
    Attached Files Attached Files

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello ssa9320,

    It is a little bit difficult for the user to have to scroll through choices of the same name. Why not make the names unique? You could add a number to the end of each item, e.g. "Necklace 1", "Necklace 2".

    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    10-03-2008
    Location
    Springfield
    Posts
    6
    Thanks, good solutions. Much appreciated.

+ 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. Drop Down List Question?
    By DJ-Cavity in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2011, 04:48 PM
  2. Drop Down list within a drop down list.
    By nomad3rider in forum Excel General
    Replies: 4
    Last Post: 11-01-2011, 08:53 AM
  3. Duplicate products from Drop down list will not populate
    By ssa9320 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-03-2008, 04:29 PM
  4. conditional drop down list
    By ADSK in forum Excel General
    Replies: 2
    Last Post: 11-25-2007, 04:27 PM
  5. how to populate field based on previous drop down list selection?
    By ItsAllGood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2007, 01:57 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