+ Reply to Thread
Results 1 to 2 of 2

Combinations, Permutations

  1. #1
    Forum Contributor
    Join Date
    09-27-2004
    Posts
    133

    Question Combinations, Permutations

    I have a list of 24 items. For example, boat, chair, table, etc.
    I want to find and list all possible combinations of any two(2) of them, and order does matter.

    Any suggestions or VB code I can use to automate the process?

    Thanks.

  2. #2
    Harald Staff
    Guest

    Re: Combinations, Permutations

    Sub test()
    Dim L As Long
    For L = 1 To 24
    Cells(1, L + 1).Value = "item" & L
    Cells(L + 1, 1).Value = "item" & L
    Next
    Range("B2:Y25").FormulaR1C1 = "=RC1&R1C"
    Columns("B:L").EntireColumn.AutoFit
    End Sub

    HTH. Best wishes Harald

    "scantor145" <[email protected]> skrev
    i melding news:[email protected]...
    >
    > I have a list of 24 items. For example, boat, chair, table, etc.
    > I want to find and list all possible combinations of any two(2) of
    > them, and order does matter.
    >
    > Any suggestions or VB code I can use to automate the process?
    >
    > Thanks.
    >
    >
    > --
    > scantor145
    > ------------------------------------------------------------------------
    > scantor145's Profile:
    > http://www.excelforum.com/member.php...o&userid=14766
    > View this thread: http://www.excelforum.com/showthread...hreadid=489040
    >




+ 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