ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Data sort (https://www.excelbanter.com/excel-discussion-misc-queries/139950-data-sort.html)

jk

Data sort
 
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 datasortaccendingok, 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?

Bernard Liengme

Data sort
 
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
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JK" wrote in message
...
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 datasortaccendingok, 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?





All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com