Sorting alphanumeric values

rypi

New Member
Joined
Oct 27, 2008
Messages
2
Hi All,

I have a column that has numbers and alphanumeric values. For instance:

254
18
3133
ABP10
SEP14
897
WN231

I would like to have them sort like this:
18
254
897
3133
ABP10
SEP15
WN231

If I change the cell formats to a number it almost works, however excel is seeing the SEP15 value as a date and converting it to a number. SEP15 gets converted to 39706. Is there anyway to preserve the values and still have it sort as shown?

Thanks in advance.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi & Welcome to the Board!

In an adjacent (empty) column use the formula:

=REPT(" ",5-LEN(A1))&A1

copied down as far as you have data. Then Sort your both columns based on this new formula column (ascending and sort as text).
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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