+ Reply to Thread
Results 1 to 5 of 5

Create list of combinations based on changing criteria

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    Aurora, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    37

    Create list of combinations based on changing criteria

    Hello! Firstly, I hope I am putting this in the correct forum. I chose this forum because I would like the solution to be a formula or function, and not VBA. This is for a workbook in Excel 2007.

    I have three columns of data that change constantly based on selctions in other sections of the workbook. What I need is a way to list all combinations of the selected data using one item from each column. I don't need duplicates, and I would like them to stay in the corresponding column order. The number of items in each column will be changing all the time, and there will be times when the first column will not be used at all.

    For example, if my criteria columns look like:

    Cat_____Yellow_____Cherry
    Dog_____Blue_______Lime
    Fish_______________Grape
    Bird_______________Pineapple
    __________________Mango
    __________________Apple

    I need the result to look like:

    Cat;Yellow;Cherry
    Cat;Yellow;Lime
    ...
    Cat;Blue;Cherry
    Cat;Blue;Lime
    .....
    Dog;Yellow;Cherry
    Dog;Yellow;Lime
    ...
    Dog;Blue;Cherry
    Dog;Blue;Lime
    .....etc for all combinations

    Is it possible to do this with a function or formula that will automatically update based on the changing criteria? I really need to be able to do this without having to run a macro everytime one or more of the criteria change.

    Thank you!
    Last edited by NamiSama; 05-13-2014 at 05:43 PM. Reason: To specify version of Excel being used

  2. #2
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Create list of combinations based on changing criteria

    Hi,

    Please find attached excel sheet for your solution.
    Don't delete support formulas which is highlighted in dark orange.

    Regards,
    Suhas
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-28-2014
    Location
    Aurora, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Create list of combinations based on changing criteria

    This is perfect! Thank you so much!!!!!! I can't express how much you have helped me with my project!

  4. #4
    Registered User
    Join Date
    02-28-2014
    Location
    Aurora, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Create list of combinations based on changing criteria

    I was running through some more tests with it, and there will be times when the first column will not be used. Can this setup be modified to start results with the second column if the first column is blank?

    There will also be times when the fisrt column is the only one used. When this is the case, there wont be any combinations to make, but I still need it to list the items from the first column.

    There are a number of other formulas that are dependent of the results of this setup, and I need the output columns for this setup to always reflect what items have been selected.

    Thank you again for your assistance with this, I have been stuck on this problem for a few weeks now.
    Last edited by NamiSama; 05-14-2014 at 12:33 PM.

  5. #5
    Registered User
    Join Date
    02-28-2014
    Location
    Aurora, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Create list of combinations based on changing criteria

    Well, it took some work, but I was able to tweak the setup for just two columns, and I have them stacked on top of each other so my output columns are still the same. Thank you again Suhas for your brilliant solution! It is amazing, and I learned many new things while taking it apart.

+ 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. [SOLVED] Create a distinct list based on other criteria
    By tomtheappraiser in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2014, 12:59 PM
  2. [SOLVED] Create list based on criteria and is unique
    By joannelittell in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-13-2013, 02:33 PM
  3. [SOLVED] Create a list that has more than one column based on a criteria
    By limebaish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-01-2013, 09:21 PM
  4. [SOLVED] Create a separate list based on criteria in another list.
    By dpitts21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2012, 07:09 PM
  5. Record Symbols from Changing List Based on Meeting Various Criteria in Other Cells
    By DrSues02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2007, 05:20 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