Sorting Alphanumeric characters

RahulNa

Board Regular
Joined
Jul 12, 2012
Messages
124
Office Version
  1. 365
Platform
  1. Windows
Hi


The below is a set of data which I have where the sname is sorted in a particular sequence.

Abcd....z0123456789

So the record are sorted first with alphabet character and then by number.

But when I try to sort the same in Excel it doesn't work according to the above order.


S.no.SNAM
1
AJ6VP6

<tbody>
</tbody>
2
AJ6VQ0

<tbody>
</tbody>
3
AJ6VZ7

<tbody>
</tbody>
4
AJ6V01

<tbody>
</tbody>
5
AJ6V02

<tbody>
</tbody>

<tbody>
</tbody>


Please Suggest how to sort according to the given order.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
not sure I am following as the 5th character changes from letters to numbers so that may be what is throwing it, but appears to sort as desired if you format the cells as text
 
Upvote 0
Hi Eric,

Thank You for the response.

I have more than 15000 unique records like that, and I don't want to mess up the order.

I even tried to break the records individually in different column and tried to sort it but still the same issue.

It's sorting the numbers first and then sorting the alphabets.
 
Upvote 0

Forum statistics

Threads
1,214,421
Messages
6,119,392
Members
448,891
Latest member
tpierce

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top