Skip to main content

Add comma after first word in a cell in Excel

Author: Siluvia Last Modified: 2020-02-21

To add a comma after the first word only in a cell, you can use a combination of the REPLACE and the FIND functions in Excel.

How to add comma after the first word in a cell in Excel?

Supposing you have a list of names as the below screenshot shot, and now you only want to add comma after the surname in each cell, you can do as follows step by step to get it down.

Generic Formula

=REPLACE(A1,FIND(" ",A1),0,",")


A1: Represents the cell containing the text you want to add comma after the first word;

How to use this formula?

1. Select a blank cell such as D3 to output the result.

2. Enter the below formula into it and press the Enter key. And then drag the result cell all the way down to apply it to other cells.

=REPLACE(B3,FIND(" ",B3),0,",")

How this formula works?

=REPLACE(B3,FIND(" ",B3),0,",")

  • 1. FIND(" ",B3): The FIND function returns the starting position of space in text string "Doe Jane A". Here the result is 4, which means that the first space is in the 4th position in "Doe Jane A".
  • 2. REPLACE(B3,4,0,","): Here use the REPLACE function to add a comma to the 4th positon in "Doe Jane A" and finally get the result as Doe, Jane A.

Related functions

Excel REPLACE function
The Excel REPLACE function in Excel can help you to find and replace characters based on given location from text string with a new text.

Excel FIND function
The Excel FIND function is used to find a string within another string, and returns the starting position of the string inside another one.

Related formulas

Add a specific character before each word in a cell
This article explains how to add a specific character before each word in a cell with formula in Excel.

Separate numbers from units of measurement
This article explains how to use formula to separate numbers from unites of measurement.

Split text and numbers in a cell in Excel
If you want to split text and numbers in a cell into different column cells with formulas, this formula tutorial will do you a favor.

Split Text String At Specific Character In A Cell In Excel
This tutorial explains how to split texts string at a specific character into separate column cells with formulas in Excel.

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...


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