String Sort

macinjosh1

New Member
Joined
Nov 19, 2010
Messages
24
I've got a list of warehouse locations that are a mixed alphanumeric string. For example

A1A1
A1A2
A1A10
A10AA1

So there's always 4 parts, letter, number, letter, number. How can I get this list so that it sorts in order? The letters would be A-Z then AA-ZZ, and the numbers 1 to whatever.

Thanks.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
If you use 2 digit numerals, that will help things sort "AA01AB02" instead of "AA1AB2"

The other part is more annoying, one could us leading spaces " A01 B02" instead of "A01B02"

Another approach would be to use 4 columns and a custom list A,B,C,...,Z,AA,AB,... to sort things properly.

What is the highest potential alphabetic entry? It sounds like it bigger than AA but less than AAA, is there a more precise limit?
 
Upvote 0
The numbers will defiantly be 2 digits, but could get up to 3. I don't see the letters getting passed 2.

I was thinking about putting it into 4 different columns, but how do I pull out each section into a different column if the length is variable?
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

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