+ Reply to Thread
Results 1 to 5 of 5

Find all possible numerical combinations

  1. #1
    Registered User
    Join Date
    07-24-2007
    Posts
    66

    Find all possible numerical combinations

    I've got 5 different items per lot and I have 6 lots: 1A, 1B, 1C, 1D, and 1E are the numbers for Lot 1. The sequence would repeat with 2A, 2B, etc..on up to 6A through 6E.

    Is there a fast way to determine all possible combination of sets of three? For example, so far I've got: 1A - 1B - 1C, 1A-1B -1D, and so on. I'm doing this manually in Excel and it's taking me a while. Does anyone know of a better way?

    P.S. I will be working my way up to combinations of 11 in a set.

    Thanks,

    Amy

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Have a look at

    HTML Code: 
    Martin

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    XLForum_ Amy22x3_Find all possible numerical combinations ---------------------
    Hi Amy, try this:-
    Place you line (Lot) of Data in Row (1)
    Run the code Select Row (1) Range of Data in the "Input Box".
    Enter the number "3" in the 2nd "Input Box" (This is your number selection, any number within the Row (1) range will work)
    Results appear from "A2" on.
    The results will be cleared each time you run the code.
    The numbers of rows in the display will show in a Message Box.
    Please Login or Register  to view this content.
    NB:- I've jusy written it, give it a good test.
    It seems all right so far !!
    Regards Mick

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi, I don't know how , but I seem to have shortchanged you on some variables.
    Add these to the top of he code:-
    Please Login or Register  to view this content.
    Hope it still works !!
    Regards Mick

  5. #5
    Registered User
    Join Date
    03-26-2008
    Posts
    19
    Quote Originally Posted by amy22x3
    I've got 5 different items per lot and I have 6 lots: 1A, 1B, 1C, 1D, and 1E are the numbers for Lot 1. The sequence would repeat with 2A, 2B, etc..on up to 6A through 6E.

    Is there a fast way to determine all possible combination of sets of three?
    Thanks,
    Amy
    Sorry but did you mean the number of combinations or do you have to show all the combinations?

+ 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