Sorting Alphanumeric Data

Scrappy666

Board Regular
Joined
Jul 6, 2012
Messages
215
Hi all,

I was hoping someone could help as the below is proving to be a nightmare!!

At work we have a large number of references which all begin with HTR-
We now have booking 100,000 (HTR-100000), and when we try to sort this list of bookings, HTR-100000 is appearing mid way down the list.
(Before HTR-10000 and after HTR-09999).

We would like this to be sorted so it ignores the HTR- and sorts the references numerically.
Can this be done?


We currently have the information in a pivot, sorting it within here would be great!

Thanks.
Dan.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Add a helper column to extract the number only and sort by that column.

Say it's column A that has those values, beginning in Row 2 (Row 1 is headers)
In B2 and filled down, put

=REPLACE(A2,1,4,"")+0

And fill down.

Then sort by column B.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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