| |
microsoft.public.excel.misc |
On Sun, 6 Nov 2005 21:57:40 -0600, jds217 >Hi ... >I work in a public library and frequently export lists of books from >My problem in sorting in Excel is this: Our library catalog excludes >Is there any way I can sort on a field in Excel and have it ignore >Thanks! In any event, there are various methods, all of which involve constructing a If there are just a few words to be excluded, and not much change in the list, If there are a larger number of words, then a more general solution could be =IF(COUNTIF(ListOfWords,LEFT(A1,FIND(" ",A1)-1)), ListOfWords is a range where you have listed all of the first words which you VBA solutions are also available. --ron
>our online catalog to Excel, so that I can manipulate the data in
>various ways.
>words like "The" "A" or "An" at the beginning of a title when sorting.
>Excel, however, does not.
>certain words at the beginning of a string?
Brooklyn" cataloged under the "A's" or the "T's"? (or both).
separate list that excludes the initial word, and sorting on this new list.
then a simple, nested IF function as recommended by Rowan will work just fine.
had by using the following formula to construct your "word-stripped" list.
TRIM(MID(A1,FIND(" ",A1)+1,255)),A1)
want excluded. You may either NAME the range, or substitute the reference in
the formula (e.g. Z1:Z10)