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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,224,744
Messages
6,180,696
Members
452,994
Latest member
Janick

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