Sorting alphanumeric smallest value to largest

steventhibault

New Member
Joined
Mar 14, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Untitled Spreadsheet
I have 20,000+ rows of data that I need to sort based on Alphanumeric value. Sorting largest to smallest does not produce the outcome I need. See example in red. I need it to sort MT-12, MT-32, MT-63, etc... Is there a macro or easy way to do this without a large nested formula and multiple steps?

Product SeriesMC-330a288
Product SeriesMC-400a289
Product SeriesMINI-LINE298
Product SeriesMT-12299
Product SeriesMT-150300
Product SeriesMT-225301
Product SeriesMT-32302
Product SeriesMT-400303
Product SeriesMT-63304
Product SeriesMT-800305
Product SeriesMT-95306
Product SeriesNAB307
Product SeriesODE-3308
 

Attachments

  • 2023-03-14 14_30_50-Window.jpg
    2023-03-14 14_30_50-Window.jpg
    93.2 KB · Views: 8

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
you need to put a leading zero in front of your 2 digit, and two leading zeros in front of the 3 digit numbers.
you can do that with SUBSTITUTE("ABC-1","-", "-00") (I think that is the correct syntax, but I hope you get the idea, I'll post better in a minute.)
 
Upvote 0
Yes, the above syntax is correct. But, this formula does not take into consideration the records with an "a" at the end or the one with non numerals in the string:
Book1
ABCD
4Product SeriesMT-12299MT-012
Sheet4
Cell Formulas
RangeFormula
D4D4=SUBSTITUTE(B4,"-","-0")
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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