+ Reply to Thread
Results 1 to 5 of 5

Finding combinations of 8 letters

  1. #1
    Registered User
    Join Date
    03-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Finding combinations of 8 letters

    I have eight letters (LHWMPISA), and I need to generate all the combinations, specifying the size of the subset. e.g. all combinations that include 5 letters.

    How can I do this?

    I've looked through all the past threads and tried the answers, including Myra's code, but can't get this to work.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Finding combinations of 8 letters

    macaonghus,

    See the attached workbook "Find combinations of 8 letters - macaonghus - SDG11.xls", with macro "ListPermutationsOrCombinations", by Myrna Larson.

    Detach/open the workbook, and run the "ListPermutationsOrCombinations" macro. The macro will run in either Excel 2003 or 2007.

    It will create Sheet2 with the list of 5 letters.
    Last edited by stanleydgromjr; 02-10-2010 at 11:31 AM.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    03-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: Finding combinations of 8 letters

    Brilliant, thank you so much!

  4. #4
    Registered User
    Join Date
    01-29-2015
    Location
    Australia
    MS-Off Ver
    2008
    Posts
    4

    Re: Finding combinations of 8 letters

    Hi Is this possible to do for AAAA.

    The result would look like
    AAAA AABA AACA AADA
    AAAB AABB AACB AADB
    AAAC AABC AACC AADC
    AAAD AABD AACD AADD
    AAAE AABE AACE AADE
    AAAF AABF AACF
    AAAG AABG AACG
    AAAH AABH AACH
    AAAI AABI AACI
    AAAJ AABJ AACJ
    AAAK AABK AACK
    .
    .
    .
    .
    .
    .
    .
    AAAZ AABZ AACZ . . . . . . . . . . . . . . . . . ZZZZ

    thanks for the reply!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Finding combinations of 8 letters

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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