#1   Report Post  
Chronos
 
Posts: n/a
Default sorting alphanumeric

hello, I hope this problem I am having can be simply solved....

I need to sort all in one column the following sequence ( I use it for
managing keys that are made. Subsequent keys are enumerated by adding the
next sequential letter)
ex: 101, 102,102a,102b,103
Current any sort I use sorts it this way :101, 102, 103, 102a, 102b

What can I do to sort chronologically with the letters in the same column so
the result looks like this:
101, 102,102a,102b,103

If I add a key to 101, it needs to sort this way:
101,101a,102,102a,102b,103

can any one help, thank you
  #2   Report Post  
Héctor Miguel
 
Posts: n/a
Default

hi, Chronos !

... I hope this problem... can be simply solved...
I need to sort all in one column the following sequence... ex: 101, 102,102a,102b,103
Current any sort I use sorts it this way :101, 102, 103, 102a, 102b
... to sort chronologically with the letters in the same column so the result looks like this:
101, 102,102a,102b,103
If I add a key to 101, it needs to sort this way: 101,101a,102,102a,102b,103


one -possible- way and if it's ok for you to 'have to' use a 'helper' column...
assuming first key in [b2], sort by a column with a formula like the following:
=sumproduct(value(code(mid(b2,choose(1+(len(b2)=4) ,{1;2;3},{1;2;3;4}),1))&rept("0",choose(1+(len(b2) =4),{7;5;3},{7;5;3;0}))))

if you are planing to generate keys including letters for the first 3 characters...
you might have to change the 'zero' array from: 7;5;3 to: 10;7;4

hth,
hector.


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
Sorting alphanumeric numbers maurice.centner Excel Discussion (Misc queries) 2 May 6th 05 02:00 AM
Sorting alphanumeric Joanne Excel Discussion (Misc queries) 3 April 28th 05 10:07 PM
sorting an alphanumeric list - please someone help! Joanne Excel Discussion (Misc queries) 1 April 27th 05 03:41 PM
alphanumeric sorting dancefle Excel Discussion (Misc queries) 3 April 25th 05 02:30 AM
sorting number in ascending order Janice Lee via OfficeKB.com Excel Discussion (Misc queries) 2 April 8th 05 10:31 PM


All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"