# 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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

#### Richard Schollar

##### MrExcel MVP
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

#### boone

##### New Member
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
5
Views
73
Replies
6
Views
137
Replies
2
Views
38
Replies
13
Views
361
Replies
2
Views
204

1,141,403
Messages
5,706,257
Members
421,435
Latest member
Yoga15

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