Skip to main content

Excel Formula: Add text in middle

Sometimes you need to add the same text in a certain position to a list of string in Excel. For quickly solving this job, there are two formulas provided in Excel.
doc abbreviate words 1

Formula 1 Combine LEFT function and MID function

Generic formula:

LEFT(txt,n1) & "n_txt" & MID(txt,n2,255)

Arguments

Txt: the text string that you use.
N1: the number of characters extracted from left side of the string.
N2: the position that you want to extract from right side of the string.
N_txt: the text you want to add.

How this formula work

Example: to add text “-“ to the forth character in cell B3, please use below formula:

=LEFT(B3,3) & "-" & MID(B3,4,255)

Press Enter key.
doc add text in middle 2

Explanation

LEFT function used to extract characters from left side of the text string. Here the formula LEFT(B3,3) extracts 3 characters from left side of the text string in cell B3.

MID function extracts characters from a specified position of the text string. The formula MID(B3,4,255) extracts 255 characters (the maximum length of the cell is 255 characters) from the forth position of the text string in the cell B3.

Lastly, using “&” to concatenate left side characters, “-“ and right side characters.

Formula 2 REPLACE function

Generic formula:

REPLACE(txt,n,0,"n_txt")

Arguments

Txt: the text string that you use.
N: the position that you want to add new text.
N_txt: the text you want to add.

How this formula work

Example: to add text “$“ to the fifth character in cell B3, please use below formula:

=REPLACE(B3,5,0,"$")

Press Enter key.
doc add text in middle 3

Explanation

REPLACE function generally used to find and replace text specified by a certain position in a given text string with a new one. But sometimes, when the argument num_char is 0, it can be used to add a new text in the middle. Here the formula =REPLACE(B3,5,0,"$") adds “$” in the fifth position of the text string in cell B3.

Sample File

doc sampleClick to download sample file


Relative Formulas


Relative Functions

  • FIND function
    Find the position of a character.
  • REPLACE function
    Find and replace characters based on given location from text string with a new text.
  • LEFT function
    Extract characters from left side of text.
  • MID function
    Extract part of text from a cell value based on the location and length.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 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 VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy 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 Columns to Select Same & Different Cells ...
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 Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations