Function Problems

Move a Word or Phrase to the End of a Cell in Excel

Nimra MalikNimra Malik Dec 2, 2026 868 views

Question details

Move the phrase (Miss) from within a name to the end of the cell and remove extra spaces.

How to Move a Word or Phrase to the End of a Cell in Excel
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).
Before you start

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

Solution 1Recommended

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.

1
Enter the formula

Select an empty cell such as B1 and enter =TRIM(SUBSTITUTE(A1,"(Miss)",""))&" (Miss)".

2
Check the result

Press Enter. For example, Jane (Miss) Doe becomes Jane Doe (Miss) in B1.

3
Apply it to other rows

Select B1 and drag the fill handle down alongside the other names to copy the formula.

Move the phrase with SUBSTITUTE and TRIM
Check the source text: The formula adds (Miss) even if it is absent from the original cell. SUBSTITUTE is case-sensitive and removes every exact occurrence of (Miss).
Work with text in WPS Spreadsheets

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. 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and locate the cell containing the name.
  2. 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. 3. Apply it to other names: Press Enter, then drag the formula cell's fill handle down to cover the remaining rows.
  4. 4. Save the workbook: Use File > Save or Save As to save the updated workbook in your preferred supported format.
Move a phrase within a cell using a formulaClean extra spaces with TRIMCompatible with Microsoft Excel XLS and XLSX filesApply the same formula to multiple rows
microsoft office alternative - wps office

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