#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ty ty is offline
external usenet poster
 
Posts: 19
Default problem sorting

I can not get the following to sort correctly,
1
7
3
22 x 8
10 x 17
8 x 11
when I sort these they do as follows
1
3
7
10 x 17
22 x 8
8 x 11
it does fine with the single digits but as soon as there are others it sees
the 10 as a 1 and a 0 so it puts this one before the 8. Changing them to
text does not help. I believe it is in the format but I can't quite figure it
out.
Thanks,
ty


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 117
Default problem sorting

In your list, Excel is interpreting the singles as numbers and the rest as
text.
With cells formatted as Text re-enter your list manually then sort (A-Z), I
got:
1
10 x 17
22 x 8
3
7
8 x 11

"ty" wrote in message
...
I can not get the following to sort correctly,
1
7
3
22 x 8
10 x 17
8 x 11
when I sort these they do as follows
1
3
7
10 x 17
22 x 8
8 x 11
it does fine with the single digits but as soon as there are others it
sees
the 10 as a 1 and a 0 so it puts this one before the 8. Changing them to
text does not help. I believe it is in the format but I can't quite figure
it
out.
Thanks,
ty




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default problem sorting

You received a reply to a similar posting earlier today.

Basically you were told to break into two columns and sort on the one with
the numbers.

.................................................. ..

You need a helper column. Assuming your list starts in A1, enter this in B1
by using ctrl+shift+enter, then fill down, then sort on column B:
=1*LEFT(A1,MATCH(TRUE,ISERROR(1*MID(A1,ROW($1:$10) ,1)),0)-1)

Bob Umlas
Excel MVP

.................................................. ........

Gord Dibben MS Excel MVP

On Tue, 16 Jun 2009 13:40:01 -0700, ty wrote:

I can not get the following to sort correctly,
1
7
3
22 x 8
10 x 17
8 x 11
when I sort these they do as follows
1
3
7
10 x 17
22 x 8
8 x 11
it does fine with the single digits but as soon as there are others it sees
the 10 as a 1 and a 0 so it puts this one before the 8. Changing them to
text does not help. I believe it is in the format but I can't quite figure it
out.
Thanks,
ty


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Sorting Problem k1ngr Excel Discussion (Misc queries) 2 March 2nd 08 12:09 PM
Sorting problem Craig[_3_] Excel Discussion (Misc queries) 5 January 26th 08 07:14 AM
sorting problem sweetpea Excel Worksheet Functions 3 February 25th 07 07:23 PM
sorting problem MJM Excel Discussion (Misc queries) 3 February 22nd 07 10:20 PM
Sorting problem JC Excel Discussion (Misc queries) 3 January 28th 05 03:27 AM


All times are GMT +1. The time now is 02:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"