ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Ignore "a(n)", "the" in A-Z sort (https://www.excelbanter.com/excel-discussion-misc-queries/119162-ignore-n-z-sort.html)

jmj713

Ignore "a(n)", "the" in A-Z sort
 
I'm sure it's easy, but I can't find this anywhere. I need to sort, ignoring
A, AN, THE, so everythging is in the correct alphabetical order. Any help?

Gord Dibben

Ignore "a(n)", "the" in A-Z sort
 
A Bob Phillips suggestion from Nov. 13th

Create a helper column and strip leading The and A and An,

=Substitute(Substitute(Substitute(A1,"The ",""),"A ",""),"An","")

Sort on the stripped column.


Gord Dibben MS Excel MVP

On Thu, 16 Nov 2006 16:44:02 -0800, jmj713
wrote:

I'm sure it's easy, but I can't find this anywhere. I need to sort, ignoring
A, AN, THE, so everythging is in the correct alphabetical order. Any help?



jmj713

Ignore "a(n)", "the" in A-Z sort
 
Create a helper column and strip leading The and A and An,

But is it possible for them to remain, but still be sortable, just ignoring?

David Biddulph

Ignore "a(n)", "the" in A-Z sort
 
They will remain in the original column. Select all the relevant columns
(including the original and the helper column), sort by the helper column,
and that will sort the original ignoring the bits you've stripped out.
--
David Biddulph

"jmj713" wrote in message
...
Create a helper column and strip leading The and A and An,


But is it possible for them to remain, but still be sortable, just
ignoring?





All times are GMT +1. The time now is 07:08 AM.

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