Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / July 2008

Tip: Looking for answers? Try searching our database.

Sorting by only numbers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George - 21 Jul 2008 13:56 GMT
How to sort ignoring letters, Excel 2003
ny only containing numbers,
For example
default sorting                        wanted sorting
AA101                                   AC02
AB99                                     AB99
AC02                                     AA101
Thanks
George
Dave Peterson - 21 Jul 2008 14:07 GMT
You'll have to separate the numbers into a different column.

If all the letters are exactly two digits, you could use:
=--mid(a1,3,255)

(the -- converts the text that =mid() produces to a real number.)

Then you can sort your data by using this helper column.

> How to sort ignoring letters, Excel 2003
> ny only containing numbers,
[quoted text clipped - 5 lines]
> Thanks
> George

Signature

Dave Peterson

George - 24 Jul 2008 13:19 GMT
Thank you for your response,

Unfortunately the letters ranging from 2 to 8 Approx, Is there a macro for
it?

> You'll have to separate the numbers into a different column.
>
[quoted text clipped - 14 lines]
>> Thanks
>> George
George - 24 Jul 2008 13:20 GMT
Thank you for your response,

Unfortunately the letters ranging from 2 to 8 Approx, Is there a macro for
it?

> You'll have to separate the numbers into a different column.
>
[quoted text clipped - 14 lines]
>> Thanks
>> George
Dave Peterson - 26 Jul 2008 03:37 GMT
You could use a formula like:
=--RIGHT(A1,LEN(A1)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))+1)
to get the rightmost group of digits.

> You'll have to separate the numbers into a different column.
>
[quoted text clipped - 18 lines]
>
> Dave Peterson

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.