Data sort

J

JK

How do I sort data in accending order when the data has text first and then
numbers seperated by a dash such as; boy-1, boy-2, boy-3.....boy-10? If I
use data>sort>accending>ok, it puts it in order like; boy-1, boy-10, boy-2,
boy-3. Is there a way to make it sort so it does not put boy-10 after boy-1
and instead puts it after boy-9 like I want?
 
B

Bernard Liengme

You will need to use a helper column.
If the text is in column A, use the formula =--MID(A1,5,255) in row of some
empty column (maybe one newly created with Column | Insert). Copy down the
column, sort all the range using the 'new' column as the key.
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top