Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dukemeiser
 
Posts: n/a
Default Sort by number not by letter (C1, A2, B3, D4)


I have numbers with a letter in front. I want to sort them by the
number and ignore the letter. The only way Excel does it is by the
letter (unless I'm missing something). Here is an example of my list:

A541
A586
A600
A618
A660
B299
B327
B416
B421
B501
B547
B567
L917
M125
N207
P196
PI93
T279
T284
T312
V180
V324
X327
X341
Z315
Z318
Z340
Z372

As you can see, it sorts it by the letter first, then number. I want
it to sort by the number first, then the letter. Does anyone know how
I can do this? Thanks!


--
dukemeiser
------------------------------------------------------------------------
dukemeiser's Profile: http://www.excelforum.com/member.php...o&userid=34141
View this thread: http://www.excelforum.com/showthread...hreadid=539114

  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default Sort by number not by letter (C1, A2, B3, D4)

One of your entries has two leading alphas.
That complicates things. With only one leading alpha, you can
enter the following formula in an adjoining column, fill down and
then sort both columns using the new column as the sort column.
Then clear the new column... =RIGHT(B5,LEN(B5)-1)
--
Jim Cone
San Francisco, USA
http://www.officeletter.com/blink/specialsort.html


"dukemeiser"
wrote in message
I have numbers with a letter in front. I want to sort them by the
number and ignore the letter. The only way Excel does it is by the
letter (unless I'm missing something). Here is an example of my list:

A541
A586
A600
A618
A660
B299
B327
B416
B421
B501
B547
B567
L917
M125
N207
P196
PI93
T279
T284
T312
V180
V324
X327
X341
Z315
Z318
Z340
Z372

As you can see, it sorts it by the letter first, then number. I want
it to sort by the number first, then the letter. Does anyone know how
I can do this? Thanks!
--
dukemeiser

  #3   Report Post  
Posted to microsoft.public.excel.misc
dukemeiser
 
Posts: n/a
Default Sort by number not by letter (C1, A2, B3, D4)


Hey, it worked! Thanks a million!


--
dukemeiser
------------------------------------------------------------------------
dukemeiser's Profile: http://www.excelforum.com/member.php...o&userid=34141
View this thread: http://www.excelforum.com/showthread...hreadid=539114

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default Sort by number not by letter (C1, A2, B3, D4)

I'm glad as the formula to handle 1 or 2 leading characters is six times longer.
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"dukemeiser"
wrote in message
Hey, it worked! Thanks a million!
--
dukemeiser

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 can I sort multiple times Sorting data Excel Worksheet Functions 2 February 9th 06 05:22 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Converting a number to a letter in Excel Duke Carey Excel Worksheet Functions 0 November 16th 05 10:16 PM
How do I sort alphabetically by last letter in Excel? andrewcodd Excel Discussion (Misc queries) 3 July 27th 05 04:09 PM
Get Column Letter from Column Number Gary Brown Excel Worksheet Functions 7 June 11th 05 02:08 AM


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