+ Reply to Thread
Results 1 to 8 of 8

Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

  1. #1
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    Generate random lines 3 numbers limit per line and 3 per column
    The matrix below 5x5 = we have 5 columns and 5 rows
    You have to generate all possible configurations at maximum limit
    3 numbers per line and 3 for columns
    = Example 05 15 35 22 21 24
    Please
    01 02 03 04 05
    11 12 13 14 15
    21 22 23 24 25
    31 32 33 34 35
    41 42 43 44 45

    Excel 2010

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    Hi
    See if is this you want
    I use a sheet S_1 for helpers and S_2 for Results
    Your matrix is in S_1!K1:O5
    I used the following formula to find which decimal number has 3 values 1 in binary
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and use the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    to get the array {7;11;13;14;19;21;22;25;26;28}
    Columns DEF has the following formula that gives the position of 1 in binary number to define lines and columns to use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    The two following formulas are in S_2 Sheet to gives you the result (first three columns are rows elements, and the others are columns elements)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Your example are in row S_2!2289
    See the file for clarification
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    ok hello jose, perfect, congratulations, very good job, thank you !!!! man!

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    Obrigado pelas amáveis palavras.

  5. #5
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    ok, muito JOSE, só mas isto na mesma planilia. um campo aonde eu digito ou seleciono os digitos ( 0,1,2,3,4,5,6,7,8,9) eu seleciono e a macro separa os digitos que selecionei ou marquei tipo um filtro
    exemplo= digito ou seleciono nas formaçoes os digitos=last digit 4 e digit incial 3
    14,24,44 31,32,34
    tem que ter digit inicial e final para filtrar( nao vou usar todas as formaçoes so as filtradas
    tem a lista de 0 a 9
    porque temos outra matriz de 06 07 08 09 10....
    mas é so trocar na mesma matriz da certo , so que preciso do filtro de dos 0,1,2,3,4,5,6,7,8,9
    digito inicial e final colocar no link quando pronta
    por favor . abraçoes

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    Hi
    Please use English.
    To place a global filter should put in cell S_2!G2 the following formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where I1 is the first digit of the number in columns A, B and C and J1 is the last digit of the number in columns D, E, and F.
    You must choice 1 in that column.
    See the file
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    OK sorry,!!!! very good job, perfect, thank you

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Generate random lines 3 numbers limit per line and 3 per column The matrix below 5x5

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks. It is customary to give feedback to those that have helped you by clicking on the asterisk (Add Reputation) at the bottom of their post.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] How to generate non-repeating random numbers in a column wihtout VB
    By luv2glyd in forum Excel General
    Replies: 4
    Last Post: 02-16-2015, 12:43 AM
  2. [SOLVED] Generate random comma separated lines of text from list without repeats
    By Banker123456 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2014, 12:00 AM
  3. [SOLVED] Too Many Line Continuations - 24 lines limit
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2014, 03:02 AM
  4. Replies: 8
    Last Post: 11-18-2013, 04:24 PM
  5. How can you add up random numbers to a limit.
    By stevekavo in forum Excel General
    Replies: 1
    Last Post: 01-28-2013, 06:57 AM
  6. generate random numbers
    By fo05kka in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2009, 09:55 PM
  7. generate sequential numbers with a limit
    By ahsanaq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2007, 03:15 PM

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