+ Reply to Thread
Results 1 to 4 of 4

Permutations with repetition - 4 letters long (all 26 letters in the alphabet)

  1. #1
    Registered User
    Join Date
    05-31-2021
    Location
    Red Sea
    MS-Off Ver
    2013
    Posts
    2

    Permutations with repetition - 4 letters long (all 26 letters in the alphabet)

    Hello!
    I have trouble generating a spreadsheet with permutations with repetition which I need to use for an Index. I need the spreadsheet to look like this:
    AAAA
    AAAB
    ......
    ZZZY
    ZZZZ
    Can you help me please? Thank you!

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Permutations with repetition - 4 letters long (all 26 letters in the alphabet)

    From our forum:

    https://www.excelforum.com/excel-for...-to-zzzzz.html

    For you as 4 letters:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by KOKOSEK; 05-31-2021 at 06:52 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    05-31-2021
    Location
    Red Sea
    MS-Off Ver
    2013
    Posts
    2

    Re: Permutations with repetition - 4 letters long (all 26 letters in the alphabet)

    Sorry, and thank you for your quick answer. I'm new to Excel formulas unfortunately. I checked and I actually use Office 2019. When i try to copy/paste the formula I get this error:
    Attachment 734749

    Found my problem. I needed to replace the comma with a semicolon here: =CHAR(MOD(INT((ROWS(B$1:B2)-2)/26^3) , 26) + 65)
    Thank you very much for your help!
    Last edited by PZANE; 05-31-2021 at 07:11 AM.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Permutations with repetition - 4 letters long (all 26 letters in the alphabet)

    For ex. into A2 and then drag it down as long as you will get ZZZZ.

    edit1: Regional settings.
    edit2: However formula is correct that kills CPU (killed mine on Win10 64 bit), so if you can use VBA I recommend use this:

    Please Login or Register  to view this content.
    It takes a while but you will get what you need.
    Last edited by KOKOSEK; 05-31-2021 at 08:00 AM.

+ 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. Trend Arrows Based on Letters of the Alphabet
    By Sora_P in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2021, 05:13 AM
  2. [SOLVED] create letters of the alphabet from a list
    By howard.smithuk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-07-2019, 04:12 PM
  3. How to Produce All permutations of Alphabet 3 Letters Long
    By longfisher in forum Excel General
    Replies: 3
    Last Post: 12-01-2013, 08:11 AM
  4. listing all permutations of 4 letters
    By lkt in forum Excel General
    Replies: 3
    Last Post: 08-23-2012, 01:48 PM
  5. Replies: 7
    Last Post: 06-16-2008, 05:10 PM
  6. [SOLVED] Letters of Alphabet
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2006, 08:08 AM
  7. associate alphabet letters with numbers?
    By Loriandme69 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 11-21-2005, 10:10 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