A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sorting problem 10 comes before 8



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2009, 05:04 PM posted to microsoft.public.excel.worksheet.functions
ty
external usenet poster
 
Posts: 101
Default sorting problem 10 comes before 8

When sorting a list in a column where some are single digits and some are
such as :
1
3
8
8 x 12
10 x 10
they sort as follows
1
3
8
10 x 10
8 x 12
single numbers are fine but once you hit the ones with the x (to show
measurements) the 1 in the 10 x 10 comes before the 8. It does not help to
make it text.
Any thoughts
  #2  
Old June 16th, 2009, 05:36 PM posted to microsoft.public.excel.worksheet.functions
Bob Umlas[_3_]
external usenet poster
 
Posts: 197
Default sorting problem 10 comes before 8

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

"ty" wrote in message
...
When sorting a list in a column where some are single digits and some are
such as :
1
3
8
8 x 12
10 x 10
they sort as follows
1
3
8
10 x 10
8 x 12
single numbers are fine but once you hit the ones with the x (to show
measurements) the 1 in the 10 x 10 comes before the 8. It does not help
to
make it text.
Any thoughts



  #3  
Old June 16th, 2009, 06:51 PM posted to microsoft.public.excel.worksheet.functions
Marcelo
external usenet poster
 
Posts: 981
Default sorting problem 10 comes before 8

Bob one question, as it is an array formula how can I copy it down?

thanks
--
pleae click yes if it was helpfull
regards from Brazil
Marcelo



"Bob Umlas" escreveu:

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

"ty" wrote in message
...
When sorting a list in a column where some are single digits and some are
such as :
1
3
8
8 x 12
10 x 10
they sort as follows
1
3
8
10 x 10
8 x 12
single numbers are fine but once you hit the ones with the x (to show
measurements) the 1 in the 10 x 10 comes before the 8. It does not help
to
make it text.
Any thoughts




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.