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  

How can I sort by numbers and not text?



 
 
Thread Tools Display Modes
  #1  
Old September 20th, 2005, 10:04 PM
Arsenal
external usenet poster
 
Posts: n/a
Default How can I sort by numbers and not text?


I'm trying to sort my list (column B) but it sorts it like this:

A1
A10
A2

how do I sort it like this:

A1
A2
A10

without padding the numbers (A01, A02, etc)?

MS Word has sort by numbers but Excel doesn't seem to have that
option.

Thanks.


--
Arsenal
------------------------------------------------------------------------
Arsenal's Profile: http://www.excelforum.com/member.php...o&userid=27417
View this thread: http://www.excelforum.com/showthread...hreadid=469325

  #2  
Old September 20th, 2005, 11:47 PM
Max
external usenet poster
 
Posts: n/a
Default

Assuming data in col B, from row1 down
(data as posted is assumed representative in structure)

Use a helper column, say col C
Put in C1: =MID(B1,2,99)+0
Copy down

Then just select both cols B and C, and sort by col C, ascending
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Arsenal" wrote in
message ...

I'm trying to sort my list (column B) but it sorts it like this:

A1
A10
A2

how do I sort it like this:

A1
A2
A10

without padding the numbers (A01, A02, etc)?

MS Word has sort by numbers but Excel doesn't seem to have that
option.

Thanks.


--
Arsenal
------------------------------------------------------------------------
Arsenal's Profile:

http://www.excelforum.com/member.php...o&userid=27417
View this thread: http://www.excelforum.com/showthread...hreadid=469325



 




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 04:06 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.