General sort question

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,232
Office Version
  1. 2007
Platform
  1. Windows
I have a list of motorcycle model on a worksheet.
I sort them A-Z

In the list are various models that are slightly difference,see example below.

CB 1200
CB 500
CB 600
CB 900

Also
VFR 1200
VR8 800

It sorts the A-Z correctly but why does 1200 come before the lower value numbers ?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
the simple answer is 1 is less than 5, as it is CB makes it a text string so it is purely that, it knows nothing about number sizes
 
Upvote 0
This sort order is A-Z like, so numbers "0" to "9" are seen as text, reading left to right. "1" is for "2" even if it is 100 and 20.
 
Upvote 0
Thanks,
Ive read both.

Is there a code we can use to sort it how i need it or is that not possible & just put up with it.

Im thinking as this list od models become bigger 1200 1400 etc will be at the start & im sure the staff will be looking at the edn

Thank
 
Upvote 0
How would you sort (see red number)?
VFR 1200
VR8 800

You can extract both parts and sort them accordingly
EDIT:
1600187383766.png

Book1
ABC
1CB 500CB500
2CB 600CB600
3CB 900CB900
4CB 1200CB1200
5VFR 1200VFR1200
6VR8 800VR8800
Sheet1
Cell Formulas
RangeFormula
B1:B6B1=LEFT(A1,FIND(" ",A1)-1)
C1:C6C1=MID(A1,LEN(B1)+1,255)+0
 
Upvote 0

Forum statistics

Threads
1,215,492
Messages
6,125,116
Members
449,206
Latest member
burgsrus

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