Skip to main content
 

How to numbering the cells with alphabetical letters in Excel?

Author: Sun Last Modified: 2024-08-15

In Excel, we can numbering the cells with number series such as 1, 2, 3… by using the autofill handle , but how can you numbering cells with alphabetical letters A, B, C…? In this tutorial, I introduce some ways to handle this job in Excel.

Numbering cells with alphabetical letter with formula

Numbering cells with alphabetical letter with VBA code

Numbering cells with with Kutools for Excel


Numbering cells with alphabetical letter with formula

1. Type all letters you want to use to numbering cell in a list next to the cells you want to numbering.

a screenshot of typing the letters you need in a list

2. Select a cell which is adjacent to the letters and cell contents you want to numbering, type this formula =A1&"."&B1, drag fill handle down to fill the formula to all cells you need.

a screenshot of use formula to get the numbering results


Numbering cells with alphabetical letter with VBA code

If you are familiar with macro codes, you can do as these:

1. Press Alt + F11 keys to enable Microsoft Visual Basic for Applications window. Click Insert > Module.

2. Copy and paste below code to the Module script.

VBA: numbering with A

Sub Prefix_A()
'UpdatebyExtendoffice20180828
Dim xRg As Range
Dim xStrPrefix As String
xStrPrefix = "A."
On Error Resume Next
Application.ScreenUpdating = False
For Each xRg In Selection
    If xRg.Value <> "" Then
        xRg.Value = xStrPrefix & xRg.Value
    End If
Next
Application.ScreenUpdating = True
End Sub

3. Then repeat paste the code and change A to B or C or D as you need.

a screenshot showing how to use the VBA code

4. Save the code and close the Microsoft Visual Basic for Applications window.

5. Select the cells you want to numbering with A, and click Developer > Macros.

a screenshot of enabling the Macro dialog box

6. In Macro dialog, select the code Prefix_A and click Run.

a screenshot of running the code

7. Selection have been numbered with A.

a screenshot showing the numbering results after running the code

8. Repeat step 5 and 6 to numbering the cells with specific letter as you need.


Numbering cells with Kutools for Excel

If you have Kutools for Excel, you can quickly numbering cells.

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

Select the cells you want to numbering, then click Kutools > Insert > Insert Numbering, select one type you need.

a screenshot of inserting numbering with Kutools for Excel

Then the cells have been added numbering.

a screenshot showing the original data and the numbering results


Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!