+ Reply to Thread
Results 1 to 7 of 7

Trying to find the all possible combinations

  1. #1
    Registered User
    Join Date
    09-30-2007
    Posts
    29

    Trying to find the all possible combinations

    Hey all,

    I have the excel sheet below. In the sheet, I have models, body, lenght, engine... and I am trying to find all possible combinations.

    ex:
    Model Body Lenght Engine Power Steering ClassofVehicle Doors AC
    M D J 4 4 L 3 8 M
    M D J 4 4 M 2 7 F

    LİST GOES LİKE THAT.

    Is it possible to have it with visual basic, ı couldnt figure it out.
    Attached Files Attached Files
    Last edited by mutu; 07-28-2009 at 08:06 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Trying to find the all possible combinations

    You probably need to be looking at Solver
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-30-2007
    Posts
    29

    Re: Trying to find the all possible combinations

    Thanks for the reply, but I dont get the relation of this kind of problem with solver.

    Thanks.

  4. #4
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Trying to find the all possible combinations

    Assuming that each letter of the alphabet is used and each digit of the decimal system is used your number of permutations is:

    N = 26^2 * 26^2 * 26^2 * 10^2 * 10 ^2 * 26^2 * 10^2 * 10^2 * 26^2 = 1.41167E+22

    You will have to define a narrower range to each parameter in order to make the field set more practical.

    Once this is done you can write a macro to populate the combinations.

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

    Re: Trying to find the all possible combinations

    For the options you have listed, there are over 2 billion combinations. Excel would explode before you listed them all.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    09-30-2007
    Posts
    29

    Re: Trying to find the all possible combinations

    what about this table?

    is it logical?
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Trying to find the all possible combinations

    For a pivot it is not. Each column of the pivot must be the lowest common demoninator of stratification. Variables should not be combined in columns. Try giving me a table with just letters or numbers that represent singular dimensions of your field. Leave the descriptions to look-up tables.

+ 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