Function Problems

Move a Leading “The” to the End of Book Titles in Excel

Chanuka GeekiyanageChanuka Geekiyanage Nov 18, 2026 869 views

Question details

Alphabetize book titles without counting a leading “The,” while leaving titles with “the” elsewhere unchanged.

Move a Leading “The” to the End of Book Titles in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A book list needs a sortable version of each title, such as “Big Sleep, The” for “The Big Sleep.”
Observed behavior
Titles beginning with “The ” appear in inverted form for sorting, while all other titles remain unchanged.
Before you start

Identify the column containing the titles and insert an empty helper column next to it. The example assumes titles start in A1; adjust the cell reference if your list has a header.

Solution 1Recommended

Use a helper column to rearrange and sort titles in Excel

Create a sortable version of each title while keeping the original title in a separate column.

1
Enter the formula

In cell B1, enter =IF(LEFT(A1,4)="The ",MID(A1,5,LEN(A1))&", The",A1).

2
Fill the column

Select B1 and drag its fill handle down through the last row of your title list.

3
Sort the full list

Select the entire table, including the original titles and helper column. Choose Data > Sort, select the helper column, and sort A to Z.

Use a helper column to rearrange and sort titles in Excel
How the match works: The formula checks for “The” followed by a space at the start of a title. Excel's comparison is case-insensitive, and the rearranged ending is written as “The.”
Sort titles in WPS Spreadsheets

Alphabetize Book Titles in WPS Spreadsheets

Use the same helper-column formula in WPS Spreadsheets to move a leading “The” and sort titles while retaining the originals.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your workbook.
  2. 2. Add the formula: If titles start in A1, enter =IF(LEFT(A1,4)="The ",MID(A1,5,LEN(A1))&", The",A1) in B1.
  3. 3. Fill down: Select B1 and drag the fill handle down to apply the formula to the remaining titles.
  4. 4. Sort the table: Select the full table, then use Data > Sort to sort the helper column from A to Z.
Sort book titles without counting a leading “The”Open and edit Microsoft Excel XLSX and XLS filesKeep original titles alongside sortable versionsUse familiar spreadsheet formulas and sorting controls
microsoft office alternative - wps office

Frequently Asked Questions

Will the formula change a title with “the” in the middle?

No. The LEFT(A1,4) test checks only the first four characters, so a title such as “Gone with the Wind” stays unchanged.

Does the formula match lowercase “the”?

Yes. Excel's text comparison is case-insensitive, so a title starting with “the ” is also rearranged, with “The” at the end.

What if my titles start in row 2?

Enter the formula in B2 and replace both references to A1 with A2, then fill the formula down.

How can I sort without losing the original titles?

Keep the original titles in column A and the formula results in column B. Select both columns before using Data > Sort on the helper column.