+ Reply to Thread
Results 1 to 4 of 4

How can I fill alphabetic series in excel

  1. #1
    Pawan arora
    Guest

    How can I fill alphabetic series in excel

    Hi I am not able to do alphabetic series in excel. etc A.......Z,AA,AB,AC

    please help me out from this.

  2. #2
    Registered User
    Join Date
    01-19-2006
    Posts
    21
    This is a really quick fix. but maybe some help to you.

    Sub Alphabet()
    Dim j As Integer
    Dim k As Integer
    Dim i As Integer

    k = 1
    For k = 0 To 10
    j = 65
    For i = (1 + (25 * k)) To (1 + (25 * k)) + 25
    If k = 0 Then
    Worksheets("Sheet1").Range("A" & i).Value = "=char(" & j & ")"
    j = j + 1
    Else
    Worksheets("Sheet1").Range("A" & i).Value = "=char(" & (k + 64) & ") & char(" & j & ")"
    j = j + 1
    End If
    Next i
    Next k
    End Sub

    To change how many series you have decrease / increase the k loop
    Example - For k = 0 To 11

    note: this will only go to ZZ

  3. #3
    Registered User
    Join Date
    01-19-2006
    Posts
    21
    Sorry! it should be.


    Sub Alphabet()
    Dim j As Integer
    Dim k As Integer
    Dim i As Integer

    k = 1
    For k = 0 To 10
    j = 65
    For i = (1 + (26 * k)) To (1 + (26 * k)) + 25
    If k = 0 Then
    Worksheets("Sheet1").Range("A" & i).Value = "=char(" & j & ")"
    j = j + 1
    Else
    Worksheets("Sheet1").Range("A" & i).Value = "=char(" & (k + 64) & ") & char(" & j & ")"
    j = j + 1
    End If
    Next i
    Next k
    End Sub

  4. #4
    Dave Peterson
    Guest

    Re: How can I fill alphabetic series in excel

    Like down a column?

    I'd use this formula
    =SUBSTITUTE(ADDRESS(1,ROW(A1),4),"1","")
    and copy down.

    Then I'd convert it to values (edit|copy, edit|paste special|values)

    Pawan arora wrote:
    >
    > Hi I am not able to do alphabetic series in excel. etc A.......Z,AA,AB,AC
    >
    > please help me out from this.


    --

    Dave Peterson

+ 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