+ Reply to Thread
Results 1 to 10 of 10

List all possible combinations of a series of dropdowns

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    11

    List all possible combinations of a series of dropdowns

    I would like to be able to create a list (concatenated field) of all possible combinations of a series of 4 dropdown boxes.

    So for e.g.

    DropDownList 1: A, B
    DropDownList 2: X, Y

    Would like to be able to generate the following list:

    AX
    AY
    BX
    BY

    Any and all help would be appreciated.

    Thanks
    Tannia

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: List all possible combinations of a series of dropdowns

    There's a workbook that shows two ways to do this, one with formulas and one with VBA, at https://www.box.com/s/47b28f19d794b25511be
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: List all possible combinations of a series of dropdowns

    THanks for the tool - the added complication that my data set has is that the drop-downs are dependent -drop downs, so in the tool your provided the link to certain appetizers would remove certain choices from the maincourse and dessert choices.
    I tried to work thru the tool but do not think its possible to modify to work for dependent drop downs- correct?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: List all possible combinations of a series of dropdowns

    You should add your complications up front

    You would need to generate a list for each of the primary dropdown items and its associated dependent items.

  5. #5
    Registered User
    Join Date
    01-22-2013
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: List all possible combinations of a series of dropdowns

    Agreed - unfortunately the complication had not revealed itself at the time of my original post!

    Tried what you suggested re: building list by developing from the primary drop-down - but for some reason I got duplicates? Not sure what I was doing incorrectly ?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: List all possible combinations of a series of dropdowns

    Dunno. Post the workbook.

  7. #7
    Registered User
    Join Date
    01-22-2013
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: List all possible combinations of a series of dropdowns

    Attached example - Column G concatenates the 4 choices from drop-down, cells highlighted yellow are duplicates.
    Feel I am missing a basic cue here - so risk getting egg (easter) on my face - but I really cannot figure it out.

    Thank you.
    Attached Files Attached Files

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: List all possible combinations of a series of dropdowns

    There are only 324 arrangements -- the value in C2. You will get all duplicates if you pull the formulas down further than that.

  9. #9
    Registered User
    Join Date
    01-22-2013
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: List all possible combinations of a series of dropdowns

    Thank you for the for the 'aha' moment!

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: List all possible combinations of a series of dropdowns

    You're welcome.

+ 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