LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
David McRitchie
 
Posts: n/a
Default

Actually you don't want to pick off a trailing A on a word, so make that

=SUBSTITUTE(SUBSTITUTE(" " & A20 & " ", " The "," ")," A "," ")

note the space inserted before and after the cell to be tested
and the space before and after the words that are to be removed
and the single space for the replacement. Accept the spaces
remaining when finished because trimming would add another
nesting level.

When you determine all of the words you want to remove and
depending on their location and removal of punctuation you might
be looking at a user defined function since you can only go to
seven nesting levels in a worksheet formula.

But the original question may have only be removal of a
leading The and a Leading A.

=SUBSTITUTE(SUBSTITUTE("^" & A20 & "^", "^The "," "),"^A ","^")
again only used for sorting so it doesn't matter what it looks like.

Might be more suitable for the use of Regular Expressions.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Bob Phillips" wrote in message ...
Create a helper column and add this formula to it

=SUBSTITUTE(SUBSTITUTE(A20,"The ",""),"A ","")

Then sort both columns by the helper column

--
HTH

Bob Phillips

"Ronnie" wrote in message
...
ok...I have complied a list of my DVD collection and what I am trying to

do
is alphabatize the list. What problem I have when doing it is when I

click
sort button it always groups words like "A" and "The". I want it to

ignore
those words and focus on the word after "A" or "The"





 
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
how do i do an alphabetical list of songs for a booklet melodie Excel Discussion (Misc queries) 6 June 1st 05 03:05 PM
Alphabetical list of Numbers are not correct! scott Excel Discussion (Misc queries) 3 February 2nd 05 04:39 PM
Extracting Values on one list and not another B Schwarz Excel Discussion (Misc queries) 4 January 7th 05 01:48 PM
Make Data validation List Alphabetical?? Slumbering Gorilla Excel Worksheet Functions 6 November 19th 04 09:49 PM
creating pages from an alphabetical list Andrew Excel Worksheet Functions 1 November 19th 04 02:45 AM


All times are GMT +1. The time now is 08:54 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"