+ Reply to Thread
Results 1 to 17 of 17

Create Alphabetical Series

  1. #1
    Registered User
    Join Date
    01-22-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Create Alphabetical Series

    Hello
    I have a list of names and against which I have a to generate a 8 character alphabet series.

    Total rows - 634283

    Format - 0000000A, 0000000B......0000000Z, 000000AA.......000000ZZ, 00000AAA ..... 00000ZZZ, .......... ZZZZZZZZ

    I tried with some formula but they are taking too much memory and crashing the excel.

    Please help

    Senz

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Create Alphabetical Series

    Can you attach a small sample workbook showing what your data and output looks like?

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Registered User
    Join Date
    01-22-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Create Alphabetical Series

    Attachment attached
    Attached Files Attached Files

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Create Alphabetical Series

    Can you post what you have tried that crashes Excel?

  5. #5
    Registered User
    Join Date
    01-22-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Create Alphabetical Series

    I was trying to put the formula but the site do not allow me and says You are not allowed to post any kinds of links, images or videos until you post a few times.

  6. #6
    Registered User
    Join Date
    01-22-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Create Alphabetical Series

    The formula attached
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Create Alphabetical Series

    try this one
    this is first formula:
    =REPT("0",8-(TRUNC((ROW(1:1)-1)/26)+1))&REPT(CHAR(MOD(ROW(1:1)-1,26)+65),TRUNC((ROW(1:1)-1)/26)+1)

    then copy down

  8. #8
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Create Alphabetical Series

    Try this and copy down;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-22-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Create Alphabetical Series

    After ZZ it is repeating alphabet
    000000AA
    000000AA
    000000AA
    000000AA
    000000AA
    000000AA
    000000AA
    000000AA
    000000AA
    000000AA
    000000AA

    Also as the alphabets increase in sequence the 0s should become less, for example 0000000A, 000000AA, 00000AAA

  10. #10
    Registered User
    Join Date
    01-22-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Create Alphabetical Series

    I have more than 600000 rows, thus the values will look like AAB, AAC and so on

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

    Re: Create Alphabetical Series

    Does it have to be formula? Maybe you can use macro instead?
    I've written down something like below. It is not optimize, not very nice but generates string between 000A to ZZZZ.
    I hope you will be able to modifying it to your needs:


    Sub generatedata()
    Dim i1 As Integer
    Dim i2 As Integer
    Dim i3 As Integer
    Dim i4 As Integer
    Dim i5 As Integer
    Dim i6 As Integer
    Dim i7 As Integer
    Dim i8 As Integer
    Dim iRow As Long
    Dim iValue As String

    Application.ScreenUpdating = False
    Application.Calculation = xlCalculationManual

    iRow = 1

    For i1 = 48 To 90
    If (i1 > 48 And i1 < 65) Then i1 = 65
    For i2 = 48 To 90
    If (i2 > 48 And i2 < 65) Then i2 = 65
    For i3 = 48 To 90
    If (i3 > 48 And i3 < 65) Then i3 = 65
    For i4 = 65 To 90
    iValue = Chr(i1) & Chr(i2) & Chr(i3) & Chr(i4)
    Range("B" & iRow).Value = Trim(iValue)
    iRow = iRow + 1
    if (Range("A"&iRow).value = "") then ' to check, maybe list has ended
    exit sub
    end if
    Next i4
    Next i3
    Next i2
    Next i1


    Application.ScreenUpdating = True
    Application.Calculation = xlCalculationAutomatic

    End Sub


    Be aware that with these 4 loops it takes a while and generates 511758 rows.
    Last edited by KOKOSEK; 01-22-2019 at 08:48 AM. Reason: check is it enough
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  12. #12
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Create Alphabetical Series

    Please try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Create Alphabetical Series

    Post 7 and 8 formulae both break down after a while. This MIGHT be OK....

    =RIGHT("0000000"&LEFT(ADDRESS(1,ROWS($1:1),4),LEN(ADDRESS(1,ROWS($1:1),4))-1),8)

    It is certainly OK to 5000 rows...
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Create Alphabetical Series

    Bo_Ry... most unusal... a really horrible-looking formula coming from you....

  15. #15
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Create Alphabetical Series

    Glenn, I did try ADDRESS but it only works until XFD, row 16384

    OP said he needs 600,000 rows so the formula gets longer and longer but work until row 1m

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

    Re: Create Alphabetical Series

    I guess I didnt have the patience to copy paste it down that far!!

  17. #17
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Create Alphabetical Series

    I use fill series in column A and column B is just double click down.

    Fill Series.jpg

+ 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. [SOLVED] Create alphabetical list from range when criteria is met
    By MissExcel1981 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-24-2016, 07:54 AM
  2. [SOLVED] Create time series
    By tax112 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2016, 11:06 PM
  3. [SOLVED] Create alphabetical list, but retain original order
    By Yoshi64 in forum Excel General
    Replies: 7
    Last Post: 01-16-2014, 11:16 PM
  4. [SOLVED] Create number series based on another number series
    By hbangalore in forum Excel General
    Replies: 8
    Last Post: 04-05-2012, 01:22 PM
  5. Need a formula to create an alphabetical code
    By Acer2005 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 11-18-2010, 05:44 PM
  6. [SOLVED] How many series does this code create???
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2006, 09:00 AM
  7. How do I create a weekly series?
    By eingram in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2005, 04:06 AM

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