+ Reply to Thread
Results 1 to 15 of 15

All possible combinations between 11 numbers

  1. #1
    Registered User
    Join Date
    03-04-2016
    Location
    Portugal
    MS-Off Ver
    Microsoft Office Mac 2016
    Posts
    6

    Question All possible combinations between 11 numbers

    Hello everyone,
    I'm new on excel (honestly I'm not into it, just need it), and I have a question about code.
    For my master thesis I need a map (or a matrix) of all possible combinations of numbers between 0. and 1. (with an increment of 0.1) powered to 60
    confusing?:
    Imagine 60 columns, and each cell of each column can store a number between 0 and 1:
    [0; 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8; 0.9; 1]

    I need any possible combinations between all columns values. I understand this maybe not possible because it will end up with a huge number of rows. For a start, it would be acceptable 10 columns.

    My Question: I found this solution on this forum from the user @TMS:
    http://www.excelforum.com/excel-gene...variables.html

    But I can't make it work. The error is: Run-time error '9': Subscript out of range
    Can somebody help me? Is there any useful tutorial I can start with? I'm using office 2016 for Mac.
    My knowledge of coding is Processing and MAX/MSP, so, a long way from home.

    Thank you very much!
    Best Regards

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    With your Data there can only be 121 combinations.
    Unless I misunderstand.

    paste this formula into A1 and fill to the right to K1

    then fill down to K11.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Or run this Macro

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 03-05-2016 at 04:38 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    03-04-2016
    Location
    Portugal
    MS-Off Ver
    Microsoft Office Mac 2016
    Posts
    6

    Re: All possible combinations between 11 numbers

    Hello @mehmetcik,
    thank you for your help,
    I think you misunderstood, I need all possibilities with repetitions
    for example:
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.4;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.6;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.7;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.8;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0.9;
    0, 0, 0, 0, 0, 0, 0, 0, 0, 1;
    0, 0, 0, 0, 0, 0, 0, 0, 0.1, 0.1;
    0, 0, 0, 0, 0, 0, 0, 0, 0.1, 0.2;
    0, 0, 0, 0, 0, 0, 0, 0, 0.1, 0.3;
    .
    .
    .

    This is for only 10 columns. I really need it for 60, but with 10 would be great.
    Thank you again,

    Regards

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    With 11 columns you would need 11^11 rows.

    Excel does not support that.

    You would need to print that a page at a time.

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

    Re: All possible combinations between 11 numbers

    For 10 columns, that's 11^10 arrangements.

    The file would be over 100 GB, but Excel would fall over way before you got there.

    Why do you think you need this?
    Last edited by shg; 03-05-2016 at 06:47 PM.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    03-04-2016
    Location
    Portugal
    MS-Off Ver
    Microsoft Office Mac 2016
    Posts
    6

    Re: All possible combinations between 11 numbers

    Hi all.
    My work is about sound synthesis.
    I need a map of all possible combinations of virtual synthesizer's parameters. Then, my program will analise those combinations according to some sound descriptors.
    Sound descriptors are metaphorical expressions that can help us perceive sounds.

    The main idea behind this is to make neural networks learn what a 'bright' or "smooth' sound is, in order to replicate real sounds with sound synthesis.
    I know, is ambitious... But I tend to simplify all this.

    I was able to make a .txt file with all possibilities for only 9 columns and 5 different numbers.
    140mb...

    I thought excel would help me solve this.
    Thank you all, though

    Best Regards
    Last edited by pandeirada; 03-07-2016 at 12:15 PM.

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    I ran this for 1000, 000 loops and got to this:

    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.1
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.2
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.3
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.4
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.5
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.6
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.7
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.8
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 0.9
    0 0 0 0 0 0.6 0.2 0.3 0.3 0.4 1


    I used this Code, the message box appears every 100,000 loops and asks if you want to continue:-

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    Ok I have a solution for you.

    Run this Macro:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-04-2016
    Location
    Portugal
    MS-Off Ver
    Microsoft Office Mac 2016
    Posts
    6

    Re: All possible combinations between 11 numbers

    Hi,
    Sorry for the late answer.
    @mehmetcik thank you so much for your help. I'm running it now. Nothing as happened so far, I believe Excel only shows the result when all combinations are generated, right? In the meanwhile I'll wait.

    Thank you again, if this really works, is a great advance in my work.

    Best Regards to all

  10. #10
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    During my trials I ran 1000 000 rows at a time ang to to about 4000 000 without any issues.

    However my laptop ran out of memory before the end.

    Tell me if your mac does as well in which case give me a folder address and I will modify the macro to save the results in a seperate file for each million results.

  11. #11
    Registered User
    Join Date
    03-04-2016
    Location
    Portugal
    MS-Off Ver
    Microsoft Office Mac 2016
    Posts
    6

    Re: All possible combinations between 11 numbers

    So far, nothing happened, is Excel working in the background? Is there any way to see if its really working?

  12. #12
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    This code has been modified to let you see that is happening.
    It Saves each completed column into the same folder as your macro file.


    Please Login or Register  to view this content.
    Last edited by mehmetcik; 03-07-2016 at 01:35 PM.

  13. #13
    Registered User
    Join Date
    03-04-2016
    Location
    Portugal
    MS-Off Ver
    Microsoft Office Mac 2016
    Posts
    6

    Re: All possible combinations between 11 numbers

    I've been trying this out...
    the last code you gave me, stops working around the 30.000th iteration.
    the other one goes up to 1million, but with many groups of columns.

    I'm trying to put this in a way that I can work with, so I'll try to build the combinations for 5 columns only, what do I have to change in your code to do this ?

    once again, thank you for your precious help.

  14. #14
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 03-07-2016 at 07:56 PM.

  15. #15
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: All possible combinations between 11 numbers

    Please Login or Register  to view this content.

+ 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. getting all possible set combinations of a set of numbers
    By juares castro in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-12-2015, 04:04 PM
  2. please help!!ALL COMBINATIONS REQUIRED FOR 5-DIGIT NUMBERs using numbers 0-9
    By natasha mirembe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2014, 01:43 PM
  3. [SOLVED] Different Combinations of 24 Numbers
    By danedw in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2013, 07:03 AM
  4. Replies: 1
    Last Post: 04-15-2012, 09:23 AM
  5. Possible Combinations Of A Given Set Of Numbers??
    By Jennylyn1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2007, 06:24 PM
  6. solving for all possible combinations of a set of numbers
    By Tom Ogilvy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 12:05 PM
  7. [SOLVED] solving for all possible combinations of a set of numbers
    By tradersm in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

Tags for this Thread

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