#1   Report Post  
Posted to microsoft.public.excel.misc
JLW
 
Posts: n/a
Default alphanumeric sort

I would like to sort values for numbered connectors such as C1, C2, C3,
....... C200. However, excel is sorting it as C1, C100, C11, C123, etc. How
do I change this???
  #2   Report Post  
Posted to microsoft.public.excel.misc
Daniel CHEN
 
Posts: n/a
Default alphanumeric sort

I do not think there is any direct way to do it.
You can use code to separate the text part and numerical part and then sort
them.

Something like this:
Suppose all your values in Column A, then
in Column B - extract the text part, "C"
in Column C - extract the numerical part, "2", "22", etc.
Sort by Column B first then Column C.

--
Best regards,
---
Yongjun CHEN
=================================
XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
- - - - www.XLDataSoft.com - - - -
Free Excel-Based Data Processing Tool is Available for Download
Free Excel / VBA Training Materials is Available for Download
=================================
"JLW" wrote in message
...
I would like to sort values for numbered connectors such as C1, C2, C3,
...... C200. However, excel is sorting it as C1, C100, C11, C123, etc.
How
do I change this???



  #3   Report Post  
Posted to microsoft.public.excel.misc
Hans Knudsen
 
Posts: n/a
Default alphanumeric sort

If you always have only one "C" at the left you might want to try this array formula:
(assume your data is in A1:A6)
="C"&SMALL((RIGHT($A$1:$A$6,LEN($A$1:$A$6)-1))*1,ROW(A1))
(hold down Ctrl and Shift while pressing Enter)

Regards
Hans


"JLW" skrev i en meddelelse ...
I would like to sort values for numbered connectors such as C1, C2, C3,
...... C200. However, excel is sorting it as C1, C100, C11, C123, etc. How
do I change 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
sort alphanumeric William Excel Discussion (Misc queries) 4 November 13th 06 11:11 PM
sort alphanumeric data yip New Users to Excel 2 November 18th 05 10:31 PM
Sort - alphanumeric. Brad New Users to Excel 2 October 31st 05 10:11 PM
how can I sort alphanumeric entries by number in excel beasleyb Excel Worksheet Functions 1 October 27th 05 10:17 PM
Alphanumeric Sort Ray Excel Discussion (Misc queries) 5 May 20th 05 08:02 PM


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