SORT() number in sequence with letter at the end

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
296
Office Version
  1. 365
Platform
  1. Windows
I have source data where some of the same numbers have 1 letter at the end (always at the right). My question is, is there a way to sort it using a sort function where it will be in sequence even there is a letter (see below sample expected output)

Source Data​
Expected output​
204668​
204056​
204056​
204056a​
208223​
204668​
208379​
204668a​
208714​
208223​
208855​
208379​
204056a​
208714​
204668a​
208855​
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Like this?

24 03 06.xlsm
AB
1Source DataExpected output
2204668204056
3204056204056a
4208223204668
5208379204668a
6208714208223
7208855208379
8204056a208714
9204668a208855
Sort
Cell Formulas
RangeFormula
B2:B9B2=SORTBY(A2:A9,LEFT(A2:A9,6))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,744
Messages
6,126,618
Members
449,322
Latest member
Ricardo Souza

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