+ Reply to Thread
Results 1 to 11 of 11

Multiple drop-down list selections and HLOOKUP multiple results in the same cell

  1. #1
    Registered User
    Join Date
    08-12-2017
    Location
    Athens, Greece
    MS-Off Ver
    365
    Posts
    6

    Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    I'm not sure if this is the correct forum to ask this question or if I should have posted it in the VBA forum but here goes...

    Product Name: Product Type 1: Product Type 2: Product Version 1: Product Version 2: Product Version 3: Product Version 4:
    Alpha Electronics Free Trial Basic Deluxe Business
    Beta Electronics Retail Free Trial Basic
    Gamnma Electronics Commercial Free Trial Basic
    Delta Hardware Basic Deluxe Business
    Omega Hardware Retail Basic Deluxe Business
    Zeta Hardware Commercial Basic Deluxe

    Let's say I have the above table and I want to create a product selection form, with drop down menus, which would have the following options:

    Select your product: (this would be a drop-down menu, with a list of products from Column 1 - Product Name).
    Product Type(s): (this should be auto-filled, with no user interaction, by the choice from "Select your product", but should return the values from both Product Type 1 and Product Type 2 columns, in the same cell, separated by comma)
    Select your version: (this, again, should be a drop-down menu, with a list of product versions from Columns 4-7, but it should only show the options pertinent to the product chosen in "Select your product").

    Would this need to be done with VBA code or can I use HLOOKUP or another formula to get the results I want?

    Thanks!

    PS: I have also now asked this question on the ozgrid.com forums (http://www.ozgrid.com/forum/showthread.php?t=205189) hopefully to get some more ideas about how to deal with the number of products.
    Last edited by Daervon; 08-12-2017 at 09:57 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    What's the maximum number of product versions?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-12-2017
    Location
    Athens, Greece
    MS-Off Ver
    365
    Posts
    6

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    Product versions are 4 right now, though that might change in the future -- if I had the basic idea how to go about this, I'm sure I could modify it though if the situation demanded

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell


  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    This is a very basic version of what I think that you want. It can be tweaked considerably, if it IS what you need.

    What mmight be a pain would be setting it up for a large number of PRODUCTS, non product verssions, as each Product needs its own Data Validation column.

    UNLESS... you only want this dropdown to be applied on a small number of rows.

    How many products?

    How many rows (MAXIMUM)?
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-12-2017 at 07:33 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    08-12-2017
    Location
    Athens, Greece
    MS-Off Ver
    365
    Posts
    6

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    This is what I was looking for but the number of products will end up being considerable (over 50) and I'm guessing it would make this clunky.
    Also, for some reason, when I tested your file, selecting "Gamma" as a product results in an empty drop-down menu for "Options", and when I tried to do a Data Validation it said that there was an error. At the same time, the Description column was populated correctly.

    All the other Products worked correctly.
    Last edited by AliGW; 08-12-2017 at 09:09 AM. Reason: Unnecessary quotation removed.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    Fixed. Neither of us spelled gamma correctly!! At least I have an excuse....

    So to my second question: how many rows (maximum) will you need this set-up on?

  8. #8
    Registered User
    Join Date
    08-12-2017
    Location
    Athens, Greece
    MS-Off Ver
    365
    Posts
    6

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    The number of rows could end up being quite large, unfortunately (currently they're 63, but if I were to apply the same to other product groups, it could easily be double that).

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    OK. That blows Plan B out of the water....

    So. It'll be fiddly to set up, but multiple named ranges will work for you.

  10. #10
    Registered User
    Join Date
    08-12-2017
    Location
    Athens, Greece
    MS-Off Ver
    365
    Posts
    6

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    Thank you very much for your help I'll fiddle with it more and see what I can come up with.

  11. #11
    Registered User
    Join Date
    08-12-2017
    Location
    Athens, Greece
    MS-Off Ver
    365
    Posts
    6

    Re: Multiple drop-down list selections and HLOOKUP multiple results in the same cell

    Link provided as requested. My apologies.

+ 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. multiple selections from drop down list
    By Andyroo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 11:24 AM
  2. Replies: 0
    Last Post: 02-14-2013, 01:05 PM
  3. [SOLVED] Update respective cell values in the table based on Multiple Drop Down list selections.
    By nileshpatil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2012, 09:30 AM
  4. [SOLVED] Update respective cell value based on Multiple Drop Down list selections
    By nileshpatil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2012, 08:43 AM
  5. VLOOKUP with Drop down results with multiple selections
    By tony666 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2010, 07:13 AM
  6. Drop down list allowing multiple selections
    By Bearded Dan in forum Excel General
    Replies: 1
    Last Post: 11-14-2007, 09:35 AM
  7. Multiple selections from a drop down list in Excel...
    By JMW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-09-2005, 01:10 PM
  8. multiple selections from a drop down list
    By bern in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 02-28-2005, 09:49 PM

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