Move a Word or Phrase to the End of a Cell in Excel
Question details
Move the phrase (Miss) from within a name to the end of the cell and remove extra spaces.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains names with (Miss) in the middle, and the phrase should appear at the end instead.
- Observed behavior
- The desired result is a name followed by a single space and (Miss).
Identify the cell containing the original text and choose an empty cell for the formula. The example below assumes the original text is in A1 and contains (Miss).
Move the phrase with SUBSTITUTE and TRIM
Use a formula to remove (Miss) from its original position, clean the spacing, and add it at the end.
Select an empty cell such as B1 and enter =TRIM(SUBSTITUTE(A1,"(Miss)",""))&" (Miss)".
Press Enter. For example, Jane (Miss) Doe becomes Jane Doe (Miss) in B1.
Select B1 and drag the fill handle down alongside the other names to copy the formula.

Move the phrase only when it is present
Use this version when some cells may not contain (Miss) and should remain unchanged.
Move a phrase to the end of a cell in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use SUBSTITUTE and TRIM to reposition (Miss) and tidy the spacing.
- 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and locate the cell containing the name.
- 2. Enter the formula: In an empty cell such as B1, enter =TRIM(SUBSTITUTE(A1,"(Miss)",""))&" (Miss)", replacing A1 with the source cell if needed.
- 3. Apply it to other names: Press Enter, then drag the formula cell's fill handle down to cover the remaining rows.
- 4. Save the workbook: Use File > Save or Save As to save the updated workbook in your preferred supported format.

Frequently Asked Questions
How do I move a different phrase to the end of the cell?
In the formula, replace both instances of (Miss) with the exact phrase you want to move, keeping the space before the phrase in the final quoted text.
What happens if a cell does not contain (Miss)?
The basic formula still adds (Miss). To leave that cell unchanged, use =IF(ISNUMBER(FIND("(Miss)",A1)),TRIM(SUBSTITUTE(A1,"(Miss)",""))&" (Miss)",A1).
Can I replace the original names with the formula results?
Copy the result cells, select the original cells, and use Paste Special > Values. This replaces the original text with the calculated results.
Does the formula distinguish between uppercase and lowercase text?
Yes. SUBSTITUTE matches the exact capitalization of (Miss), so it will not remove a differently capitalized version such as (miss).




