Results 1 to 6 of 6

Generate all formations in sequences = triple and quadruple doubles from 01 to 31

Threaded View

  1. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Generate all formations in sequences = triple and quadruple doubles from 01 to 31

    Code for macro
    Sub Macro1()
    Application.ScreenUpdating = False
    Dim TA As Long, AB As Long, AC As Long, X As Long, Y As Long, Z As Long
    
    X = 31
    For TA = 1 To X
    Y = 0
    Z = TA - 1
        For TB = TA + 1 To X
            
            For TC = TA To TB
            Range("A2").Offset(Z, Y) = TC
            Y = Y + 1
            Next TC
            
        Next TB
    Next TA
    
    Range("A2").CurrentRegion.Resize(X).SpecialCells(xlCellTypeBlanks).Value = X
    
    Range("A2").CurrentRegion.NumberFormat = "00"
    Application.ScreenUpdating = True
    
    End Sub
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 05-16-2018 at 02:44 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Generate all possible formations using strings 0 to 3 whose sum is 14 .
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2018, 09:21 AM
  2. Request = generate positional pairs identifying by the 24 formations
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2017, 07:11 AM
  3. Replies: 14
    Last Post: 08-12-2017, 11:11 PM
  4. [SOLVED] Generate random formations, but without repeating the letters in the columns and in the ro
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 04-13-2017, 01:15 PM
  5. [SOLVED] Formations in sequences of 3,4,5,6,7,8, all possible 01-25
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-26-2016, 01:26 PM
  6. formations of multiple pairs, trios and quadruple
    By jorel in forum Excel General
    Replies: 6
    Last Post: 03-13-2015, 09:50 PM
  7. separate possible triple digit formations without repetition of 60/6
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2014, 12:02 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