Sort alphanumeric data with - in number

jellevansoelen

New Member
Joined
Mar 1, 2021
Messages
29
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Guys,

Hopefully you can help me with a sort issue.
I have more than 4000 rows with numbers year-number (1990-1).
They randomly in the excel document.
I want to sort on this number. But when I sort, al numbers 1 come be first.

Example:

Book2
E
111990-1
121990-15
131991-1
141991-5
151990-2
161991-14
Sheet1


When i sort:

Book2
E
111990-1
121990-15
131990-2
141991-1
151991-14
161991-5
Sheet1


And what i want is the following sort:

Book2
E
111990-1
121990-2
131990-15
141991-1
151991-5
161991-14
Sheet1


I there a way to do that in Excel?

Tnx
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
With a helper column: format --> YYYY-00 or YYY-000
 
Upvote 0
In an extra column: =LEFT(E11,4)&"-"&TEXT(MID(E11,6,999),"00")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,491
Messages
6,125,111
Members
449,205
Latest member
ralemanygarcia

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