Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brad
 
Posts: n/a
Default Sort - alphanumeric.

I have numerical data with alphabetical prefixes in a column.

This is what I get when I sort:
C1,C10,C2,C8,R1,R10,R11,R2

This is what I want when I sort:
C1,C2,C8,C10,R1,R2,R10,R11.

How can I do this?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default Sort - alphanumeric.

You need to extract the numbers into ahelp column and sort by the help
column, if indeed you only have a letter in the string you can use

=--RIGHT(A1,LEN(A1)-1)

copy down, select both columns and sort by the help column


--

Regards,

Peo Sjoblom

"Brad" wrote in message
...
I have numerical data with alphabetical prefixes in a column.

This is what I get when I sort:
C1,C10,C2,C8,R1,R10,R11,R2

This is what I want when I sort:
C1,C2,C8,C10,R1,R2,R10,R11.

How can I do this?



  #3   Report Post  
David McRitchie
 
Posts: n/a
Default Sort - alphanumeric.

Hi Brad,
I guess Peo meant if you only have the same letter in front
of each cell. Some additional suggestions might be found in
http://www.mvps.org/dmcritchie/excel/sorttcp.htm
When asking a question you want to include a representation
of what you would actually be working with.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Peo Sjoblom" wrote in message ...
You need to extract the numbers into ahelp column and sort by the help
column, if indeed you only have a letter in the string you can use

=--RIGHT(A1,LEN(A1)-1)

copy down, select both columns and sort by the help column


--

Regards,

Peo Sjoblom

"Brad" wrote in message
...
I have numerical data with alphabetical prefixes in a column.

This is what I get when I sort:
C1,C10,C2,C8,R1,R10,R11,R2

This is what I want when I sort:
C1,C2,C8,C10,R1,R2,R10,R11.

How can I do this?





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 alphanumeric entries by number in excel beasleyb Excel Worksheet Functions 1 October 27th 05 10:17 PM
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM
Alphanumeric Sort Ray Excel Discussion (Misc queries) 5 May 20th 05 08:02 PM
Alphanumeric Sort Arturo Excel Discussion (Misc queries) 3 March 2nd 05 06:19 PM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM


All times are GMT +1. The time now is 05:16 AM.

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"