How to Add Text to Beginning of Cell in Excel (7 Quick Tricks)

Method 1 – Using Ampersand(&) Operator to Add Text to the Beginning of a Cell in Excel

Steps:

  • Double-click on cell C5 and enter the following formula:
="Passed-"&B5

Use Ampersand(&) Operator to Add Text to Beginning of Cell in Excel

  • Press Enter and the text will be added before the marks.

Read More: How to Add Text in Excel Spreadsheet


Method 2 – Applying Excel CONCAT Function to Add Text to the Beginning of the Cell

Steps:

  • Double-click on cell C5 and enter the following formula:
=CONCAT("Passed-",B5)

Add Text to Beginning of Cell Using Excel CONCAT Function

  • Press Enter.
  • The text will be added to cell C5.
  • Drag the Fill Handle to fill in the rest of the cells.
  • All the cells will now have the text added to the beginning.

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


Method 3 – Adding Text to the Beginning of Cell with Excel Flash Fill Feature

Steps:

  • Double-click on cell C5 and enter the text before the existing data.
  • Press Enter.

Apply Excel Flash Fill Feature

  • Go to the Data tab on top of your screen.
  • Under the Data Tools section select Flash Fill.

Apply Excel Flash Fill Feature

  • Excel will recognize the text in cell C5 and copy it to all the cells below.

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


Method 4 – Using REPLACE Function to Add Text to the Beginning of a Cell in Excel

Steps:

  • Double-click on cell C5 and enter the following formula:
=REPLACE(B5,1,0,"Passed-")

Using REPLACE Function

  • Press Enter.
  • Excel will insert the text before the marks.

Using REPLACE Function

  • Copy the REPLACE function to the cells below by dragging the Fill Handle.

  • The text will add to all the cells below.

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


Method 5 – Applying TEXTJOIN Function

Steps:

  • Select cell C5 and enter the following formula:
=TEXTJOIN(": ",TRUE,"Passed",B5)

Apply TEXTJOIN Function

  • Press Enter.
  • The extra text will be added to cell C5.
  • Drag the Fill Handle.

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


Method 6 – Using Format Cells Feature to Add up to 2 Letters of Text to the Beginning of the Cell

Steps:

  • Copy the value of cell B5 to cell C5.

Utilizing Format Cells Feature to Add up to 2 Letters Text to Beginning of Cell

  • Select cell C5, go to the Home tab and navigate to the Number section.
  • Select the More Number Formats option from the drop-down.

Utilizing Format Cells Feature to Add up to 2 Letters Text to Beginning of Cell

  • A new window Format Cells .Go to Custom.
  • In the box below Type, insert the following formula:
\OK#
  • Press OK.

Utilizing Format Cells Feature to Add up to 2 Letters Text to Beginning of Cell

  • Excel will add the extra text before the data in cell C5.

  • Repeat the methods for the other data cells.

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


Method 7 – Using Excel VBA to Add Text to the Beginning of the Cell

Steps:

  • Go to the Developer tab and select Visual Basic.

Use Excel VBA to Prepend Text to the Beginning of Cell

  • In the new Visual Basic window, go to Insert and click Module.

Use Excel VBA to Prepend Text to the Beginning of Cell

  • In the Module1 window, enter the following VBA code:
Sub AddTextBefore()
Dim cls As Range
For Each cls In Application.Selection
If cls.Value <> "" Then cls.Offset(0, 1).Value = "Passed-" & cls.Value
Next
End Sub

Use Excel VBA to Prepend Text to the Beginning of Cell

  • Close the VBA window and select cell B5, go to the View tab.
  • From the Macros drop-down select View Macros.

Use Excel VBA to Prepend Text to the Beginning of Cell

  • Click on Run.

Use Excel VBA to Prepend Text to the Beginning of Cell

  • The VBA code will run and add the desired text before the data.

  • Select the cells from B6 to B10 and Run the previous macro.

  • The macro will insert the additional text into all the cells.

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


Download Practice Workbook


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Nazmul Hossain Shovon
Nazmul Hossain Shovon

Nazmul Hossain Shovon, a BUET graduate in Naval Architecture and Marine Engineering, embarked on his career with 8 months dedicated to the Exceldemy project's triumph. Transitioning into a Software Developer role, he specialized in web add-in development. At Exceldemy, he authored about 125 blog articles and solved many visitors’ problems, refining his writing skills and delving into Excel-related topics. With a primary passion for programming and software development, Shovon continually explores new horizons, fostering professional growth in his... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo