Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TagKory
 
Posts: n/a
Default Help with sort in Excel 2000

I have a spreadsheet with a column of box numbers:

A21
A1407
A828
B7371
B986
H2490
E1082
E232
H267

When I sort the column I get:

A1407
A21
A828
B7371
B986
E1082
E232
H2490
H267

What I want is:

A21
A828
A1407
B986
B7371
E232
E1082
H267
H2490

No matter how I format the cells before I sort, I cannot get it to look like
what I want. Apparently it has something to do with the default alpha
numeric sort in excel?! Is there any way around it? Am I making sense?



  #2   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Assuming that the data is in column A starting in cell A2, I suggest you
create two "helper" columns at the (right hand) end of your data, say,
columns X and Y.

In cell X2, put: =LEFT(A2,1)
In cell Y2, put =VALUE(RIGHT(A2,LEN(A2)-1))

Drag these two columns down to the end of your data. You'll get a #VALUE!
Error if you drag too far.

Now sort on columns X and Y.

Finally, delete or hide columns X and Y

Regards

Trevor


"TagKory" wrote in message
...
I have a spreadsheet with a column of box numbers:

A21
A1407
A828
B7371
B986
H2490
E1082
E232
H267

When I sort the column I get:

A1407
A21
A828
B7371
B986
E1082
E232
H2490
H267

What I want is:

A21
A828
A1407
B986
B7371
E232
E1082
H267
H2490

No matter how I format the cells before I sort, I cannot get it to look
like
what I want. Apparently it has something to do with the default alpha
numeric sort in excel?! Is there any way around it? Am I making sense?





  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

If your data really looks like one alpha then lots of numerics, I'd use two
helper columns.

=left(a1,1)
and
=--mid(a1,2,255)

and drag down.

Then sort all the data by the two helper columns.

TagKory wrote:

I have a spreadsheet with a column of box numbers:

A21
A1407
A828
B7371
B986
H2490
E1082
E232
H267

When I sort the column I get:

A1407
A21
A828
B7371
B986
E1082
E232
H2490
H267

What I want is:

A21
A828
A1407
B986
B7371
E232
E1082
H267
H2490

No matter how I format the cells before I sort, I cannot get it to look like
what I want. Apparently it has something to do with the default alpha
numeric sort in excel?! Is there any way around it? Am I making sense?


--

Dave Peterson
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
Microsoft Excel 2003 and Hyperion Retrieve with Excel 2000. Juan Angel Excel Discussion (Misc queries) 1 June 21st 05 09:55 PM
Formula Integrity Not Preserved During Sort in Excel 2000 Kevin Excel Discussion (Misc queries) 1 April 15th 05 10:26 PM
other systems detecting excel 4.0 if excel 2000 is installed Tristan_Flynn Setting up and Configuration of Excel 0 January 18th 05 06:55 PM
How do I Break links Using Excel 2000 DaddyMan Excel Discussion (Misc queries) 1 December 9th 04 10:18 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


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

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

About Us

"It's about Microsoft Excel"