ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   alpha numeric sorting (https://www.excelbanter.com/excel-discussion-misc-queries/245038-alpha-numeric-sorting.html)

Troubled

alpha numeric sorting
 
I have a list of names, a comma, then numbers. How do I sort by the numbers.
example

John Doe,245
jane Doe,123
Robert k,999
Dan Doe,522 Sort to

Jane Doe,123
John Doe,245
Dan Doe,522
Robert K,999

Thanks


Jacob Skaria

alpha numeric sorting
 
You can using a helper column

--With the data in Col A apply the below formula in ColB cell B1 and copy
down.
=0+MID(A1,FIND(",",A1)+1,99)

--This will extract the numbers..Select ColA and ColB.; Sort by ColB. Once
sorted you can remove ColB or keep it hidden...(for future sorts..)

If this post helps click Yes
---------------
Jacob Skaria


"troubled" wrote:

I have a list of names, a comma, then numbers. How do I sort by the numbers.
example

John Doe,245
jane Doe,123
Robert k,999
Dan Doe,522 Sort to

Jane Doe,123
John Doe,245
Dan Doe,522
Robert K,999

Thanks


David Biddulph[_2_]

alpha numeric sorting
 
Data/ Text to columns, with comma as delimiter, then select both columns and
sort by the second column.
--
David Biddulph

"troubled" wrote in message
...
I have a list of names, a comma, then numbers. How do I sort by the
numbers.
example

John Doe,245
jane Doe,123
Robert k,999
Dan Doe,522 Sort to

Jane Doe,123
John Doe,245
Dan Doe,522
Robert K,999

Thanks




LXG

alpha numeric sorting
 
=RIGHT(A1,3)
where A1 equals first data then copy down then sort
assumes all right three characters are numbers


"David Biddulph" wrote:

Data/ Text to columns, with comma as delimiter, then select both columns and
sort by the second column.
--
David Biddulph

"troubled" wrote in message
...
I have a list of names, a comma, then numbers. How do I sort by the
numbers.
example

John Doe,245
jane Doe,123
Robert k,999
Dan Doe,522 Sort to

Jane Doe,123
John Doe,245
Dan Doe,522
Robert K,999

Thanks






All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com