Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KSE
 
Posts: n/a
Default Sorting excluding "the"

How do you exclude the word "the" when you want to sort a list of titles that
begin with "The". I want to put in alphabetical order, but don't know how to
sort without the "The" becoming the first word? Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Alex
 
Posts: n/a
Default Sorting excluding "the"

KSE

I am not aware that is a built-in method to do this in Excel. Nonetheless,
this will work.

Suppose your titles are in column A on the spreadsheet i.e. start in A1 then
A2 etc.

In cell B1 type the follwoing formula:

=TRIM(IF(LEFT(A1,3)="The", RIGHT(A1,LEN(A1) - 3) & "," &LEFT(A1,3),A1))

Now drag it down for the all the tiels that you have. This should place the
titles in the format you want e.g.

The Terminator = Terminator, The

Then you can simply sort that column.

I hope this helps.

Alex


"KSE" wrote:

How do you exclude the word "the" when you want to sort a list of titles that
begin with "The". I want to put in alphabetical order, but don't know how to
sort without the "The" becoming the first word? Any help would be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Steve Yandl
 
Posts: n/a
Default Sorting excluding "the"

Alex,

A very similar question was posted yesterday by poster "kcg727", except that
kcg727 wanted to also trim titles beginning with "A". My approach was
similar to your function except I included spaces after "The" and "A" so we
didn't end up mangling a title beginning with a word like Theater.

Steve


"Alex" wrote in message
...
KSE

I am not aware that is a built-in method to do this in Excel. Nonetheless,
this will work.

Suppose your titles are in column A on the spreadsheet i.e. start in A1
then
A2 etc.

In cell B1 type the follwoing formula:

=TRIM(IF(LEFT(A1,3)="The", RIGHT(A1,LEN(A1) - 3) & "," &LEFT(A1,3),A1))

Now drag it down for the all the tiels that you have. This should place
the
titles in the format you want e.g.

The Terminator = Terminator, The

Then you can simply sort that column.

I hope this helps.

Alex


"KSE" wrote:

How do you exclude the word "the" when you want to sort a list of titles
that
begin with "The". I want to put in alphabetical order, but don't know
how to
sort without the "The" becoming the first word? Any help would be
appreciated.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting text that begins with "the" or "a" kcg727 Excel Discussion (Misc queries) 2 February 25th 06 10:44 PM
sorting non contiguous ranges gsh20 Excel Discussion (Misc queries) 1 September 8th 05 04:50 PM
Sorting 1, 1A, 2, 2A, 3, 4, 4A, 4B . . . agc1234 Excel Discussion (Misc queries) 6 May 26th 05 08:02 PM
SORTING question Rebecca New Users to Excel 3 February 24th 05 05:35 PM
Adding a KeyID column for sorting Rebecca New Users to Excel 3 February 20th 05 07:09 PM


All times are GMT +1. The time now is 02:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"