+ Reply to Thread
Results 1 to 9 of 9

5 position matrix from 00000 to 33333

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

    5 position matrix from 00000 to 33333

    5 position matrix from 00000 to 33333
    ex=

    00000
    00001
    00010
    .......


    33333

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,258

    Re: 5 position matrix from 00000 to 33333

    your explanation is too short.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: 5 position matrix from 00000 to 33333

    Ok I'll show you an example,
    This example macro. Warning is an example, okay?
    But I need 00000 to 33333
    Sub all_comb ()
    'Macro to create all comb 0000-5555

    Ln = 1 'start display at line 1
    For w = 0 To 5: For x = 0 To 5: For y = 0 To 5: For z = 0 To 5
    Cells (Ln, 1) = w: Cells (Ln, 2) = x: Cells (Ln, 3) = y: Cells (Ln, 4) = z
    Ln = Ln + 1 'move down to next line
    Next z: Next and: Next x: Next w 'complete loops

    End Sub
    I repeat to 0000-5555 is just a sample or example
    I need to 5 positions 00000- 33333

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

    Re: 5 position matrix from 00000 to 33333

    Hello glenn, you could create a macro to generate several positions of two the 10 positions or be a field to enter the commands of several matrices and not only
    Of 5 positions = 00000-33333
    It's kind of a karnaugt map.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: 5 position matrix from 00000 to 33333

    So you want a list of those 5 digits going down column A, like this:

    00000
    00001
    00002
    00003
    00010
    00011
    00012
    00013
    00020
    00021

    and so on, where only the digits 0, 1, 2 and 3 are used. Is that correct?

    Pete

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

    Re: 5 position matrix from 00000 to 33333

    hello,PETE. Yes, perfect, this is correct, the last training will be 33333
    It's kind of a karnaugt map.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: 5 position matrix from 00000 to 33333

    Put this formula in the first cell of your range:

    =MOD(INT((ROWS($1:1)-1)/4^4),4) & MOD(INT((ROWS($1:1)-1)/4^3),4) & MOD(INT((ROWS($1:1)-1)/4^2),4) & MOD(INT((ROWS($1:1)-1)/4),4) & MOD(ROWS($1:1)-1,4)

    then copy down. If your first cell is on row 1, you will need to copy down to row 1024 to get to 33333.

    Hope this helps.

    Pete
    Last edited by Pete_UK; 02-28-2017 at 09:26 AM.

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

    Re: 5 position matrix from 00000 to 33333

    ok PETE,perfect,magnific, conglatulations, thank you man!!!

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: 5 position matrix from 00000 to 33333

    You're welcome - thanks for the rep.

    Pete

+ 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. How can i do 1111......2222......33333......44444....
    By Ipinho100 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-16-2023, 12:03 AM
  2. Convert 00000 to 000.00
    By allanjones863 in forum Excel General
    Replies: 3
    Last Post: 05-20-2014, 04:59 PM
  3. Find position in matrix (not array)
    By Coaster in forum Excel General
    Replies: 5
    Last Post: 11-14-2011, 01:26 PM
  4. forcing 00000 value in if formula
    By jpruffle in forum Excel General
    Replies: 2
    Last Post: 07-16-2009, 03:40 PM
  5. Finding the position of a value in a matrix
    By jamesryan in forum Excel General
    Replies: 2
    Last Post: 04-27-2009, 02:47 PM
  6. SUMPRODUCT of columns based on matrix position
    By jungpil in forum Excel General
    Replies: 5
    Last Post: 03-20-2009, 10:05 AM
  7. Format 000-00000-00000-000 and recognize leading zeros in Excel?
    By Jackie Kohlman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-29-2006, 04:25 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