+ Reply to Thread
Results 1 to 6 of 6

multiple value returned from vlookup into a data validation list

  1. #1
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Red face multiple value returned from vlookup into a data validation list

    hi folks,

    i am probably pushing the envelope a little too far here. i have a situation as follows:

    clmA clmB
    a 1
    b 3
    b 2
    b 4
    c 4
    c 2
    d 1

    for certain reasons (i can go into details if asked), i would like to do the following.

    the above values in clmA are available as a data validation list elsewhere within the same spreadsheet (different tab, though). when user select a value, say 'c', from the picklist in a particular cell, in the adjacent cell i would like the data validation list to present the two values 4 and 2 (VLOOKUP returns only the first value it finds in the array, 4). i tried to use INDEX, but got stumped because i could not figure out how to use CTRL+SHFT+ENTER within the Data Validation > List > Source.

    much obliged if i can get some help on this.

    kind regards.
    Last edited by icestationzbra; 01-28-2012 at 03:40 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,458

    Re: multiple value returned from vlookup into a data validation list

    Assuming A2:A8 contains {a;b;b...}. This list has been sorted.
    B2:B8 contains {1;3;2;...}
    E2 contains data validation from A2:A8
    F2 validation:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bebo021999; 01-26-2012 at 02:19 AM. Reason: attach file
    Quang PT

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: multiple value returned from vlookup into a data validation list

    hi quang,


    this is exactly what i was looking for!!! awesome!

    cảm ơn bạn rất nhiều (courtesy google translator)...


    best regards.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,458

    Re: multiple value returned from vlookup into a data validation list

    Quote Originally Posted by icestationzbra View Post
    hi quang,
    this is exactly what i was looking for!!! awesome!
    cảm ơn bạn rất nhiều (courtesy google translator)...
    best regards.
    Very suprise and happy to hear Vietnamese words from you.
    Further query, feel free to contact!

  5. #5
    Registered User
    Join Date
    11-23-2012
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: multiple value returned from vlookup into a data validation list

    Hey guys, I have a very similar problem to this one except my data (using above example) does not {a;b;b;c;d;d;d} but rather {c;a;b;a;d;c etc}. How can I modify the above code?

    Thanks

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: multiple value returned from vlookup into a data validation list

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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