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
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

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,447
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,628
Messages
5,832,762
Members
430,165
Latest member
Idjaz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top