Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jabber
 
Posts: n/a
Default how to sort A to Z AND 0 to 9?

I don't use Excel much.

I would like the following document numbers sorted like this:
AR4714a
AR4714b
AR4714z
AR4714aa
AR4714ab

I'm getting them sorted like this:
AR4714a
AR4714aa
AR4714ab
AR4714b
AR4714z

Is there an easy solution to this?

Thank you,
Jabber


  #2   Report Post  
Dave O
 
Posts: n/a
Default

Using your sample data, and assuming it is in cell A1:A5, enter this
formula in B1:
=LEN(A1)

Copy cell B1 and paste it into B2:B5. This generates the length- the
number of columns- in your document number. Then when you sort, sort
first on column B, and then on column A.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

What is wrong with that order?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jabber" wrote in message
...
I don't use Excel much.

I would like the following document numbers sorted like this:
AR4714a
AR4714b
AR4714z
AR4714aa
AR4714ab

I'm getting them sorted like this:
AR4714a
AR4714aa
AR4714ab
AR4714b
AR4714z

Is there an easy solution to this?

Thank you,
Jabber




  #4   Report Post  
Jabber
 
Posts: n/a
Default

The letters following the number is a revision level for the document. When
we have reached the final letter "z" we go to "aa." I would like these
listed in their sequential order.
AR4714a
AR4714b
....
AR4714z
AR4714aa
AR4714ab

Jabber

"Bob Phillips" wrote:

What is wrong with that order?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jabber" wrote in message
...
I don't use Excel much.

I would like the following document numbers sorted like this:
AR4714a
AR4714b
AR4714z
AR4714aa
AR4714ab

I'm getting them sorted like this:
AR4714a
AR4714aa
AR4714ab
AR4714b
AR4714z

Is there an easy solution to this?

Thank you,
Jabber





  #5   Report Post  
Jabber
 
Posts: n/a
Default

This did not work. Any other solutions?

"Dave O" wrote:

Using your sample data, and assuming it is in cell A1:A5, enter this
formula in B1:
=LEN(A1)

Copy cell B1 and paste it into B2:B5. This generates the length- the
number of columns- in your document number. Then when you sort, sort
first on column B, and then on column A.




  #6   Report Post  
Jabber
 
Posts: n/a
Default

I sorted wrong. This DID resolve my problem.

Thank you so much.

"Dave O" wrote:

Using your sample data, and assuming it is in cell A1:A5, enter this
formula in B1:
=LEN(A1)

Copy cell B1 and paste it into B2:B5. This generates the length- the
number of columns- in your document number. Then when you sort, sort
first on column B, and then on column A.


Reply
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 sort by row instead of by column? PercivalMound Excel Worksheet Functions 7 August 28th 06 10:41 PM
Sort Ascending button - Excel 2003 Ann Scharpf Excel Discussion (Misc queries) 0 May 23rd 05 11:11 PM
How do I sort a column of data and have each data row sort accordi Oedalis Excel Discussion (Misc queries) 1 March 17th 05 11:52 PM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM


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