Sorting Canadian postal codes

kevintnb

New Member
Joined
Oct 23, 2005
Messages
9
Hi All: I need to sort postal codes from an Excel mailing list. The need is to be able to sort (example E2E 4G7) all of the E's then the E2's, then the E2E's then all of the E2E4's etc. They currently reside in one cell as a code. Is there a way to extract the data from a cell and send each character to a separate cell so that it can be sorted as I have described?

Maybe pie in the sky ...but would appreciate any input.

Thanks
Kevin
 

Some videos you may like

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Banker1

Active Member
Joined
Mar 10, 2005
Messages
463
Did you try using Excels built in Sort function?

Go to Data --> Sort. I was able to sort a sample of Zip Codes without breaking the characters apart into individual cells.
 

GorD

Well-known Member
Joined
Jan 17, 2004
Messages
1,446
For all us non Canadians, can you give us a representative selection of the codes and what the desired result would be.
 

kevintnb

New Member
Joined
Oct 23, 2005
Messages
9
Canadian Postal Codes

Hi: Guess I should have listened to the old saying "Look before you leap".
The Data Sort function does an excellent job sorting these codes. Thanks for yor responces. What ever made me think that Excel couldn't handle this simple task?????

Thanks again
Kevin
 

Watch MrExcel Video

Forum statistics

Threads
1,119,142
Messages
5,576,318
Members
412,716
Latest member
thviid
Top