How to Add a Comma at the End of text or numbers in Excel – 5 Methods

This is a sample dataset.

Dataset


Method 1 – Adding the Ampersand (&) Operator

Steps:

  • Select C5 and enter the formula.
=B5&”,”

The Ampersand (&) sign will add the comma at the end of the text in B5.

Using the Ampersand (&) Operator to add comma at the end in Excel

Fill Handle

  • This is the output.

Read More: How to Add Comma Before Text in Excel


Method 2 – Using the CONCATENATE Function

Steps:

  • Go to C5 and insert the formula.
=CONCATENATE(B5,”,”)

Employing the CONCATENATE Function to add comma at the end in Excel

  • Press ENTER and drag the formula to see the result.

Read More: How to Use Comma in Excel Formula


Method 3 – Using the SUBSTITUTE Function

Steps:

  • Go to C5 and enter the formula.
=SUBSTITUTE(B5,”-“,”,”)

Using SUBSTITUTE Function to add comma a the end in Excel

  • Press ENTER and drag down the Fill Handle to see the result.

Read More: How to Insert Comma Between Words in Excel


Method 4 – Utilizing the TEXTJOIN Function

The dataset below contains Students’ IDs and Marks.

Dataset

Steps:

  • In E5, enter the formula.
=TEXTJOIN(“,”,TRUE,B5:D5)
  • Press ENTER.

Utilizing TEXTJOIN Function to add comma at the end in Excel

  • This is the output.


Method 5 – Applying VBA to Add a Comma at the End of a text or number

Steps:

  • Go the Developer tab >> select Visual Basic.

Applying VBA to Add Comma at the End in Excel

  • In the dialog box, go to the Insert tab.
  • Click  Module >> select Module1 >> Enter the code.

Inserting Module to add comma at the end in Excel

.

Public Sub InsertComma()
Dim LastRow As Long, C As Integer, R As Long
C = 2  
LastRow = Cells(Rows.Count, C).End(-4162).Row
Application.ScreenUpdating = False
For R = 5 To LastRow
    Cells(R, C + 1) = Cells(R, C) & "," 
Next
Application.ScreenUpdating = True
End Sub

VBA code to add comma at the end in Excel

  • Press F5 to run the code.
  • This is the output.


How to Add a Comma at the End of Numbers in Excel

Steps:

  • Select the entire data range.
  • Go to the Home tab and in Number, click Comma Style.

How to Add Comma at the End of Numbers in Excel

 

  • Press CTRL + 1 to open the Format Cells dialog box.
  • Go to Number >> Enter 0 in Decimal Places >> check  Use 1000 Separator (,) >> click OK.

Format cells

  • This is the output.

Read More: How to Apply Excel Number Format in Thousands with Comma


Practice Section

Practice here.

Practice Section


Download Practice Workbook

Download the following practice workbook.


Related Articles


<< Go Back to How to Add Comma in Excel | Concatenate Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Fahim Shahriyar Dipto
Fahim Shahriyar Dipto

Fahim Shahriyar Dipto is a graduate of Mechanical Engineering at BUET. With over 1.5 years of experience at Exceldemy, he authored 70+ articles on ExcelDemy. He has expertise in designing worksheets at You’ve Got This Math. Currently, He is a Team Leader at Brainor. Dipto's passion extends to exploring various aspects of Excel. Beyond tech, he enjoys creating engaging kids' worksheets using Illustrator. A dedicated employee and innovative content developer, He incorporates a commitment to academic excellence and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo