How to Add Text to End of Cell in Excel (6 Easy Methods)

Method 1 – Utilizing Flash Fill to Add Text to the End of Cell

We have a dataset with a list of employees and their respective ages. We want to add “Years” to the end of each of the cells in column Age.

Utilizing Flash Fill Feature to Add Text to End of Cell

Steps:

  • Write the age in the first cell of the column Age into a new cell to the right of it and add Years. We write 34 Years in cell E5.

E5 is the first cell of the new column Add Text.

Utilizing Flash Fill Feature to Add Text to End of Cell

  • Select cell E6 and press Ctrl + E if you are a Windows user or Command + E if you are a MAC user.

Cell E6 is the second cell of the column Add Text.

Utilizing Flash Fill Feature to Add Text to End of Cell

  • Here’s the result.

Utilizing Flash Fill Feature to Add Text to End of Cell

Read More: How to Add Text to Multiple Cells in Excel


Method 2 – Using the Ampersand (&) Operator

We’ll use the same dataset.

Using Ampersand Operator (&)

Steps:

  • Select cell E5 and enter the following formula.
=D5&" Years"
  • Drag the Fill Handle for the remaining cells of the column.

Using Ampersand Operator (&)

  • Here’s the result.

Using Ampersand Operator (&)

Read More: How to Add a Word in All Rows in Excel


Method 3 – Using Custom Formatting to Add Text to the End of Cell

We want to add ‘Ph.D.’ at the end of every Professor Name.

Using Custom Formatting to Add Text to End of Cell

Steps:

  • Copy the names into another column where you will add ‘Ph.D.’. We copied them to Column C.

Using Custom Formatting to Add Text to End of Cell

  • Select the cells of the new column (we selected range C5:C11).
  • Right-click on them.
  • Select Format Cells.

Using Custom Formatting to Add Text to End of Cell

  • Go to Number and choose Custom.
  • In the space below Type, insert @“ Ph.D.”.
  • Click on OK.

Using Custom Formatting to Add Text to End of Cell

  • Here’s the result.

Using Custom Formatting to Add Text to End of Cell

Read More: How to Add Text to Beginning of Cell in Excel


Method 4 – Utilizing the CONCATENATE Function to Add Text to the End of a Cell in Excel

We’ll use the age dataset from before.

Utilizing CONCATENATE Function to Add Text to End of Cell in Excel

Steps:

  • Select cell E5 and insert the following formula.
=CONCATENATE(D5," Years")
  • Drag the fill handle to the remaining cells of the column.

Utilizing CONCATENATE Function to Add Text to End of Cell in Excel

  • Here’s the result.

Utilizing CONCATENATE Function to Add Text to End of Cell in Excel

Read More: How to Add Text to Cell Without Deleting in Excel


Method 5 – Using the TEXTJOIN Function

We’ll use the same dataset.

Using TEXTJOIN Function

Steps:

  • Select cell E5 and insert the following formula.
=TEXTJOIN(“”,TRUE,D5,” Years”)
  • Drag the fill handle to the remaining cells of the column.

Using TEXTJOIN Function

  • Here’s the result.

Using TEXTJOIN Function

Read More: How to Add Text in the Middle of a Cell in Excel


Method 6 – Applying VBA Code to Add Text to the End of Cell in Excel

We’ll use the same dataset.

Applying VBA Code to Add Text to End of Cell in Excel

Steps:

  • Select the cell range D5:D11.

Cells D5 and D11 are the first and last cells of the column Age, respectively.

Applying VBA Code to Add Text to End of Cell in Excel

  • Press Alt + F11 to open the Visual Basic window.
  • Right-click on Sheet 6 (VBA Code).
  • Choose Insert and select Module.

Applying VBA Code to Add Text to End of Cell in Excel

  • Copy the following code and paste it into the blank space.
'This Code Will Add Text to End of Selected Cells
Sub textatend()
'Declaring Variables
Dim cr As Range
Dim dat As Range
'Assigning Selected Cells To a Variable
Set cr = Application.Selection
'Running Loop to Add Text
For Each dat In cr
    dat.Offset(0, 1).Value = dat.Value & " Years"
Next dat
End Sub

Applying VBA Code to Add Text to End of Cell in Excel

In this code, we assign a value to the variable cr by setting the selected range to it. Also, we use the For loop, which will add the text ‘Years’ to each cell of column Age and insert the result in the next column.

  • Press F5 to run the code.

Applying VBA Code to Add Text to End of Cell in Excel

Read More: How to Add Text to Cell Value in Excel


Practice Section

We have provided a Practice section like below on the right side of every worksheet.

practice section


Download the Practice Workbook


Related Articles


<< Go Back to Excel Add Text to Cell Value | Concatenate Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sowmik Chowdhury
Sowmik Chowdhury

Sowmik Chowdhuri, with a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, serves as a crucial Excel & VBA Content Developer at ExcelDemy. His profound passion for research and innovation seamlessly aligns with his unwavering dedication to Excel. In this role, Sowmik not only skillfully addresses challenging issues but also demonstrates enthusiasm and expertise in gracefully navigating intricate situations, highlighting his steadfast commitment to consistently deliver content of exceptional quality and value. Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo