Sorting a list of UK Postal codes in Excel 2003

M

Mikey29

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
 
B

Bob Flanagan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top