ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How can I sort text (in excel) while ignoring articles (e.g., the (https://www.excelbanter.com/new-users-excel/75021-how-can-i-sort-text-excel-while-ignoring-articles-e-g.html)

happy1

How can I sort text (in excel) while ignoring articles (e.g., the
 
I work in a library and want to sort lists of CD titles. I want to sort the
list alphabetically while ignoring articles (e.g., the, a, an) when they
appear as the first word in the title.


Nicky

How can I sort text (in excel) while ignoring articles (e.g., the
 

Hi
I don't think you can do this.
what might work is to include the names in an adjacent column and
eliminate the articles, then sort on that.
For example, this formula will eliminate the words "The ", "An " and "A
" from the left of the text in cell A1 (note the addition of a space
after the word in the formula, to prevent all words begining with "A"
being cropped):

=IF(LEFT(A1,2)="A ",RIGHT(A1,LEN(A1)-2),IF(LEFT(A1,3)="An
",RIGHT(A1,LEN(A1)-3),IF(LEFT(A1,4)="The ",RIGHT(A1,LEN(A1)-4),A1)))


--
Nicky


------------------------------------------------------------------------
Nicky's Profile: http://www.excelforum.com/member.php...nfo&userid=312
View this thread: http://www.excelforum.com/showthread...hreadid=518525


Jim Cone

How can I sort text (in excel) while ignoring articles (e.g., the
 
A commercial application by yours truly...
http://www.officeletter.com/blink/specialsort.html
Jim Cone
San Francisco, USA


"happy1"
wrote in message...
I work in a library and want to sort lists of CD titles. I want to sort the
list alphabetically while ignoring articles (e.g., the, a, an) when they
appear as the first word in the title.



All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com