sort only based on number

amir0914

New Member
Joined
Jan 7, 2017
Messages
29
Office Version
  1. 2016
Platform
  1. Windows
Hi guys, I have a lot of text with number in coulmn "A" and I need a way to sort column with only number, as below image:

11i1x6v.jpg
[/IMG]
WMQIDjD

WMQIDjD

can someone help me?
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
If your data starts in A2, put the following formula in B2

=--MID(A2,3,LEN(A2))

Copy down



Sort columns A and B with reference to column B
 
Upvote 0
I would use a helper column to strip out the numbers, then sort on that.

For example, if ALL of your data involves exactly two (never more, never less) letters, followed by numbers, try

=mid(C1,3,10)

and copy down as far as required.
This assumes none of the codes will contain strings of digits longer than 10 characters - adapt as required.

Then select all your data, both column C and the helper column, but using the helper column as your sort key.
 
Upvote 0

Forum statistics

Threads
1,223,727
Messages
6,174,148
Members
452,547
Latest member
Schilling

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