Sort Movie Titles Without Leading Articles in Excel
Question details
Sort movie titles alphabetically while ignoring a leading The or A.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A movie list needs to be sorted by the meaningful part of each title while retaining the original title text.
- Observed behavior
- The desired order treats titles such as The Matrix as if they began with Matrix.
Identify the column containing the movie titles and add an empty column beside your data for the sort keys. The example below assumes the first title is in C3; adjust the cell reference to match your sheet.
Sort by a helper column that removes leading articles
Use this method to sort the full movie list while keeping the original titles unchanged.
Enter a heading such as Sort Key in an empty column next to the movie data.
In the helper cell on the first movie row, enter =REPLACE(C3,1,4*(LEFT(C3,4)="The ")+2*(LEFT(C3,2)="A "),""). Replace C3 with the cell containing that row's title.
Select the formula cell and drag its fill handle down through the remaining movie rows.
Select the full movie data, including the helper column and any related fields. Choose Data > Sort, select Sort Key, and sort A to Z. If prompted, choose to expand the selection so each row stays together.

Sort Movie Titles by a Helper Column in WPS Office
Use WPS Spreadsheets to create a sort key that ignores leading The or A, then sort the list while preserving the original movie titles.
- 1. Open the movie list: Open WPS Spreadsheets and select your movie workbook.
- 2. Create a helper column: Add a Sort Key heading in an empty column next to your data.
- 3. Enter and fill the formula: In the first movie row, enter =REPLACE(C3,1,4*(LEFT(C3,4)="The ")+2*(LEFT(C3,2)="A "),"") using your title cell in place of C3. Drag the fill handle down the column.
- 4. Sort the list: Select the complete movie list, including the helper column, then use Data > Sort to sort by Sort Key in ascending order.

Frequently Asked Questions
Will the helper formula change my original movie titles?
No. The formula creates a separate sort key. The original title remains in its existing cell.
Can I hide the helper column after sorting?
Yes. Right-click the helper column header and choose Hide. The sorted rows remain in their current order.
Does the formula ignore a leading An?
No. The example removes only The followed by a space or A followed by a space. A title beginning with An is sorted with An included.
How do I keep movie details together when sorting?
Select the entire data range before choosing Data > Sort, or choose to expand the selection if Excel prompts you. Sort by the helper column rather than sorting that column alone.




