heliacalTexan
New Member
- Joined
- Jun 21, 2015
- Messages
- 1
I'm trying to keep a list of titles in alpha order that disregards opening articles (A, An, The), but will still allow the full title to be displayed in another column. (E.g., "The Addams Family" displays in one, but gets shortened to "Addams Family" in the other.)
The display part I've taken care of with a hidden "helper" column. The formula I'm using the lob off the articles works for "The " but won't return correctly for "A " or "An ". Is there something specific to the RIGHT function that doesn't like the letter A?
Does it have anything to do with my "helper column" being column A?
The formula that works correctly removes The, but not A or An, and returns the shortened title is:
=IF(LEFT(B22,2)="A ",RIGHT(B22,LEN(B22)-2),IF(LEFT(B22,3)= "An ",RIGHT(B22,LEN(B22)-3),IF(LEFT(B22,4)="The ",RIGHT(B22, LEN(B22)-4),B22))
The display part I've taken care of with a hidden "helper" column. The formula I'm using the lob off the articles works for "The " but won't return correctly for "A " or "An ". Is there something specific to the RIGHT function that doesn't like the letter A?
Does it have anything to do with my "helper column" being column A?
The formula that works correctly removes The, but not A or An, and returns the shortened title is:
=IF(LEFT(B22,2)="A ",RIGHT(B22,LEN(B22)-2),IF(LEFT(B22,3)= "An ",RIGHT(B22,LEN(B22)-3),IF(LEFT(B22,4)="The ",RIGHT(B22, LEN(B22)-4),B22))