+ Reply to Thread
Results 1 to 3 of 3

All possible combinations from user input 6 digit number

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question All possible combinations from user input 6 digit number

    Hi,

    Hopefully this is a rather trival problem which can be solved easily - my limited excel knowledge just doesn't let me get anywhere near solving it.

    I want to have a user input 6 digit number (e.g. 494241) from which I generate, and see, all possible permutations of digits (720 I believe).

    My next stage is then to use this list of numbers as a lookup table to find the number permutation which is nearest to another user input numbers (e.g. 100000, 200000).

    So for my two examples the final solution would be 124449 and 194442.

    Hope this makes sense - any help is greatly appreciated.

    Many thanks

    Nigel
    Last edited by nigezkez; 09-23-2010 at 11:15 AM. Reason: wrong use of combination instead of meaning permutation

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: All possible combinations from user input 6 digit number

    Hi, I've found this code from Myrna Larson: instructions ara quite clear.
    Maybe it's a beginning to solve your problem.

    The output of the macro can be adapted to your purposes.

    http://www.ozgrid.com/forum/showthread.php?p=148992

    Cheers
    Last edited by canapone; 09-23-2010 at 07:52 AM.

  3. #3
    Registered User
    Join Date
    09-23-2010
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: All possible combinations from user input 6 digit number

    Brilliant!

    That code plus a few simple excel expressions and its all sorted.

    Many thanks,
    Nige

+ 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