# Alphanumeric sort order challenge

#### boone

##### New Member
In Excel, I would like to perform an alphanumeric sort of the following data and have the results be in the same sort order:
A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25.

Instead of the traditional left to right, character by character resulting in the following sort order:
A1, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A2, A20, A21, A22, A23, A24, A25, A3, A4, A5, A6, A7, A8, A9.

Any help I could get on this issue would be GREATLY appreciated.

### Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi

One way would be to use a helper column containing the following formula:

=LEFT(A1,1) & TEXT(--RIGHT(A1,LEN(A1)-1),"00")

and then select both columns and sort ascending by the helper column (which will sort in the desired order) which will result in your original column sorting in the desired order.

Make sense?

richard

Thanks Richard. That works!

I didn’t tell you the whole story in the original posting, but I was able to modify your formula to accommodate similar but different data (i.e. AA1, AA2, AA3, etc). It takes a couple extra steps but it works great.

Thanks again,
Ron

Replies
3
Views
84
Replies
10
Views
419
Replies
4
Views
343
Replies
5
Views
241
Replies
3
Views
169

1,218,661
Messages
6,143,753
Members
450,502
Latest member
sakaria_123

### 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.

### Which adblocker are you using?

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

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