+ Reply to Thread
Results 1 to 2 of 2

Combination generator needed...

  1. #1
    Registered User
    Join Date
    04-24-2011
    Location
    Jamestown, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    1

    Combination generator needed...

    I am looking for a way to create from a group of numbers that I input a new combination of 5 numbers.

    I have a set of numbers that fill columns A, B, C, D, E and rows 1 through 10. I am not sure if it's even possible to do something like this. Ideally I would like to have a macro where I can push a button and a new combination is generated from the set of numbers I have supplied.

    each combination would contain 5 numbers.. like 6-10-20-30-40, something like that

    If that's not possible, I need a way to generate all possible combinations of 5 items to a new sheet. I also wouldn't want a number to repeat in the same set of 5.

    Good: 6-10-20-30-40
    Bad: 6-10-10-20-30

    Can anyone help me get started on something like this or point me to a thread or resources where maybe something like this has been discussed.

    Cheers,

    ej
    Last edited by ej2012; 04-24-2011 at 07:37 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Combination generator needed...

    Hi ej next year and welcome to the forum,

    Find the attached with an example and some VBA code to do what I think you want to do.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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