Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Sorting a list of UK Postal codes in Excel 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mikey29 - 24 Apr 2007 12:55 GMT
Hi, I am relatively new to Excel and am using the 2003 version. I am
currently learning about lists. I have compiled a list of personal
data with names and addresses. I have put the Postal Codes in a
separate column.
When I sort the list in ascending order by Postal code I get e.g the
following:

SA1
SA11
SA12
SA5
SA6
SA8

Can anyone please advise how I can sort SA5,SA6 and SA7 to come before
SA11 and SA12 in the list.
Many thanks
Bob Flanagan - 24 Apr 2007 13:24 GMT
Add another column and use a formula like this to convert the 3 digit
entries to 4 digit entries.  Then sort on the new column.

= if(len(A1) = 3, left(A1,2) & "0" & right(A1,1), A1)

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

> Hi, I am relatively new to Excel and am using the 2003 version. I am
> currently learning about lists. I have compiled a list of personal
[quoted text clipped - 13 lines]
> SA11 and SA12 in the list.
> Many thanks
David McRitchie - 25 Apr 2007 03:35 GMT
Hi Mikey,
The number of letters can vary and the number of
digits can vary.  I think the following will work for you
 Sorting,  Some notes on sorting in Excel
  http://www.mvps.org/dmcritchie/excel/sorting.htm#pcdigits

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages:  http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:        http://www.mvps.org/dmcritchie/excel/search.htm

> Add another column and use a formula like this to convert the 3 digit
> entries to 4 digit entries.  Then sort on the new column.
[quoted text clipped - 23 lines]
> > SA11 and SA12 in the list.
> > Many thanks

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.