Move a Leading “The” to the End of Book Titles in Excel
Question details
Alphabetize book titles without counting a leading “The,” while leaving titles with “the” elsewhere unchanged.

- 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.
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.
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.
In cell B1, enter =IF(LEFT(A1,4)="The ",MID(A1,5,LEN(A1))&", The",A1).
Select B1 and drag its fill handle down through the last row of your title list.
Select the entire table, including the original titles and helper column. Choose Data > Sort, select the helper column, and sort A to Z.

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. Open the workbook: Open WPS Spreadsheets and use Open to select your workbook.
- 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. Fill down: Select B1 and drag the fill handle down to apply the formula to the remaining titles.
- 4. Sort the table: Select the full table, then use Data > Sort to sort the helper column from A to Z.

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.




